Esempio n. 1
0
        public void Get(DCBatchRecord dcbr)
        {
            CompanyBiz    cb = new CompanyBiz();
            VendorBiz     vb = new VendorBiz();
            RecordHistory rh = new RecordHistory();

            try
            {
                GMUtilities.GMReflectionUtils.Copy(m_biz.Get(dcbr.ID), dcbr);
                dcbr.DSActionID       = m_optbiz.GetActionTypes();
                dcbr.DSCaseTypeID     = m_optbiz.GetCaseTypes();
                dcbr.DSCompanyID      = cb.Get();
                dcbr.DSContactTypeID  = m_optbiz.GetContactTypes();
                dcbr.DSRecordStatusID = m_optbiz.GetRecordStatusTypes();
                dcbr.DSCountyID       = m_optbiz.GetCounties();
                dcbr.DSVendorID       = vb.GetActive();
                dcbr.History          = rh.Get(dcbr.ID);
                if (dcbr.CaseTypeID.HasValue)
                {
                    DataRow rv = m_optbiz.GetCaseTypes(dcbr.CaseTypeID.Value);
                    if (rv != null)
                    {
                        dcbr.IsCivil = Convert.ToBoolean(rv[GMConstants.OptionsMap.IsCivil]);
                    }
                }
            }
            catch (Exception exp) { throw exp; }
            finally { cb.Dispose(); vb.Dispose(); }
        }
Esempio n. 2
0
        public void Get(DCBatch dcvdr)
        {
            CompanyBiz m_CompanyBiz = new CompanyBiz();

            try
            {
                dcvdr.DSCompanyID = m_CompanyBiz.GetActive();
            }
            catch (Exception exp) { throw exp; }
            finally { m_CompanyBiz.Dispose(); }
        }
Esempio n. 3
0
        public DCBatchPipeline Get(DCBatchPipeline dcvdr)
        {
            CompanyBiz m_CompanyBiz = new CompanyBiz();
            UserBiz    m_UserBiz    = new UserBiz();

            try
            {
                dcvdr.DSCompanyID = m_CompanyBiz.Get();
                dcvdr.DSUserID    = m_UserBiz.Get();
                AddDefaultOption(dcvdr.DSCompanyID);
                AddDefaultOption(dcvdr.DSUserID);
            }
            catch (Exception exp) { throw exp; }
            finally { m_CompanyBiz.Dispose(); }
            return(dcvdr);
        }
Esempio n. 4
0
        public DCRecordPipeline Get(DCRecordPipeline dcvdr)
        {
            CompanyBiz m_CompanyBiz = new CompanyBiz();

            try
            {
                dcvdr.DSActionID       = m_optbiz.GetActionTypes();
                dcvdr.DSRecordStatusID = m_optbiz.GetRecordStatusTypes();
                dcvdr.DSCaseTypeID     = m_optbiz.GetCaseTypes();
                dcvdr.DSCompanyID      = m_CompanyBiz.Get();

                AddDefaultOption(dcvdr.DSActionID);
                AddDefaultOption(dcvdr.DSRecordStatusID);
                AddDefaultOption(dcvdr.DSCaseTypeID);
                AddDefaultOption(dcvdr.DSCompanyID);
                dcvdr.DSChangeStatus = dcvdr.DSRecordStatusID;
            }
            catch (Exception exp) { throw exp; }
            finally { m_CompanyBiz.Dispose(); }
            return(dcvdr);
        }
Esempio n. 5
0
        public void Save(DCBatch dcvdr)
        {
            CompanyBiz     cbiz  = new CompanyBiz();
            BatchRecordBiz brbiz = new BatchRecordBiz();

            try
            {
                BatchDetail detvdr = new BatchDetail();
                GMUtilities.GMReflectionUtils.Copy(dcvdr, detvdr);
                detvdr.CreatedDate = DateTime.Now;
                DataTable dt = m_biz.Save(detvdr, cbiz.Get(dcvdr.CompanyID), dcvdr.BatchFilePath, m_optbiz.GetCounties());
                //Save Records
                dcvdr.Messages = m_biz.Messages;

                brbiz.Save(dt, detvdr, dcvdr.SessionID);
                dcvdr.ID = detvdr.ID;
                dcvdr.Messages.AddRange(brbiz.Messages);
                //Update the Total, Pass and Fail count.
                m_biz.Save(detvdr);
            }
            catch (Exception exp)
            { throw exp; }
            finally { cbiz.Dispose(); brbiz.Dispose(); }
        }
Esempio n. 6
0
 public Company() : base()
 {
     m_biz = new CompanyBiz();
 }