Пример #1
0
        public DCCase2 Get()
        {
            DCCase2 rv = new DCCase2();

            m_cf.Assign(rv);
            GetHeaderToken(rv);
            return(rv);
        }
Пример #2
0
 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 { }
 }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
 public void Assign(DCCase2 c)
 {
     c.DSDispositionTypeID = m_dtdisposition;
     c.DSLevelTypeID       = m_dtlevel;
     c.DSPleaTypeID        = m_dtplea;
 }