Exemplo n.º 1
0
        public override SqlParameter[] GetParameters()
        {
            M_Order_Back model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.OrderID;
            sp[2].Value = model.CDate;
            sp[3].Value = model.UserRemind;
            sp[4].Value = model.AdminRemind;
            sp[5].Value = model.OrderBak;
            sp[6].Value = model.UserID;
            sp[7].Value = model.AdminID;
            sp[8].Value = model.ZStatus;
            return(sp);
        }
Exemplo n.º 2
0
        public M_Order_Back GetModelFromReader(DbDataReader rdr)
        {
            M_Order_Back model = new M_Order_Back();

            model.ID          = Convert.ToInt32(rdr["ID"]);
            model.OrderID     = Convert.ToInt32(rdr["OrderID"]);
            model.CDate       = ConvertToDate(rdr["CDate"]);
            model.UserRemind  = ConverToStr(rdr["UserRemind"]);
            model.AdminRemind = ConverToStr(rdr["AdminRemind"]);
            model.OrderBak    = ConverToStr(rdr["OrderBak"]);
            model.UserID      = ConvertToInt(rdr["UserID"]);
            model.AdminID     = ConvertToInt(rdr["AdminID"]);
            model.ZStatus     = ConvertToInt(rdr["ZStatus"]);
            rdr.Close();
            return(model);
        }