예제 #1
0
        public Dictionary <string, string> PackAllData()
        {
            Dictionary <string, string> workDataRow = new Dictionary <string, string>();

            workDataRow.Add(Constant.strformatSql[0], ybdtWorkInfo.DanHao);
            workDataRow.Add(Constant.strformatSql[1], ybdtWorkInfo.DateTimeDanhao);
            workDataRow.Add(Constant.strformatSql[2], ybdtWorkInfo.Department);
            workDataRow.Add(Constant.strformatSql[3], ybdtWorkInfo.TuHao);
            workDataRow.Add(Constant.strformatSql[4], ybdtWorkInfo.ProdName);
            workDataRow.Add(Constant.strformatSql[5], ybdtWorkInfo.GongXu);
            workDataRow.Add(Constant.strformatSql[6], ybdtWorkInfo.GyTx);
            workDataRow.Add(Constant.strformatSql[7], ybdtWorkInfo.OperatorName);
            workDataRow.Add(Constant.strformatSql[8], ybdtWorkInfo.OperatorTx);
            workDataRow.Add(Constant.strformatSql[9], ybdtWorkInfo.DeviceClass);
            workDataRow.Add(Constant.strformatSql[10], ybdtWorkInfo.DeviceId);
            workDataRow.Add(Constant.strformatSql[11], ybdtWorkInfo.DeviceIP);
            workDataRow.Add(Constant.strformatSql[12], ybdtWorkInfo.DeviceTx);
            workDataRow.Add(Constant.strformatSql[13], ybdtWorkInfo.CadPath);
            workDataRow.Add(Constant.strformatSql[14], ybdtWorkInfo.Ddsm);
            workDataRow.Add(Constant.strformatSql[15], ybdtWorkInfo.SetProdQuantity);
            workDataRow.Add(Constant.strformatSql[16], ybdtWorkInfo.Speed);
            workDataRow.Add(Constant.strformatSql[17], ybdtWorkInfo.Jshu);
            workDataRow.Add(Constant.strformatSql[18], ybdtWorkInfo.Gmj);
            workDataRow.Add(Constant.strformatSql[19], readSpeed.ToString());
            workDataRow.Add(Constant.strformatSql[20], ProdQuantity.ToString());
            workDataRow.Add(Constant.strformatSql[21], startTime.ToString());
            workDataRow.Add(Constant.strformatSql[22], endNeedTime.ToString());
            workDataRow.Add(Constant.strformatSql[23], endRealTime.ToString());

            return(workDataRow);
        }
예제 #2
0
        public List <string> PackSaveDr()
        {
            List <string> workDataRow = new List <string>();

            workDataRow.Add(ybdtWorkInfo.DanHao);
            workDataRow.Add(ybdtWorkInfo.DateTimeDanhao);
            workDataRow.Add(ybdtWorkInfo.Department);
            workDataRow.Add(ybdtWorkInfo.TuHao);
            workDataRow.Add(ybdtWorkInfo.ProdName);
            workDataRow.Add(ybdtWorkInfo.GongXu);
            workDataRow.Add(ybdtWorkInfo.OperatorName);
            workDataRow.Add(ybdtWorkInfo.DeviceId);
            workDataRow.Add(ProdQuantity.ToString());
            workDataRow.Add(StartTime.ToLocalTime().ToString());
            workDataRow.Add(EndRealTime.ToLocalTime().ToString());
            workDataRow.Add("0");
            workDataRow.Add("null");

            return(workDataRow);
        }