Пример #1
0
        public static infoData ToInfoData(this ScannedData SD)
        {
            var result = new infoData();

            switch (SD.Action)
            {
            case "ADD":
                result.c0 = string.Format("ADD");
                result.c1 = string.Format("PN:{0}", SD.PartnumberLabel);
                //result.c2 = string.Format("R:{0}", SD.LabelRack);
                result.c2 = string.Format("Q:{0}", SD.Qty);
                result.c3 = SD.xfec.ToShortTimeString();
                break;    /*
                           * case "CHECK":
                           * result.c0 = string.Format("CHECK");
                           * result.c1 = string.Format("SERIAL:{0}", SD.Serial);
                           * result.c2 = string.Format("R:{0}", SD.Rack);
                           * break;*/

            case "CLOSE":
                result.c0 = string.Format("CLOSE");
                break;
            }
            return(result);
        }
Пример #2
0
 public void pushInfo(infoData d)
 {
     pushInfo(d.c0, d.c1, d.c2, d.c3);
 }
Пример #3
0
 public void updateMainLine(infoData d)
 {
     updateMainLine(d.c0, d.c1, d.c2, d.c3);
 }