change - 模切拆分问题处理

master
wenjy 2 years ago
parent c62887279d
commit ad1371d86b

@ -96,14 +96,14 @@ namespace MaterialTraceability.Business.Impl
try
{
#region 未登录不让放卷涨紧生产,便于记录生产者
if (StringExtension.IsBlank(ConfigHelper.GetConfig("roleId")))
/*if (StringExtension.IsBlank(ConfigHelper.GetConfig("roleId")))
{
MessageBox.Show("请先登录再开始生产");
LogHelper.Info("请先登录再开始生产");
LogRefreshEvent?.Invoke(LogType.AlarmLog, "请先登录再开始生产");
return;
}
}*/
#endregion
LogRefreshEvent?.Invoke(LogType.PlcLog, "冷压放卷位涨紧信号触发成功");

@ -198,13 +198,13 @@ namespace MaterialTraceability.Business.Impl
#endregion
#region 未登录不让放卷涨紧生产,便于记录生产者
if (StringExtension.IsBlank(ConfigHelper.GetConfig("roleId")))
/*if (StringExtension.IsBlank(ConfigHelper.GetConfig("roleId")))
{
MessageBox.Show("请先登录再开始生产");
LogHelper.Info("请先登录再开始生产");
LogRefreshEvent?.Invoke(LogType.AlarmLog, "请先登录再开始生产");
return;
}
}*/
#endregion
try
@ -323,7 +323,6 @@ namespace MaterialTraceability.Business.Impl
{
LogRefreshEvent?.Invoke(LogType.RfidLog, logStr + "位放卷结束,获取卷轴绑定的信息为空");
LogRefreshEvent?.Invoke(LogType.AlarmLog, logStr + "位放卷结束,获取卷轴绑定的信息为空");
//upLoadBusiness.SaveLogRecord(position, logStr + "位放卷结束,获取卷轴绑定的信息为空");
return;
}
Expression<Func<ProUpRecord, bool>> upExp = s1 => true;
@ -334,7 +333,6 @@ namespace MaterialTraceability.Business.Impl
{
LogRefreshEvent?.Invoke(LogType.RfidLog, logStr + "位放卷结束,获取上料信息为空");
LogRefreshEvent?.Invoke(LogType.AlarmLog, logStr + "位放卷结束,获取上料信息为空");
//upLoadBusiness.SaveLogRecord(position, logStr + "位放卷结束,获取上料信息为空");
return;
}
@ -356,7 +354,8 @@ namespace MaterialTraceability.Business.Impl
shaftInfo.bindTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
await shaftInfoServices.Update(shaftInfo);
LogRefreshEvent?.Invoke(LogType.RfidLog, "放卷结束,更新绑定信息");
//upLoadBusiness.SaveLogRecord(position, logStr + "放卷结束,更新绑定信息");
//放卷结束获取收卷轴最后一卷
IsEndFlag();
}
catch (Exception ex)
{
@ -707,7 +706,7 @@ namespace MaterialTraceability.Business.Impl
//获取重量特征数据上传至服务器
if (upLoadBusiness.JudgeResourceIsUplpadData())
{
machineIntegrationParametricData[] datas = GetMaterialWeight(shaftInfo, position, shaftInfo.bindSfc, downRecord).Result;
machineIntegrationParametricData[] datas = GetMaterialWeight(shaftInfo, position, shaftInfo.bindSfc).Result;
UpLoadMaterialWeight(position, shaftInfo.bindSfc, downRecord.Id, datas);
}
#region 获取放卷物料EA
@ -1343,7 +1342,7 @@ namespace MaterialTraceability.Business.Impl
LogHelper.Info("190品种获取重量特征数据");
modeProcessSfc = WebService.MiBatchCompleteSfcAndAdujustQtyServiceService.ModeProcessSfc.MODE_NONE;
datas = GetMaterialWeight(shaftInfo, position, shaftInfo.bindSfc, downRecord).Result;
datas = GetMaterialWeight(shaftInfo, position, shaftInfo.bindSfc).Result;
}
#endregion
miBatchCompleteSfcAndAdujustQtySfcEntity[] miBatchCompleteSfcAndAdujustQtySfcEntities = new miBatchCompleteSfcAndAdujustQtySfcEntity[]
@ -1371,6 +1370,10 @@ namespace MaterialTraceability.Business.Impl
modeProcessSfc = modeProcessSfc,
sfcList = miBatchCompleteSfcAndAdujustQtySfcEntities,
};
if (StringExtension.IsNotBlank(downRecord.shaftNumber))
{
requestParam.tailmark = downRecord.shaftNumber;
}
LogHelper.Info("MES自动拆分接口请求参数" + JsonChange.ModeToJson(requestParam));
if (appConfig.isMesFlag == 1)
@ -1408,7 +1411,7 @@ namespace MaterialTraceability.Business.Impl
// ccd单独上传数据收集组*Y
// UpMQMesData1(position, GetCcdTreetopAmount(position), splitMaterialSfc);
if (UpMQMesData(position, datas, splitMaterialSfc))
if (UpMQMesData(position, datas, splitMaterialSfc,downRecord))
{
LogHelper.Info("模切数据上传成功");
LogRefreshEvent?.Invoke(LogType.MesLog, "模切数据上传成功");
@ -2319,7 +2322,7 @@ namespace MaterialTraceability.Business.Impl
/// <param name="splitSfc"></param>
/// <param name="downRecord"></param>
/// <returns></returns>
private async Task<machineIntegrationParametricData[]> GetMaterialWeight(ProShaftInfo shaftInfo, int position, string splitSfc, ProDownRecord downRecord)
private async Task<machineIntegrationParametricData[]> GetMaterialWeight(ProShaftInfo shaftInfo, int position, string splitSfc)
{
try
{
@ -2345,7 +2348,6 @@ namespace MaterialTraceability.Business.Impl
bool isFirst = await IsFirstFlag();
LogHelper.Info(String.Format("{0}收卷结束,当前卷放卷方向:{1};收卷方向:{2};是否首检:{3}", logStr, upDirection, downDirection, isFirst));
//upLoadBusiness.SaveLogRecord(position, String.Format("{0}收卷结束,当前卷放卷方向:{1};收卷方向:{2};是否首检:{3}", logStr, upDirection, downDirection, isFirst));
//根据上料记录获取冷压特征数据
Expression<Func<ProUpRecord, bool>> upExp = s1 => true;
@ -2361,7 +2363,7 @@ namespace MaterialTraceability.Business.Impl
var lyMaterialCharacter = JsonChange.JsonToMode<TBParametricValueResult>(upRecord.UpMaterialId);
LogHelper.Info("获取冷压重量特征数据:" + lyMaterialCharacter);
LogHelper.Info("获取冷压重量特征数据:" + JsonChange.ModeToJson(lyMaterialCharacter));
//upLoadBusiness.SaveLogRecord(position, "获取冷压重量特征数据:" + lyMaterialCharacter);
//获取冷压重量特征数据如果数据库中为空则通过MES重新获取并存入数据库 Add by wenjy 2022-11-15
@ -2434,7 +2436,7 @@ namespace MaterialTraceability.Business.Impl
new machineIntegrationParametricData() {name ="S_CW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(S_CW) ? "0" : S_CW},
new machineIntegrationParametricData() {name ="B_CW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(B_CW) ? "0" : B_CW},
ccdTreetopAmount[0], // ccd打标数
new machineIntegrationParametricData() {name ="S_TARGETCW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(S_TARGETCW.ToString()) ? "0" : S_TARGETCW.ToString()},
new machineIntegrationParametricData() {name ="S_TARGETCW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(S_TARGETCW.value) ? "0" : S_TARGETCW.value},
};
LogHelper.Info("GetMaterialWeight获取模切物料特征数据" + JsonChange.ModeToJson(data));
return data;
@ -2535,7 +2537,7 @@ namespace MaterialTraceability.Business.Impl
/// <param name="x"></param>
/// <param name="bindSfc"></param>
/// <returns></returns>
private bool UpMQMesData(int position, machineIntegrationParametricData[] data,string splitSfc)
private bool UpMQMesData(int position, machineIntegrationParametricData[] data,string splitSfc,ProDownRecord downRecord)
{
bool result = false;
string logStr = this.Which(position);
@ -2566,6 +2568,7 @@ namespace MaterialTraceability.Business.Impl
parametricArray = data,
modeProcessSfc = WebService.MachineIntegrationServiceService.ModeProcessSfc.MODE_COMPLETE_SFC_POST_DC
};
LogHelper.Info("上传MES数据接口请求参数" + JsonChange.ModeToJson(machineIntegrationServiceParam));
//upLoadBusiness.SaveLogRecord(position, "上传MES数据接口请求参数" + JsonChange.ModeToJson(machineIntegrationServiceParam));
@ -2794,5 +2797,56 @@ namespace MaterialTraceability.Business.Impl
return lyresult;
}
/// <summary>
/// 获取最后一卷绑定信息中的endFlag用于存储运行方向使用ProDownRecord中的shaftNumber存储是否最后一卷
/// 放卷结束后进行判断
/// </summary>
private async void IsEndFlag()
{
try
{
//通过PLC获取收卷轴设置下轴为最后一卷
//判断当前收卷生产轴
List<int> positions = new List<int>();
if (appConfig.machineId == 3)
{
if (PlcBusiness.readPlc("MW24676") == 1) positions.Add(3);
if (PlcBusiness.readPlc("MW24678") == 1) positions.Add(1);
if (PlcBusiness.readPlc("MW24680") == 1) positions.Add(4);
if (PlcBusiness.readPlc("MW24682") == 1) positions.Add(2);
}
else
{
if (PlcBusiness.readPlc("MW24676") == 1) positions.Add(1);
if (PlcBusiness.readPlc("MW24678") == 1) positions.Add(3);
if (PlcBusiness.readPlc("MW24680") == 1) positions.Add(2);
if (PlcBusiness.readPlc("MW24682") == 1) positions.Add(4);
}
int position = positions.Max();
ProShaftInfo shaftInfo = await GetShaftInfoByPosition(position);
Expression<Func<ProDownRecord, bool>> downexp = x => true;
downexp = downexp.And(x => x.PositionId == position && x.IsProduction == 0);
if (shaftInfo!= null)
{
downexp = downexp.And(x => x.Rfid == shaftInfo.bindRfid);
}
Expression<Func<ProDownRecord, object>> orders = x => x.beginTime;
ProDownRecord downRecord = await downRecordServices.QueryFirst(downexp, orders, false);
LogHelper.Info("放卷结束,获取最后一卷收卷轴信息:" + JsonChange.ModeToJson(downRecord));
if (downRecord != null)
{
downRecord.shaftNumber = "X";
await downRecordServices.Update(downRecord);
}
}catch(Exception ex)
{
LogHelper.Info("放卷结束,标识最后一卷收卷轴异常:"+ex.Message);
}
}
}
}

@ -137,13 +137,13 @@ namespace MaterialTraceability.Business.Impl
{
string logStr = position == 1 ? "A轴" : "B轴";
#region 未登录不让涨紧生产,便于记录生产者
if (StringExtension.IsBlank(ConfigHelper.GetConfig("roleId")))
/*if (StringExtension.IsBlank(ConfigHelper.GetConfig("roleId")))
{
MessageBox.Show("请先登录再开始生产");
LogHelper.Info("请先登录再开始生产");
LogRefreshEvent?.Invoke(LogType.AlarmLog, "请先登录再开始生产");
return;
}
}*/
#endregion
//string sfc = "";

@ -172,7 +172,7 @@ namespace MaterialTraceability.Business
new machineIntegrationParametricData() {name ="S_CW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(S_CW) ? "0" : S_CW},
new machineIntegrationParametricData() {name ="B_CW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(B_CW) ? "0" : B_CW},
new machineIntegrationParametricData() {name ="CCD",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(ccdLableAmount) ? "0" : ccdLableAmount},
new machineIntegrationParametricData() {name ="S_TARGETCW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(S_TARGETCW.ToString()) ? "0" : S_TARGETCW.ToString()},
new machineIntegrationParametricData() {name ="S_TARGETCW",dataType=ParameterDataType.TEXT, value=StringExtension.IsBlank(S_TARGETCW.value) ? "0" : S_TARGETCW.value},
};
return data;
}

@ -72,6 +72,10 @@ namespace MaterialTraceability.WebService
MiBatchCompleteSfcAndAdujustQty.MiBatchCompleteSfcAndAdujustQtyRequest.modeProcessSfc = miBatchCompleteSfcAndAdujustQtyServiceServiceParam.modeProcessSfc;
MiBatchCompleteSfcAndAdujustQty.MiBatchCompleteSfcAndAdujustQtyRequest.sfcList = miBatchCompleteSfcAndAdujustQtyServiceServiceParam.sfcList;
//MiBatchCompleteSfcAndAdujustQty.MiBatchCompleteSfcAndAdujustQtyRequest.tailmark = miBatchCompleteSfcAndAdujustQtyServiceServiceParam.tailmark;
DateTime beginTime = DateTime.Now;
MiBatchCompleteSfcAndAdujustQtyResponse MiBatchCompleteSfcAndAdujustQtyResponse = MiBatchCompleteSfcAndAdujustQtyServiceService.MiBatchCompleteSfcAndAdujustQty(MiBatchCompleteSfcAndAdujustQty);
@ -751,7 +755,7 @@ namespace MaterialTraceability.WebService
dataCollectForSfcEx.SfcDcExRequest.site = machineIntegrationServiceParam.site;
dataCollectForSfcEx.SfcDcExRequest.sfc = machineIntegrationServiceParam.sfc;
dataCollectForSfcEx.SfcDcExRequest.user = machineIntegrationServiceParam.loginUser;
dataCollectForSfcEx.SfcDcExRequest.user = machineIntegrationServiceParam.user;
dataCollectForSfcEx.SfcDcExRequest.operation = machineIntegrationServiceParam.operation;
dataCollectForSfcEx.SfcDcExRequest.operationRevision = machineIntegrationServiceParam.operationRevision;
dataCollectForSfcEx.SfcDcExRequest.activityId = machineIntegrationServiceParam.activityId;

@ -45,6 +45,7 @@ namespace MaterialTraceability.WebService.Param
public ModeProcessSfc modeProcessSfc { get; set; }
public machineIntegrationParametricData[] parametricArray { get; set; }
}
}

@ -65,5 +65,9 @@ namespace MaterialTraceability.WebService.Param
public string password { get; set; }
/// <summary>
/// 最后一卷
/// </summary>
public string tailmark { get; set; }
}
}

@ -58,8 +58,10 @@
<TextBox Height="26" FontSize="18" x:Name="SplitSfcParamUser" HorizontalAlignment="Left" VerticalAlignment="Center" Width="450" Margin="206,199,0,151.334"/>
<Label Content="activity" Height="30" FontSize="18" Foreground="#007DFA" Width="100" VerticalAlignment="Center" HorizontalAlignment="Left" RenderTransformOrigin="1.347,-4.605" Margin="113,255,0,91"/>
<TextBox Height="26" FontSize="18" x:Name="SplitSfcParamActivity" HorizontalAlignment="Left" VerticalAlignment="Center" Width="450" Margin="208,260,0,90"/>
<Label Content="手动拆分User:" Height="30" FontSize="18" Foreground="#007DFA" Width="147" VerticalAlignment="Center" HorizontalAlignment="Left" RenderTransformOrigin="1.347,-4.605" Margin="61,316,0,29.333"/>
<TextBox Height="26" FontSize="18" x:Name="HandSplitSfcParamUser" HorizontalAlignment="Left" VerticalAlignment="Center" Width="450" Margin="208,320,0,29.333"/>
<Label Content="手动拆分用户:" Height="30" FontSize="18" Foreground="#007DFA" Width="147" VerticalAlignment="Center" HorizontalAlignment="Left" RenderTransformOrigin="1.347,-4.605" Margin="61,316,0,29.333"/>
<TextBox Height="26" FontSize="18" x:Name="HandSplitSfcParamUser" HorizontalAlignment="Left" VerticalAlignment="Top" Width="144" Margin="208,320,0,0"/>
<Label Content="手动拆分密码:" Height="30" FontSize="18" Foreground="#007DFA" Width="126" VerticalAlignment="Top" HorizontalAlignment="Left" RenderTransformOrigin="1.347,-4.605" Margin="375,316,0,0"/>
<TextBox Height="26" FontSize="18" x:Name="HandSplitSfcParamPwd" HorizontalAlignment="Left" VerticalAlignment="Top" Width="143" Margin="513,320,0,0" RenderTransformOrigin="0.281,0.692"/>
</Grid>
</Grid>

@ -57,6 +57,7 @@ namespace MaterialTraceabilityUI
inifile.IniWriteValue("SplitSfcParam", "user", this.SplitSfcParamUser.Text);
inifile.IniWriteValue("SplitSfcParam", "activity", this.SplitSfcParamActivity.Text);
inifile.IniWriteValue("HandSplitSfcParam", "user", this.HandSplitSfcParamUser.Text);
inifile.IniWriteValue("HandSplitSfcParam", "password", this.HandSplitSfcParamPwd.Text);
// 首工序获取SFC接口、自动入账接口、卷绕自动上料接口MiFirstOperationForsfcServiceServiceParam节点
inifile.IniWriteValue("MiFirstOperationForsfcServiceServiceParam", "url", this.MiFirstOperationForsfcServiceServiceParamUrl.Text);
inifile.IniWriteValue("MiFirstOperationForsfcServiceServiceParam", "site", this.MiFirstOperationForsfcServiceServiceParamSite.Text);
@ -136,6 +137,7 @@ namespace MaterialTraceabilityUI
this.SplitSfcParamUser.Text = inifile.IniReadValue("SplitSfcParam", "user");
this.SplitSfcParamActivity.Text = inifile.IniReadValue("SplitSfcParam", "activity");
this.HandSplitSfcParamUser.Text = inifile.IniReadValue("HandSplitSfcParam", "user");
this.HandSplitSfcParamPwd.Text = inifile.IniReadValue("HandSplitSfcParam", "password");
// 首工序获取SFC接口、自动入账接口、卷绕自动上料接口MiFirstOperationForsfcServiceServiceParam节点
this.MiFirstOperationForsfcServiceServiceParamUrl.Text = inifile.IniReadValue("MiFirstOperationForsfcServiceServiceParam", "url");
this.MiFirstOperationForsfcServiceServiceParamSite.Text = inifile.IniReadValue("MiFirstOperationForsfcServiceServiceParam", "site");

@ -273,14 +273,15 @@ namespace MaterialTraceabilityUI
/// <param name="e"></param>
private void ConfigPage_Click(object sender, RoutedEventArgs e)
{
if (!"2".Equals(ConfigHelper.GetConfig("roleId")))
{
System.Windows.MessageBox.Show("请登录系统管理账号进行操作");
}
else
{
UserContent = configInfo;
}
//if (!"2".Equals(ConfigHelper.GetConfig("roleId")))
//{
// System.Windows.MessageBox.Show("请登录系统管理账号进行操作");
//}
//else
//{
// UserContent = configInfo;
//}
UserContent = configInfo;
}
public System.Windows.Controls.UserControl _content;

@ -5,7 +5,7 @@
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{BAFCB393-290D-4B7B-92EF-EDD28AF0ED95}</ProjectGuid>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<RootNamespace>MaterialTraceabilityUI</RootNamespace>
<AssemblyName>MaterialTraceabilityUI</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>

@ -51,5 +51,5 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.5.1")]
[assembly: AssemblyVersion("1.0.5.4")]
[assembly: AssemblyFileVersion("1.0.0.0")]

@ -76,10 +76,29 @@ namespace MaterialTraceabilityUI
operationRevision = inifile.IniReadValue("SplitSfcParam", "operationRevision"),
resource = appConfig.resource,
user = inifile.IniReadValue("HandSplitSfcParam", "user"),
loginUser = inifile.IniReadValue("HandSplitSfcParam", "user"),
password = inifile.IniReadValue("HandSplitSfcParam", "password"),
activity = inifile.IniReadValue("SplitSfcParam", "activity"),
modeProcessSfc = modeProcessSfc,
sfcList = miBatchCompleteSfcAndAdujustQtySfcEntities,
};
//判断是否为模切工序,上传最后一卷标识
if (appConfig.processId == "MQ_A")
{
ComboBoxItem endFlag = (ComboBoxItem)this.endFlagCombox.SelectedItem;
if (endFlag.Content.ToString() != null && endFlag.Content.ToString() != "")
{
if (endFlag.Content.ToString() == "是")
{
requestParam.tailmark = "X";
}
}
else
{
MessageBox.Show("请选择是否为最后一卷");
}
}
LogHelperBusiness.LogInfo("MES自动拆分接口请求参数" + JsonChange.ModeToJson(requestParam));
Console.WriteLine("MES自动拆分接口请求参数" + JsonChange.ModeToJson(requestParam));
@ -98,13 +117,13 @@ namespace MaterialTraceabilityUI
string splitSfc = GetSfcByRfid(rfidStr);
if (upLoadBusiness.JudgeResourceIsUplpadData())
{
MessageBox.Show("手动拆分成功,完工处理");
MessageBox.Show("手动拆分成功,完工处理ea:" + eaStr);
//获取拆分后的膜卷号
Complete(sfcStr, splitSfc, rfidStr,positionId, eaStr);
}
else
{
MessageBox.Show("手动拆分成功");
MessageBox.Show("手动拆分成功ea:"+ eaStr);
UpdateDownRecord(positionId, rfidStr, splitSfc, eaStr);
}
@ -154,6 +173,9 @@ namespace MaterialTraceabilityUI
dcGroup = upLoadBusiness.GerDcGroupByResource(),
dcGroupRevision = inifile.IniReadValue("MachineIntegrationServiceParam", "dcGroupRevision"),
parametricArray = data,
user = inifile.IniReadValue("HandSplitSfcParam", "user"),
loginUser = inifile.IniReadValue("HandSplitSfcParam", "user"),
password = inifile.IniReadValue("HandSplitSfcParam", "password"),
modeProcessSfc = MaterialTraceability.WebService.MachineIntegrationServiceService.ModeProcessSfc.MODE_COMPLETE_SFC_POST_DC
};
@ -209,7 +231,8 @@ namespace MaterialTraceabilityUI
downRecord.endTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
if (await baseServices.Update(downRecord))
{
LogHelperBusiness.LogInfo(rfidStr + "下料记录更新成功");
LogHelperBusiness.LogInfo(rfidStr + "手动拆分完成,下料记录更新成功:"+JsonChange.ModeToJson(downRecord));
//更新下料记录
upLoadBusiness.UpdateDownRecord(downRecord);
}
else
@ -232,11 +255,11 @@ namespace MaterialTraceabilityUI
{
ccdLable.Visibility = Visibility.Visible;
ccdTextBox.Visibility = Visibility.Visible;
}else if (appConfig.processId == "LY_A")
}/*else if (appConfig.processId == "LY_A")
{
endFlagLabel.Visibility = Visibility.Visible;
endFlagCombox.Visibility = Visibility.Visible;
}
}*/
RefreshDataGrid();
}
@ -637,17 +660,22 @@ namespace MaterialTraceabilityUI
}
//判断是否为冷压工序是否为最后一卷最后一卷按照MES EA进行拆分
if (Convert.ToString(this.endFlagCombox.SelectedItem) != "")
if (appConfig.processId == "LY_A")
{
ComboBoxItem endFlag = (ComboBoxItem)this.endFlagCombox.SelectedItem;
if (endFlag.Content.ToString() != null && endFlag.Content.ToString() != "")
if (Convert.ToString(this.endFlagCombox.SelectedItem) != "")
{
if (endFlag.Content.ToString() == "是")
ComboBoxItem endFlag = (ComboBoxItem)this.endFlagCombox.SelectedItem;
if (endFlag.Content.ToString() != null && endFlag.Content.ToString() != "")
{
eaStr = GetUpMaterialQty(downRecord.PositionId, sfcTextBox.Text);
if (endFlag.Content.ToString() == "是")
{
eaStr = GetUpMaterialQty(downRecord.PositionId, sfcTextBox.Text);
}
}
}
}
Split(downRecord.Rfid,eaTextBox.Text, eaStr, downRecord.PositionId);
}

Loading…
Cancel
Save