Beispiel #1
0
 private HgLable BandTermTareWeight(DataRow dr)
 {
     HgLable data = new HgLable();
     data.Date = (DateTime)dr["FD_DATETIME"];//时间
     data.CarNo = dr["FS_CARNO"].ToString();//车号
     data.CardNumber = dr["FS_CARDNUMBER"].ToString();//卡号
     data.SupplierName = dr["FS_SENDER"].ToString();//发货单位
     data.Receiver = dr["FS_RECEIVER"].ToString();//收货单位
     data.TransName = dr["FS_TRANSNO"].ToString();//承运单位
     data.Weight = dr["FN_TAREWEIGHT"].ToString();
     data.CarComment = "期限皮重";//备注
     return data;
 }
Beispiel #2
0
 private HgLable BandFirstWeight(DataRow dr)
 {
     HgLable data = new HgLable();
     data.Date = (DateTime)dr["FD_WEIGHTTIME"];//时间
     data.ContractNo = dr["FS_CONTRACTNO"].ToString();//合同号
     data.CarNo = dr["FS_CARNO"].ToString();//车号
     data.CardNumber = dr["FS_CARDNUMBER"].ToString();//卡号
     data.SupplierName = dr["FS_SENDER"].ToString();//发货单位
     data.Receiver = dr["FS_RECEIVER"].ToString();//收货单位
     data.TransName = dr["FS_TRANSNO"].ToString();//承运单位
     data.MaterialName = dr["FS_MATERIALNAME"].ToString();//物资名称
     data.StoveNo = dr["FS_STOVENO1"].ToString() + (!string.IsNullOrEmpty(dr["FS_STOVENO2"].ToString()) ? ("," + dr["FS_STOVENO2"].ToString()) : "") + (!string.IsNullOrEmpty(dr["FS_STOVENO3"].ToString()) ? ("," + dr["FS_STOVENO3"].ToString()) : "");//炉号
     int count1 = 0, count2 = 0, count3 = 0;
     int.TryParse(dr["FN_COUNT1"].ToString(),out count1);
     int.TryParse(dr["FN_COUNT2"].ToString(), out count2);
     int.TryParse(dr["FN_COUNT3"].ToString(), out count3);
     data.Count = (count1+count2+count3).ToString(); //支数
     data.MillComment = dr["FS_ZZJY"].ToString();//轧制建议
     data.PlanSpec = dr["FS_ADVISESPEC"].ToString();//建议轧制规格
     data.Weight = dr["FN_WEIGHT"].ToString();
     //data.DeductWeight = dr["FS_YKL"].ToString();//扣杂
     data.BarCode = dr["FS_FIRSTLABELID"].ToString();//一次条码号
     data.CarComment = dr["FS_BZ"].ToString();//备注
     return data;
 }
Beispiel #3
0
        private HgLable BandHistoryWeight(DataRow dr)
        {
            HgLable data = new HgLable();

            DateTime grossTime = (DateTime)dr["FD_GROSSDATETIME"];
            DateTime tareTime = (DateTime)dr["FD_TAREDATETIME"];

            data.WeightNum = "1";
            data.Date = grossTime > tareTime ? grossTime : tareTime;//时间
            data.ContractNo = dr["FS_CONTRACTNO"].ToString();//合同号
            data.CarNo = dr["FS_CARNO"].ToString();//车号
            data.CardNumber = dr["FS_CARDNUMBER"].ToString();//卡号
            data.SupplierName = dr["FS_SENDER"].ToString();//发货单位
            data.Receiver = dr["FS_RECEIVER"].ToString();//收货单位
            data.TransName = dr["FS_TRANSNO"].ToString();//承运单位
            data.MaterialName = dr["FS_MATERIALNAME"].ToString();//物资名称
            data.StoveNo = dr["FS_STOVENO1"].ToString() + (!string.IsNullOrEmpty(dr["FS_STOVENO2"].ToString()) ? ("," + dr["FS_STOVENO2"].ToString()) : "") + (!string.IsNullOrEmpty(dr["FS_STOVENO3"].ToString()) ? ("," + dr["FS_STOVENO3"].ToString()) : "");//炉号
            int count1 = 0, count2 = 0, count3 = 0;
            int.TryParse(dr["FN_COUNT1"].ToString(), out count1);
            int.TryParse(dr["FN_COUNT2"].ToString(), out count2);
            int.TryParse(dr["FN_COUNT3"].ToString(), out count3);
            data.Count = (count1 + count2 + count3).ToString(); //支数
            data.MillComment = dr["FS_ZZJY"].ToString();//轧制建议
            data.PlanSpec = dr["FS_ADVISESPEC"].ToString();//建议轧制规格
            data.GrossWeight = dr["FN_GROSSWEIGHT"].ToString();//毛重
            data.TareWeight = dr["FN_TAREWEIGHT"].ToString();//皮重
            data.NetWeight = dr["FN_NETWEIGHT"].ToString();//净重
            data.DeductWeight = dr["FS_YKL"].ToString();//扣杂
            data.DeductAfterWeight = dr["FS_KHJZ"].ToString();//扣后净重
            data.CarComment = dr["FS_BZ"].ToString();//备注
            data.Flow = dr["FS_WEIGHTTYPE"].ToString();//流向
            data.GrossWeightTime = dr["FS_GROSSDATETIME"].ToString();//毛重时间
            data.TareWeightTime = dr["FS_TAREDATETIME"].ToString();//皮重时间
            data.BarCode = dr["FS_FULLLABELID"].ToString();//完整条码号

            return data;
        }
Beispiel #4
0
 private HgLable BandAssistWeight(DataRow dr)
 {
     HgLable data = new HgLable();
     data.CarNo = dr["FS_CARNO"].ToString();
     data.Weight = dr["FN_WEIGHT"].ToString();
     data.Date = (DateTime)dr["FS_WEIGHTTIME"];
     data.Charge = !string.IsNullOrEmpty(dr["FN_CHARGE"].ToString()) ? dr["FN_CHARGE"].ToString() : "0";
     return data;
 }