示例#1
0
        public M_Font_Write GetModelFromReader(DbDataReader rdr)
        {
            M_Font_Write model = new M_Font_Write();

            model.ID           = ConvertToInt(rdr["ID"]);
            model.FontName     = ConverToStr(rdr["FontName"]);
            model.CompletedNum = ConvertToInt(rdr["CompletedNum"]);
            model.ZType        = ConvertToInt(rdr["ZType"]);
            model.ZStatus      = ConvertToInt(rdr["ZStatus"]);
            model.Remind       = ConverToStr(rdr["Remind"]);
            model.UserID       = ConvertToInt(rdr["UserID"]);
            model.CDate        = ConvertToDate(rdr["CDate"]);
            model.UserName     = ConverToStr(rdr["UserName"]);
            rdr.Close();
            return(model);
        }
示例#2
0
        public override SqlParameter[] GetParameters()
        {
            M_Font_Write model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.FontName;
            sp[2].Value = model.CompletedNum;
            sp[3].Value = model.ZType;
            sp[4].Value = model.ZStatus;
            sp[5].Value = model.Remind;
            sp[6].Value = model.UserID;
            sp[7].Value = model.CDate;
            sp[8].Value = model.UserName;
            return(sp);
        }