public static int SaveINReason(INReason info)
 {
     return ConnectDB.ExecuteScalar("sp_INReasonSave",
         new String[] { "RsID", "Descr",  "Crtd_Prog", "Crtd_User", "LUpd_DateTime", "LUpd_Prog", "LUpd_User" },
         new Object[] { info.RsID, info.Descr, info.Crtd_Prog, info.Crtd_User, info.LUpd_DateTime, info.LUpd_Prog, info.LUpd_User });
 }
示例#2
0
 private void _SaveGrid()
 {
     if (dgv != null)
     {
         for (int i = 0; i < dgv.Rows.Count; i++)
         {
             INReason _rs = new INReason();
             _rs.RsID = dgv.Rows[i].Cells["RsId"].FormattedValue.ToString().Trim();
             _rs.Descr = dgv.Rows[i].Cells["Descr"].FormattedValue.ToString().Trim();
             _rs.Crtd_DateTime = _dtmWorkDate;
             _rs.Crtd_Prog = _strPro;
             _rs.Crtd_User = _strUser;
             _rs.LUpd_DateTime = _dtmWorkDate;
             _rs.LUpd_Prog = _strPro;
             _rs.LUpd_User = _strUser;
             int kq;
             if (_rs.RsID != "")
                 kq = IN103Ctrl.SaveINReason(_rs);
         }
         _BinGrid();
     }
 }