Пример #1
0
        public M_Pro_Progress GetModelFromReader(DbDataReader rdr)
        {
            M_Pro_Progress model = new M_Pro_Progress();

            model.ID      = ConvertToInt(rdr["ID"]);
            model.ProID   = ConvertToInt(rdr["ProID"]);
            model.Title   = ConverToStr(rdr["Title"]);
            model.Content = ConverToStr(rdr["Content"]);
            model.CDate   = ConvertToDate(rdr["CDate"]);
            model.ZStatus = ConvertToInt(rdr["ZStatus"]);
            model.OrderID = ConvertToInt(rdr["OrderID"]);
            rdr.Close();
            return(model);
        }
Пример #2
0
        public override SqlParameter[] GetParameters()
        {
            M_Pro_Progress model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.ProID;
            sp[2].Value = model.Title;
            sp[3].Value = model.Content;
            sp[4].Value = model.CDate;
            sp[5].Value = model.ZStatus;
            sp[6].Value = model.OrderID;
            return(sp);
        }