Beispiel #1
0
        public override SqlParameter[] GetParameters()
        {
            M_UserExpHis model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value  = model.ExpHisID;
            sp[1].Value  = model.UserID;
            sp[2].Value  = model.Operator;
            sp[3].Value  = model.detail;
            sp[4].Value  = model.score;
            sp[5].Value  = model.HisTime;
            sp[6].Value  = model.OperatorIP;
            sp[7].Value  = model.ScoreType;
            sp[8].Value  = model.Remark;
            sp[9].Value  = model.Attach;
            sp[10].Value = model.Extend;
            //sp[11].Value = model.score_before;
            return(sp);
        }
Beispiel #2
0
        public M_UserExpHis GetModelFromReader(DbDataReader rdr)
        {
            M_UserExpHis model = new M_UserExpHis();

            model.ExpHisID   = Convert.ToInt32(rdr["ExpHisID"]);
            model.UserID     = Convert.ToInt32(rdr["UserID"]);
            model.Operator   = ConvertToInt(rdr["Operator"]);
            model.detail     = ConverToStr(rdr["detail"]);
            model.score      = Convert.ToDouble(rdr["score"]);
            model.HisTime    = ConvertToDate(rdr["HisTime"]);
            model.OperatorIP = ConverToStr(rdr["OperatorIP"]);
            model.ScoreType  = Convert.ToInt32(rdr["ScoreType"]);
            model.Remark     = ConverToStr(rdr["Remark"]);
            model.Attach     = ConverToStr(rdr["Attach"]);
            model.Extend     = ConverToStr(rdr["Extend"]);
            //model.score_before = ConverToDouble(rdr["score_before"]);
            rdr.Close();
            return(model);
        }
Beispiel #3
0
 public override string[,] FieldList()
 {
     return(M_UserExpHis.GetFieldList());
 }