示例#1
0
 private void btnManageCededCompanyHold_Click(object sender, RoutedEventArgs e)
 {
     lblScreenName.Text = "Manage Ceding Company Hold";
     UIHelpers.showRadioButtonStatus(btnManageCededCompanyHold, new Button[] { btnHoldScreen, btnManageCededCompanyHold, btnAssumedPayments });
     closeScreens();
     screenManageCeded.Visibility = Visibility.Visible;
 }
示例#2
0
 private void switchToHoldScreen()
 {
     lblScreenName.Text = "Assumed Payments";
     UIHelpers.showRadioButtonStatus(btnHoldScreen, new Button[] { btnHoldScreen, btnManageCededCompanyHold, btnAssumedPayments });
     closeScreens();
     screenHold.Visibility          = Visibility.Visible;
     btnActivateCheckRun.Visibility = Visibility.Visible;
 }
        public void Load()
        {
            UIHelpers.showRadioButtonStatus(btnAll, new Button[] { btnAll, btnCleared, btnIssued, btnVoided });

            ////// If we got it once, we'll assume it's up to date enough, add a refresh button in V2 ///////
            if (dtNavDataUSA.Rows.Count > 0)
            {
                return;
            }

            ////// Get the US and Canadian payments from NAV //////
            dsNavData    = ScriptEngine.script.runScript(ScriptEngine.envCurrent, new DataTable(), "AP_GET_NAV", "OPSCONSOLE");
            dtNavDataUSA = dsNavData.Tables["USD"];
            dtNavDataCAD = dsNavData.Tables["CAD"];

            dtNavData = dtNavDataUSA.Copy();
            dtNavData.Merge(dtNavDataCAD);

            dtNavData.Columns.Add("ClaimNumber");
            dtNavData.Columns.Add("VendorName");
            dtNavData.Columns.Add("CedingCompany");
            dtNavData.Columns.Add("Insured");
            dtNavData.Columns.Add("ReferenceNumber");
            dtNavData.Columns.Add("BrokerName");
            dtNavData.Columns.Add("DateOfLoss", typeof(DateTime));

            dtPINSCopy = ScriptEngine.script.runScript(ScriptEngine.envCurrent, new DataTable(), "AP_CS_GETALLPAYMENTS", "OPSCONSOLE").Tables["UM"];
            DataTable dtPinsPresentation = dtPINSCopy.Clone();

            DataView dvLookup = new DataView(dtPINSCopy);

            dvLookup.Sort = "PaymentID";

            foreach (DataRow dr in dtNavData.Rows)
            {
                string conformedID = dr["ConformedPaymentID"].ToString();

                int index = dvLookup.Find(conformedID);
                if (index >= 0)
                {
                    dr["ClaimNumber"]     = dvLookup[index]["ClaimNumber"].ToString();
                    dr["VendorName"]      = dvLookup[index]["VendorName"].ToString();
                    dr["CedingCompany"]   = dvLookup[index]["CedingCompany"].ToString();
                    dr["Insured"]         = dvLookup[index]["Insured"].ToString();
                    dr["DateOfLoss"]      = dvLookup[index]["DateOfLoss"].ToString();
                    dr["BrokerName"]      = dvLookup[index]["BrokerName"].ToString();
                    dr["ReferenceNumber"] = dvLookup[index]["ReferenceNumber"].ToString();
                }
            }

            filterData();
        }
 private void btnIssued_Click(object sender, RoutedEventArgs e)
 {
     UIHelpers.showRadioButtonStatus(btnIssued, new Button[] { btnAll, btnCleared, btnIssued, btnVoided });
     filterData();
 }
 public void Load(string permissions)
 {
     UIHelpers.showRadioButtonStatus(btnAll, new Button[] { btnAll, btnHeld, btnReleased });
     loadCededHold();
     AdjustPermissionsForUser();
 }
 private void btnAll_Click(object sender, RoutedEventArgs e)
 {
     UIHelpers.showRadioButtonStatus(btnAll, new Button[] { btnAll, btnHeld, btnReleased });
     applyFilters();
 }