コード例 #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 static string ProcedureParameters(this ScannedData SD)
 {
     return(string.Format($"@IdSession='{SD.Session}',@SequenceNumber='{SD.SequenceNumber}',@TicketVIN='{SD.VINNr}',@TicketPartnumber='{SD.PartnumberSeqLabel}',@TicketExtraData='',@LabelPartnumber='{SD.PartnumberLabel}',@LabelExtraData='|BATCH:{SD.Batch}|TOLLEYLOCATION:{SD.TrollLocation}|',@Flags='',@ExtraData=''"));
 }