|
@ -106,10 +106,17 @@ namespace QMAPP.WinForm.Forms.Injection |
|
|
int i = 1; |
|
|
int i = 1; |
|
|
//DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeForChengdu", materialListInfo, model, i);
|
|
|
//DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeForChengdu", materialListInfo, model, i);
|
|
|
var machine = comMachine.SelectedItem as MachineInfo; |
|
|
var machine = comMachine.SelectedItem as MachineInfo; |
|
|
DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo, machine, model, "", new Dictionary<string,string>()); |
|
|
DataResult<List<PrintCode>> resultList = _agent.InvokeServiceFunction<DataResult<List<PrintCode>>>("MainOperationBLL_GetPrintCodeWithParam", materialListInfo, machine, model, "", new Dictionary<string, string>()); |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
Print(resultList.Result, true); |
|
|
Print(resultList.Result, true); |
|
|
} |
|
|
} |
|
|
|
|
|
catch (Exception e) |
|
|
|
|
|
{ |
|
|
|
|
|
var ss = e.Message; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private void CodeCreatePrint(string header, string datarow, char[] dataSeparator) |
|
|
private void CodeCreatePrint(string header, string datarow, char[] dataSeparator) |
|
|
{ |
|
|
{ |
|
@ -216,14 +223,32 @@ namespace QMAPP.WinForm.Forms.Injection |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
fr.Load(string.Format("{0}\\{1}.frx", path, typeTem)); |
|
|
fr.Load(string.Format("{0}\\{1}.frx", path, typeTem)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cbTemplateDesign.Enabled && cbTemplateDesign.Checked) |
|
|
if (cbTemplateDesign.Enabled && cbTemplateDesign.Checked) |
|
|
|
|
|
{ |
|
|
|
|
|
try |
|
|
{ |
|
|
{ |
|
|
fr.Design(true); |
|
|
fr.Design(true); |
|
|
} |
|
|
} |
|
|
|
|
|
catch (Exception e) |
|
|
|
|
|
{ |
|
|
|
|
|
var ss = e.Message; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
try |
|
|
{ |
|
|
{ |
|
|
fr.PrintSettings.ShowDialog = false; |
|
|
fr.PrintSettings.ShowDialog = false; |
|
|
fr.Print(); |
|
|
fr.Print(); |
|
|
|
|
|
} |
|
|
|
|
|
catch (Exception e) |
|
|
|
|
|
{ |
|
|
|
|
|
var ss = e.Message; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 张松男20210802 修改 增加新版注塑投料条码绑定
|
|
|
#region 张松男20210802 修改 增加新版注塑投料条码绑定
|
|
|
|
|
|
|
|
@ -250,7 +275,16 @@ namespace QMAPP.WinForm.Forms.Injection |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
fr.Dispose(); |
|
|
fr.Dispose(); |
|
|
|
|
|
} |
|
|
|
|
|
catch (Exception e) |
|
|
|
|
|
{ |
|
|
|
|
|
var ss = e.Message; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil();
|
|
|
//QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil();
|
|
|
//pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString
|
|
|
//pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString
|
|
|