public DCCase2 Get() { DCCase2 rv = new DCCase2(); m_cf.Assign(rv); GetHeaderToken(rv); return(rv); }
public void Save(DCCase2 dcc) { try { Case2Detail detcd = HasID(dcc.ID)? m_biz.Get(dcc.ID): new Case2Detail(); GMUtilities.GMReflectionUtils.Copy(dcc, detcd); m_biz.Save(detcd); } catch (Exception exp) { throw exp; } finally { } }
public List <DCCase2> Get(int ID) { List <DCCase2> rv = new List <DCCase2>(); DataTable dt = m_biz.GetByCaseID(ID); foreach (DataRow dr in dt.Rows) { DCCase2 c = new DCCase2(dr); Assign(c); rv.Add(c); } return(rv); }
public List <DCCase2> Get(GridView gv) { List <DCCase2> rv = new List <DCCase2>(); foreach (GridViewRow grv in gv.Rows) { if (grv.Visible) { DCCase2 vcr = new DCCase2(gv, grv); if (string.IsNullOrEmpty(vcr.Description)) { continue; } m_cf.Assign(vcr); rv.Add(vcr); } } return(rv); }
public void Assign(DCCase2 c) { c.DSDispositionTypeID = m_dtdisposition; c.DSLevelTypeID = m_dtlevel; c.DSPleaTypeID = m_dtplea; }