예제 #1
0
        /// <summary>
        /// 解析数据
        /// </summary>
        /// <param name="row"></param>
        public static AcqLineItemMDL  PraseDataRow(DataRow row)
        {
            AcqLineItemMDL mdl = new AcqLineItemMDL();

            try
            {
                mdl.TID         = Convert.ToString(row["TID"]);
                mdl.PLID        = Convert.ToString(row["PLID"]);
                mdl.PN          = Convert.ToString(row["PN"]);
                mdl.OP          = Convert.ToInt32(row["OP"]);
                mdl.EMS         = Convert.ToInt32(row["EMS"]);
                mdl.UNITID      = Convert.ToString(row["UNITID"]);
                mdl.PR_COUNT    = Convert.ToInt32(row["PR_COUNT"]);
                mdl.TIME_LENGTH = Convert.ToInt32(row["TIME_LENGTH"]);
                mdl.TGNAME      = Convert.ToString(row["TGNMAE"]);
                mdl.START_TIME  = Convert.ToDateTime(row["START_TIME"]);
                mdl.END_TIME    = Convert.ToDateTime(row["END_TIME"]);
                mdl.UPDATE_TIME = Convert.ToDateTime(row["UPDATE_TIME"]);
                mdl.ERROR       = Convert.ToString(row["ERROR"]);
                mdl.REMARK      = Convert.ToString(row["REMARK"]);

                return(mdl);
            }
            catch
            {
                throw;
            }
        }
예제 #2
0
 public void Prase(DataRow row)
 {
     try
     {
         AcqLineItemMDL mdl = PraseDataRow(row);
         this.tid         = mdl.TID;
         this.plid        = mdl.PLID;
         this.pn          = mdl.PN;
         this.op          = mdl.OP;
         this.ems         = mdl.EMS;
         this.pr_count    = mdl.PR_COUNT;
         this.time_length = mdl.TIME_LENGTH;
         this.tgname      = mdl.TGNAME;
         this.startTime   = mdl.START_TIME;
         this.endTime     = mdl.END_TIME;
         this.updateTime  = mdl.UPDATE_TIME;
         this.error       = mdl.ERROR;
         this.remark      = mdl.REMARK;
     }
     catch
     {
         throw;
     }
 }