public SingleBarcode(cLabel pLabel) { // Assignments Label = pLabel; //Parameters Parameters.Add("VALUE", ""); //label design var _middle = Convert.ToInt32(Label.width / 2F); var _right = Convert.ToInt32(Label.width) - 3; var _height = Convert.ToInt32(Label.height); Label.addLine(_middle, 3, 0, "C", "", "[BC][VALUE]", 0, _height / 2, 1, false); Label.addLine(_middle, _height / 2 + 8, 0, "C", "", "[VALUE]", 14); }
public RackLabelWOL(cLabel pLabel) { //Assignments Label = pLabel; //Parameters Parameters.Add("VALUE", ""); Parameters.Add("HASHVAL", ""); //Label Design var _middle = Convert.ToInt32(Label.width / 2f); var _right = Convert.ToInt32(Label.width) - 3; var _height = Convert.ToInt32(Label.height); Label.addLine(_middle, 13, 0, "C", "", "[VALUE]", 85, rotated: true); Label.addLine(_right, 75, 0, "I", "", "[BC][HASHVAL]", 0, _height / 4, 2, false, true); }
public MicroCM(cLabel pLabel) { // Assignments Label = pLabel; //Parameters Parameters.Add("CM", ""); Parameters.Add("RECEIVAL", ""); Parameters.Add("RECEIVAL_DATE", ""); Parameters.Add("PARTNUMBER", ""); Parameters.Add("QTY", ""); //label design var _middle = Label.width / 2F; var _left = 2F; var _right = Label.width - 4F; var _textsize = 7F; var _bcHeight = Label.height / 3F; var _pnYPos = 3 + _bcHeight + _textsize; var _bottomLineYPos = Label.height - 1F; Label.addLine(_middle, 3, 0, "C", "", "[BC][CM]", 0, _bcHeight - 1.5F, 1, false); Label.addLine(_middle, 6 + _bcHeight, 0, "C", "", "[CM]", _textsize * 2); Label.addLine(_middle, _pnYPos, 0, "C", "", "[PARTNUMBER]", _textsize); Label.addLine(_left, _bottomLineYPos, 0, "L", "", "REC#:[RECEIVAL]", _textsize); Label.addLine(_middle, _bottomLineYPos, 0, "C", "", "DATE:[RECEIVAL_DATE]", _textsize); Label.addLine(_right, _bottomLineYPos, 0, "R", "", "QTY:[QTY] ", _textsize); }
public DealerPickPackHULabel(cLabel pLabel) { //Assignments Label = pLabel; //Parameters Parameters.Add("HU", ""); Parameters.Add("ROUTE", ""); Parameters.Add("DEALER", ""); Parameters.Add("TYPE", ""); Parameters.Add("DATE", ""); //Label Design var _middle = Convert.ToInt32(Label.width / 2f); var _right = Convert.ToInt32(Label.width) - 3; var _height = Convert.ToInt32(Label.height); Label.addLine(2, 4, 0, "I", "", "Dealer Pick Pack", 8); Label.addLine(68, 4, 0, "D", "", "Espack - [DATE]", 8); Label.addLine(_middle, 12, 0, "C", "", "[HU]", 22); Label.addLine(_middle, 14, 66, "C", "", "[BC][HU]", 0, 10, 2);//, 85,10); Label.addLine(_middle, 30, 0, "C", "", "[DEALER] / [ROUTE] / [TYPE]", 12); //Label.addLine(2, 30, 0, "I", "", "[DEALER]", 14); //Label.addLine(68, 30, 0, "D", "", "([ROUTE])", 14); }
public static void delim(cLabel pLabel, string pCode, string pValue) { pLabel.Clear(); var _x = Convert.ToInt32(pLabel.width / 2); var _width = pLabel.width - 3; var i = 2; pLabel.addLine(_x, i += 7, 0, "C", "", pCode, 12); pLabel.addLine(_x, i += 3, _width, "C", "", "######################"); pValue.Split('|').ToList().ForEach(x => { pLabel.addLine(_x, i += 2, 0, "C", "", "[BC]" + (x.Length > 40 ? x.Substring(0, 40) : x), 0, 5, 1); pLabel.addLine(_x, i += 9, 0, "C", "", x.Length > 40 ? x.Substring(0, 40) : x, 12); }); pLabel.addLine(_x, i += 3, _width, "C", "", "######################"); //pLabel.addLine(1, i += 6, 10, "I", "", "1234567890"); //pLabel.addLine(1, i += 6, 20, "I", "", "1234567890"); //pLabel.addLine(1, i += 6, 40, "I", "", "1234567890"); //pLabel.addLine(1, i += 6, 60, "I", "", "1234567890"); //pLabel.addLine(1, i += 6, 80, "I", "", "1234567890"); }