protected void btnPintRollBack_Click(object sender, EventArgs e) { if (GXGridView1SelectedValue > 0) { RollBackDistribution rbd = RollBackDistribution.Get(GXGridView1SelectedValue); RollBackDistributionController.CreateFileForExistingRollBack(rbd); } }
protected void btnCreateRightRestrictions_Click(object sender, EventArgs e) { lblFeedBack.Visible = false; DateTime startDate = DateTime.Parse(tbStartDate.Text); DateTime endDate = DateTime.Parse(tbEndDate.Text); int insuranceCompanyID = int.Parse(ddlInsuranceCompany.SelectedValue); RollBackDistributionController.ForRightRestrictions(insuranceCompanyID, startDate, endDate); }
protected void btnCreateClick(object sender, EventArgs e) { lblFeedBack.Visible = false; DateTime startDate = DateTime.Parse(tbStartDate.Text); DateTime endDate = DateTime.Parse(tbEndDate.Text); int insuranceCompanyID = int.Parse(ddlInsuranceCompany.SelectedValue); RollBackDistribution rbd = RollBackDistribution.GetRollBack(startDate, endDate, insuranceCompanyID); RollBackDistributionController.CreateFileForRollBack(rbd, false); }
protected void btnPintRollBack_Click(object sender, EventArgs e) { btnPreview.CssClass = "osvezi"; btnReport.CssClass = "izvestaj"; btnSearch.CssClass = "prebaraj"; // btnDiscard.CssClass = "storniraj"; btnPintRollBack.CssClass = "pecati"; // btnConfirm.CssClass = "potvrdi"; if (GXGridView1SelectedValue > 0) { RollBackDistribution rbd = RollBackDistribution.Get(GXGridView1SelectedValue); RollBackDistributionController.CreateFileForExistingWithoutPaymentTypeRecap(rbd); } }
protected void btnPrintPoliciesClick(object sender, EventArgs e) { //Check last page changed old policies List <RollBackDistributionInfo> lastRBInfos = selectedOldRollBackInfos; List <RollBackDistributionInfo> totalInfos = listOldRollBackInfos; GridViewRowCollection displayedRows = gvOldPolicies.Rows; foreach (GridViewRow gvRow in displayedRows) { CheckBox cbIsForRollBack = gvRow.FindControl("cbIsForRollBack") as CheckBox; int rollBackInfoID = Convert.ToInt32(gvOldPolicies.DataKeys[gvRow.RowIndex].Value); RollBackDistributionInfo fi = lastRBInfos.Where(f => f.ID == rollBackInfoID).SingleOrDefault(); fi.IsForRollBack = cbIsForRollBack.Checked; RollBackDistributionInfo trdi = totalInfos.Where(f => f.ID == rollBackInfoID).SingleOrDefault(); trdi.IsForRollBack = cbIsForRollBack.Checked; } selectedOldRollBackInfos = lastRBInfos; listOldRollBackInfos = totalInfos; //Check last page changed new policies List <RollBackDistributionInfo> lastRBNewInfos = selectedNewRollBackInfos; List <RollBackDistributionInfo> totalNewInfos = listNewRollBackInfos; GridViewRowCollection displayedNewRows = gvNewPolicies.Rows; foreach (GridViewRow gvRow in displayedNewRows) { CheckBox cbIsForRollBack = gvRow.FindControl("cbIsForRollBack") as CheckBox; int rollBackInfoID = Convert.ToInt32(gvNewPolicies.DataKeys[gvRow.RowIndex].Value); RollBackDistributionInfo fi = lastRBNewInfos.Where(f => f.ID == rollBackInfoID).SingleOrDefault(); fi.IsForRollBack = cbIsForRollBack.Checked; RollBackDistributionInfo trdi = totalNewInfos.Where(f => f.ID == rollBackInfoID).SingleOrDefault(); trdi.IsForRollBack = cbIsForRollBack.Checked; } selectedNewRollBackInfos = lastRBNewInfos; listNewRollBackInfos = totalNewInfos; btnInsert.Visible = true; RollBackDistributionController.CreateFileForSelectedPolicies(listOldRollBackInfos, listNewRollBackInfos, DateTime.Parse(tbStartDate.Text), DateTime.Parse(tbEndDate.Text), int.Parse(ddlInsuranceCompany.SelectedValue), this.PageBranch.ID); }
protected void btnPrintAll_Click(object sender, EventArgs e) { RollBackDistributionController.CreateFileForCompanyWithoutPaymentTypeRecap(listSelected); }