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

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.ID;
            sp[1].Value = model.WorkDate;
            sp[2].Value = model.WorkBegin;
            sp[3].Value = model.WorkEnd;
            sp[4].Value = model.Status;
            sp[5].Value = model.BeginDate;
            return(sp);
        }
Ejemplo n.º 2
0
        public M_MisSign GetModelFromReader(DbDataReader rdr)
        {
            M_MisSign model = new M_MisSign();

            model.ID        = ConvertToInt(rdr["ID"]);
            model.WorkDate  = ConverToStr(rdr["WorkDate"]);
            model.WorkBegin = ConverToStr(rdr["WorkBegin"]);
            model.WorkEnd   = ConverToStr(rdr["WorkEnd"]);
            model.Status    = ConvertToInt(rdr["Status"]);
            model.BeginDate = ConvertToDate(rdr["MID"]);
            if (!rdr.HasRows)
            {
                rdr.Close();
                rdr.Dispose();
            }
            return(model);
        }