Exemplo n.º 1
0
        public void Save(DCRecordPipeline dcvdr)
        {
            BatchRecord m_br = new BatchRecord();

            try
            {
                foreach (DCBatchRecord br in dcvdr.BatchUpdates)
                {
                    m_br.Get(br); //To get the existing Data
                    br.RecordStatusID = dcvdr.ChangeStatus;
                    br.SessionID      = dcvdr.SessionID;
                    m_br.Save(br);
                }
            }
            catch (Exception exp) { throw exp; }
            finally { }
        }
Exemplo n.º 2
0
        public void Get(DCRecordCase dcrc)
        {
            BatchRecord br = new BatchRecord();

            try
            {
                GMUtilities.GMReflectionUtils.Copy(m_biz.Get(dcrc.ID), dcrc);
                if (HasID(dcrc.ID))
                {
                    dcrc.CaseRecord = m_cf.Get(dcrc.ID.Value);
                }
                DCBatchRecord dcbr = new DCBatchRecord();
                dcbr.ID = dcrc.RecordID;
                br.Get(dcbr);
                GMUtilities.GMReflectionUtils.Copy(dcbr, dcrc, false);
                Fetch2Child(dcrc, dcbr);
            }
            catch (Exception exp) { throw exp; }
            finally { br.Dispose(); }
        }