コード例 #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.Partnumber);
                //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)
 {
     Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-GB");
     return(string.Format("@action='{0}', @Service='{1}', @Session='{2}', @Rack='{3}', @Partnumber='{4}', @Qty={5}, @LabelRack='{6}', @Serial='{7}'", SD.Action, SD.Service, SD.Session, SD.Rack, SD.Partnumber, SD.Qty, SD.LabelRack, SD.Serial));
 }
コード例 #3
0
 public static string ProcedureParameters(this ScannedData SD)
 {
     return(string.Format("@action='{0}', @Service='{1}', @Session='{2}', @Rack='{3}', @Partnumber='{4}', @Qty={5}, @LabelRack='{6}', @Serial='{7}'", SD.Action, SD.Service, SD.Session, SD.Rack, SD.Partnumber, SD.Qty, SD.LabelRack, SD.Serial));
 }