|
|
@ -68,6 +68,9 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
labeldata.Class = " " + book.Class.Substring(0, 2); |
|
|
|
labeldata.Description = book.Text; |
|
|
|
labeldata.OrderNo = book.CarModel + positioncode + data; |
|
|
|
|
|
|
|
var bookS = _agent.InvokeServiceFunction<FJC.Entity.FIS.FISPhraseBook>("FISPhraseBLL_GetPHRASEBOOK", labeldata.Class.Trim()); |
|
|
|
labeldata.Remark = bookS.Text; |
|
|
|
} |
|
|
|
var mcresult = _agent.InvokeServiceFunction<DataResult<Material>>("MaterialBLL_Get", new Material { MATERIAL_CODE = MATERIAL_CODE }); |
|
|
|
var material = mcresult.IsSuccess ? mcresult.Result : null; |
|
|
@ -114,7 +117,7 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
} |
|
|
|
|
|
|
|
//OrderNo,OrderType,PlanDate,Name,Class,CarModel,Text1,Text2,Text3,Text4,Text5,Text6
|
|
|
|
dataline.AppendFormat("\"{0}\",\"{1}\",\"{2:yyyy-MM-dd HH:mm:ss}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\",\"{7}\",\"{8}\",\"{9}\",\"{10}\",\"{11}\",\"{12}\",\"{13}\",\"{14}\"\r\n", |
|
|
|
dataline.AppendFormat("\"{0}\",\"{1}\",\"{2:yyyy-MM-dd HH:mm:ss}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\",\"{7}\",\"{8}\",\"{9}\",\"{10}\",\"{11}\",\"{12}\",\"{13}\",\"{14}\",\"{15}\"\r\n", |
|
|
|
label.OrderNo,//计划号
|
|
|
|
label.OrderType,//计划类型(0:FIS,1:STOCK,2:INSERT)
|
|
|
|
label.PlanDate,//计划日期
|
|
|
@ -129,7 +132,8 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
texts[5],//装配详细信息
|
|
|
|
texts[6],//装配详细信息
|
|
|
|
texts[7],//装配详细信息
|
|
|
|
label.MATERIALCODE//
|
|
|
|
label.MATERIALCODE,//
|
|
|
|
label.Remark |
|
|
|
); |
|
|
|
if (label.OrderNo.Contains("018D")) |
|
|
|
{ |
|
|
@ -156,56 +160,7 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
#endregion
|
|
|
|
} |
|
|
|
|
|
|
|
//private void PrintLabel(List<LabelData> labeldata)
|
|
|
|
//{
|
|
|
|
// #region 计划标签打印
|
|
|
|
// //string xmlPath = System.Configuration.ConfigurationSettings.AppSettings["XmlName"].ToString(); ;
|
|
|
|
// //BarcodeLib.BarCodeGenerate g = new BarcodeLib.BarCodeGenerate( xmlPath);
|
|
|
|
// //bool b = g.PrintBarCode(_operationServiceParam.main.MAINCODE);
|
|
|
|
// QM.Assist.LabelInfo ll = new QM.Assist.LabelInfo();
|
|
|
|
// StringBuilder dataline = new StringBuilder();
|
|
|
|
// foreach (var label in labeldata)
|
|
|
|
// {
|
|
|
|
// string[] texts = new string[6];
|
|
|
|
|
|
|
|
// var sourcetext = label.Description.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
|
|
|
|
|
|
|
|
// for (int i = 0; i < texts.Length && i < sourcetext.Length; i++)
|
|
|
|
// {
|
|
|
|
// texts[i] = sourcetext[i];
|
|
|
|
// }
|
|
|
|
|
|
|
|
// //OrderNo,OrderType,PlanDate,Name,Class,CarModel,Text1,Text2,Text3,Text4,Text5,Text6
|
|
|
|
// dataline.AppendFormat("\"{0}\",\"{1}\",\"{2:yyyy-MM-dd HH:mm:ss}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\",\"{7}\",\"{8}\",\"{9}\",\"{10}\",\"{11}\",\"{12}\"\r\n",
|
|
|
|
// label.OrderNo,//计划号
|
|
|
|
// label.OrderType,//计划类型(0:FIS,1:STOCK,2:INSERT)
|
|
|
|
// label.PlanDate,//计划日期
|
|
|
|
// label.MaterialName,//总成物料名称
|
|
|
|
// label.Class,//
|
|
|
|
// label.CarModel,//车型
|
|
|
|
// texts[0],//装配详细信息
|
|
|
|
// texts[1],//装配详细信息
|
|
|
|
// texts[2],//装配详细信息
|
|
|
|
// texts[3],//装配详细信息
|
|
|
|
// texts[4],//装配详细信息
|
|
|
|
// texts[5],//装配详细信息
|
|
|
|
// label.MATERIALCODE//
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// ll.BarCode = dataline.ToString().TrimEnd('\r', '\n');
|
|
|
|
// ll.PrinterName = "";
|
|
|
|
// QM.Assist.PrintUtil.LabelList2.Add(ll);
|
|
|
|
// QM.Assist.PrintUtil pu = new QM.Assist.PrintUtil();
|
|
|
|
// pu.PrintLabel2(System.Configuration.ConfigurationManager.AppSettings["proPath"].ToString
|
|
|
|
// (), System.Configuration.ConfigurationManager.AppSettings["PlanLabelTMPPath"].ToString
|
|
|
|
// (), System.Configuration.ConfigurationManager.AppSettings["PlanLabelDATPath"].ToString
|
|
|
|
// ());
|
|
|
|
|
|
|
|
// #endregion
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
public string GetNameCode(string Name) |
|
|
|
{ |
|
|
|