Ejemplo n.º 1
0
        public AddLitigationResponse Add(AddLitigationRequest request)
        {
            var model = new Litigation()
            {
                IdProcess    = request.LitigationMessage.IdProcess,
                ValueProcess = Convert.ToDecimal(request.LitigationMessage.ValueProcess),
                State        = request.LitigationMessage.State,
                CompanyId    = request.LitigationMessage.CompanyId,
                Date         = new DateTime(request.LitigationMessage.DateProcess.Year, request.LitigationMessage.DateProcess.Month, request.LitigationMessage.DateProcess.Day),
                IsActive     = request.LitigationMessage.IsActive
            };

            _litigationDomainService.Create(model);

            return(new AddLitigationResponse(true, model.Id));
        }
Ejemplo n.º 2
0
    //protected void btnAssign_Click(object sender, EventArgs e)
    //{
    //    LitigationDeskBO _objLD;
    //    if (extddlUserLawFirm.Text != "NA")
    //    {
    //        foreach (DataGridItem dr in grdLitigationDesk.Items)
    //        {
    //            if (((CheckBox)dr.Cells[11].FindControl("chkSelect")).Checked != false)
    //            {
    //                _objLD = new LitigationDeskBO();
    //                ArrayList _objAL = new ArrayList();
    //                _objAL.Add(dr.Cells[1].Text);
    //                _objAL.Add(dr.Cells[0].Text);
    //                _objAL.Add(extddlUserLawFirm.Text);
    //                _objAL.Add("0");
    //                _objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
    //                _objLD.saveLegalCases(_objAL);
    //            }
    //        }
    //        BindgrdLitigationdesk();
    //    }
    //}
    protected void btnAssign_Click(object sender, EventArgs e)
    {
        LitigationDeskBO _objLD;

        if (extddlUserLawFirm.Text != "NA")
        {
            Litigation    litigation = new Litigation();
            LitigationDAO ndao       = null;
            ArrayList     list       = new ArrayList();
            foreach (DataGridItem dr in grdLitigationDesk.Items)
            {
                if (((CheckBox)dr.Cells[11].FindControl("chkSelect")).Checked != false)
                {
                    //_objLD = new LitigationDeskBO();
                    //ArrayList _objAL = new ArrayList();
                    //_objAL.Add(dr.Cells[1].Text);
                    //_objAL.Add(dr.Cells[0].Text);
                    //_objAL.Add(extddlUserLawFirm.Text);
                    //_objAL.Add("0");
                    //_objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    //_objLD.saveLegalCases(_objAL);

                    ndao              = new LitigationDAO();
                    ndao.CaseID       = dr.Cells[1].Text;
                    ndao.BillNumber   = dr.Cells[0].Text;
                    ndao.LawFirmID    = this.extddlUserLawFirm.Text;
                    ndao.UserID       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID; //(Bill_Sys_UserObject)this.Session["USER_OBJECT"];
                    ndao.TransferDate = DateTime.Today.ToString("MM/dd/yyyy");
                    ndao.CompanyID    = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    list.Add(ndao);
                }
            }
            if (list.Count > 0)
            {
                string szBatchId = litigation.saveLitigationBills(list);
            }
            BindgrdLitigationdesk();
        }
    }
Ejemplo n.º 3
0
        public bool Create(LitigationViewModel model)
        {
            var litigation = new Litigation()
            {
                ChargedSerialNumber = model.ChargedSerialNumber,
                Currency            = model.Currency,
                DateTime            = model.DateTime,
                Money         = model.Money,
                ProsecuteName = model.ProsecuteName,
                Reason        = model.Reason,
                Result        = model.Result
            };

            var litigationBasePeriod = new LitigationBasePeriod()
            {
                BorrowName   = model.BorrowName,
                BusinessDate = model.BusinessDate,
                LoanCardCode = model.LoanCardCode
            };

            return(true);
        }