|
@ -77,7 +77,8 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
|
|
|
|
|
PlaceFirstPositionType = System.Configuration.ConfigurationManager.AppSettings["PlaceFirstPositionType"].ToString(); |
|
|
PlaceFirstPositionType = System.Configuration.ConfigurationManager.AppSettings["PlaceFirstPositionType"].ToString(); |
|
|
|
|
|
|
|
|
_barcodeRules = _agent.InvokeServiceFunction<List<BarcodeRules>>("BarcodeRulesBLL_GetListForSend"); |
|
|
//_barcodeRules = _agent.InvokeServiceFunction<List<BarcodeRules>>("BarcodeRulesBLL_GetListForSend");
|
|
|
|
|
|
_barcodeRules = _agent.InvokeServiceFunction<List<BarcodeRules>>(B9BasicService.BarcodeRulesBLL_GetAllList.ToString()); |
|
|
|
|
|
|
|
|
_TJFYPrintName = GetAppConfigValue("FYPrintName"); //查找所有 需要自动填充的工位
|
|
|
_TJFYPrintName = GetAppConfigValue("FYPrintName"); //查找所有 需要自动填充的工位
|
|
|
} |
|
|
} |
|
@ -190,10 +191,10 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetList.ToString(), pFisType, WORKCENTER_CODE); |
|
|
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetList.ToString(), pFisType, WORKCENTER_CODE); |
|
|
tbl.AcceptChanges(); |
|
|
tbl.AcceptChanges(); |
|
|
|
|
|
|
|
|
var tblf = tbl.Select("MOULD_CODE = '左前'"); |
|
|
//var tblf = tbl.Select("MOULD_CODE = '左前'");
|
|
|
var tblr = tbl.Select("MOULD_CODE = '左后'"); |
|
|
//var tblr = tbl.Select("MOULD_CODE = '左后'");
|
|
|
var tbrf = tbl.Select("MOULD_CODE = '右前'"); |
|
|
//var tbrf = tbl.Select("MOULD_CODE = '右前'");
|
|
|
var tbrr = tbl.Select("MOULD_CODE = '右后'"); |
|
|
//var tbrr = tbl.Select("MOULD_CODE = '右后'");
|
|
|
|
|
|
|
|
|
//if (tb.Rows.Count > 0)
|
|
|
//if (tb.Rows.Count > 0)
|
|
|
//{
|
|
|
//{
|
|
@ -1287,14 +1288,14 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
string msgs = ""; |
|
|
string msgs = ""; |
|
|
CheckDataBase(inputstring,ref msgs); //检查T_PP_TJFY_WORKORDER 是否存在条码记录
|
|
|
//CheckDataBase(inputstring,ref msgs); //检查T_PP_TJFY_WORKORDER 是否存在条码记录
|
|
|
if (!string.IsNullOrEmpty(msgs)) |
|
|
//if (!string.IsNullOrEmpty(msgs))
|
|
|
{ |
|
|
//{
|
|
|
Alert("该条码已扫描!"); |
|
|
// Alert("该条码已扫描!");
|
|
|
txtCode.Text = ""; |
|
|
// txtCode.Text = "";
|
|
|
txtCode.Focus(); |
|
|
// txtCode.Focus();
|
|
|
return; |
|
|
// return;
|
|
|
} |
|
|
//}
|
|
|
foreach (var rule in _barcodeRules) |
|
|
foreach (var rule in _barcodeRules) |
|
|
{ |
|
|
{ |
|
|
if (System.Text.RegularExpressions.Regex.IsMatch(inputstring, rule.REGEX)) |
|
|
if (System.Text.RegularExpressions.Regex.IsMatch(inputstring, rule.REGEX)) |
|
@ -1304,6 +1305,12 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
strcarsetdesc_cn = rule.MATERIAL_TYPE; |
|
|
strcarsetdesc_cn = rule.MATERIAL_TYPE; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<Materiel> tbl = agent.InvokeServiceFunction<List<Materiel>>(QMAPP.ServicesAgent.FrmPlaceManage.TJDoorPlankPlanBLL_GetListMachine.ToString(), strprodno); |
|
|
|
|
|
|
|
|
|
|
|
if (tbl.Count == 1) |
|
|
|
|
|
strcarsetdesc_cn = tbl[0].MATERIALNAME; |
|
|
|
|
|
|
|
|
strvin = inputstring; |
|
|
strvin = inputstring; |
|
|
CreateNFPaste(inputstring); //创建NF的贴车单以及明细
|
|
|
CreateNFPaste(inputstring); //创建NF的贴车单以及明细
|
|
|
|
|
|
|
|
@ -1404,14 +1411,14 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
|
|
|
|
|
//判断当前扫描过的数据集合中是否有相同条码
|
|
|
//判断当前扫描过的数据集合中是否有相同条码
|
|
|
string msg = ""; |
|
|
string msg = ""; |
|
|
CheckDataBase(Code,ref msg); |
|
|
//CheckDataBase(Code,ref msg);
|
|
|
if (!string.IsNullOrEmpty(msg)) |
|
|
//if (!string.IsNullOrEmpty(msg))
|
|
|
{ |
|
|
//{
|
|
|
Alert("该条码已扫描!"); |
|
|
// Alert("该条码已扫描!");
|
|
|
txtCode.Text = ""; |
|
|
// txtCode.Text = "";
|
|
|
txtCode.Focus(); |
|
|
// txtCode.Focus();
|
|
|
return; |
|
|
// return;
|
|
|
} |
|
|
//}
|
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
#endregion
|
|
@ -1807,7 +1814,7 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
//pastdetail.KIN = strkin;
|
|
|
//pastdetail.KIN = strkin;
|
|
|
|
|
|
|
|
|
pastdetail.DGVROWINDEX = dgvrowindex; |
|
|
pastdetail.DGVROWINDEX = dgvrowindex; |
|
|
pastdetail.LINENO = strcarsetdesc_cn.Substring(0,3); |
|
|
pastdetail.LINENO = strvin.Substring(0,3); |
|
|
pastdetail.MOULDCODE = strmouldcode; |
|
|
pastdetail.MOULDCODE = strmouldcode; |
|
|
nfpastecard.DetailsCardlist.Add(pastdetail); |
|
|
nfpastecard.DetailsCardlist.Add(pastdetail); |
|
|
nflist.Add(pastdetail); |
|
|
nflist.Add(pastdetail); |
|
|