private void PrinterDone() { var cBarCode = String.Format(@"SE*{0}*C*{1}*L*{2}", txtcInvCode.Text, lblTitleMain.lblcSerialNumber.Text, txtcLotNo.Text); var pList = new List <List <string> > { new List <string> { "cBarCode", cBarCode }, new List <string> { "cSerialNumber", lblTitleMain.lblcSerialNumber.Text }, new List <string> { "cLotNo", txtcLotNo.Text }, new List <string> { "iQuantity", uneiQuantity.Value == null ? "0" : uneiQuantity.Value.ToString() }, new List <string> { "dDate", dtpdDate.Value.ToShortDateString() }, new List <string> { "cInvCode", txtcInvCode.Text }, new List <string> { "cInvName", utecInvName.Text }, new List <string> { "cInvPackStd", txtcInvPackStd.Text }, new List <string> { "cDefaultSource", txtcDefaultSource.Text }, new List <string> { "cMassUnit", lblcMassUnit.Text }, new List <string> { "dMassDate", dtpdMassDate.Value.Date.ToString("yyyy-MM-dd") }, new List <string> { "cKeepRequire", txtcKeepRequire.Text }, new List <string> { "cProperty", "" }, new List <string> { "cMemo", txtcMemo.Text } }; short iCopies = 1; if (beiCopies.EditValue == null) { iCopies = 1; } else if (!short.TryParse(beiCopies.EditValue.ToString(), out iCopies)) { iCopies = 1; } DllWorkPrintLabel.RmPrintCodeSoft(iCopies, _cTempletFileName, _cPrinter, pList); }
private void PrinterDone(string operation) { var cBarCode = String.Format(@"RM*{0}*C*{1}", txtcInvCode.Text, lblTitleMain.lblcSerialNumber.Text); var pList = new List <List <string> > { new List <string> { "cBarCode", cBarCode }, new List <string> { "cSerialNumber", lblTitleMain.lblcSerialNumber.Text }, new List <string> { "cLotNo", txtcLotNo.Text }, new List <string> { "iQuantity", uneiQuantity.Value == null ? "0" : uneiQuantity.Value.ToString() }, new List <string> { "dDate", dtpdDate.Value.ToShortDateString() }, new List <string> { "cInvCode", txtcInvCode.Text }, new List <string> { "cInvName", utecInvName.Text }, new List <string> { "cInvPackStd", txtcInvPackStd.Text }, new List <string> { "cInvStd", txtcInvStd.Text }, new List <string> { "cInvPackStyle", txtcInvPackStyle.Text }, new List <string> { "cVendor", txtcVendor.Text }, new List <string> { "cMassUnit", lblcMassUnit.Text }, new List <string> { "iMassDate", uneiMassDate.Value == null ? "0" : uneiMassDate.Value.ToString() }, new List <string> { "cKeepRequire", txtcKeepRequire.Text }, new List <string> { "cAddress", txtcAddress.Text }, new List <string> { "cProperty", "" }, new List <string> { "cMemo", txtcMemo.Text } }; short iCopies = 1; //if (beiCopies.EditValue == null) //{ // iCopies = 1; //} //else if (!short.TryParse(beiCopies.EditValue.ToString(), out iCopies)) //{ // iCopies = 1; //} DllWorkPrintLabel.RmPrintCodeSoft(iCopies, _cTempletFileName, _cPrinter, pList); }