Exemplo n.º 1
0
        private void FillGrid()
        {
            DateTime dateFrom  = PIn.Date(textDateFrom.Text);
            DateTime dateTo    = PIn.Date(textDateTo.Text);
            long     clinicNum = 0;

            if (comboClinic.SelectedIndex > 0)
            {
                clinicNum = Clinics.List[comboClinic.SelectedIndex - 1].ClinicNum;
            }
            ListClaimPay = ClaimPayments.GetForDateRange(dateFrom, dateTo, clinicNum);
            gridMain.BeginUpdate();
            gridMain.Columns.Clear();
            ODGridColumn col = new ODGridColumn(Lan.g(this, "Date"), 70);

            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g(this, "Amount"), 75, HorizontalAlignment.Right);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g(this, "Partial"), 40, HorizontalAlignment.Center);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g(this, "Carrier"), 250);
            gridMain.Columns.Add(col);
            if (!PrefC.GetBool(PrefName.EasyNoClinics))
            {
                col = new ODGridColumn(Lan.g(this, "Clinic"), 100);
                gridMain.Columns.Add(col);
            }
            col = new ODGridColumn(Lan.g(this, "Note"), 100);
            gridMain.Columns.Add(col);
            gridMain.Rows.Clear();
            ODGridRow row;

            for (int i = 0; i < ListClaimPay.Count; i++)
            {
                row = new ODGridRow();
                if (ListClaimPay[i].CheckDate.Year < 1800)
                {
                    row.Cells.Add("");
                }
                else
                {
                    row.Cells.Add(ListClaimPay[i].CheckDate.ToShortDateString());
                }
                row.Cells.Add(ListClaimPay[i].CheckAmt.ToString("c"));
                row.Cells.Add(ListClaimPay[i].IsPartial?"X":"");
                row.Cells.Add(ListClaimPay[i].CarrierName);
                if (!PrefC.GetBool(PrefName.EasyNoClinics))
                {
                    row.Cells.Add(Clinics.GetDesc(ListClaimPay[i].ClinicNum));
                }
                row.Cells.Add(ListClaimPay[i].Note);
                gridMain.Rows.Add(row);
            }
            gridMain.EndUpdate();
            gridMain.ScrollToEnd();
        }
Exemplo n.º 2
0
        private void FillGrid()
        {
            DateTime dateFrom  = PIn.Date(textDateFrom.Text);
            DateTime dateTo    = PIn.Date(textDateTo.Text);
            long     clinicNum = 0;

            if (comboClinic.SelectedIndex > 0)
            {
                clinicNum = _listClinics[comboClinic.SelectedIndex - 1].ClinicNum;
            }
            long selectedGroupNum = 0;

            if (comboPayGroup.SelectedIndex != 0)
            {
                selectedGroupNum = _listCPGroups[comboPayGroup.SelectedIndex - 1].DefNum;
            }
            DataTable tableClaimPayments = ClaimPayments.GetForDateRange(dateFrom, dateTo, clinicNum, selectedGroupNum);

            ListClaimPay = ClaimPaymentCrud.TableToList(tableClaimPayments);
            gridMain.BeginUpdate();
            gridMain.ListGridColumns.Clear();
            GridColumn col = new GridColumn(Lan.g(this, "Date"), 65);

            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "Type"), 70);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "Amount"), 75, HorizontalAlignment.Right);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "Partial"), 40, HorizontalAlignment.Center);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "Carrier"), 180);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "PayGroup"), 80);
            gridMain.ListGridColumns.Add(col);
            if (PrefC.HasClinicsEnabled)
            {
                col = new GridColumn(Lan.g(this, "Clinic"), 80);
                gridMain.ListGridColumns.Add(col);
            }
            col = new GridColumn(Lan.g(this, "Note"), 180);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "Scanned"), 40, HorizontalAlignment.Center);
            gridMain.ListGridColumns.Add(col);
            gridMain.ListGridRows.Clear();
            GridRow row;

            for (int i = 0; i < ListClaimPay.Count; i++)
            {
                row = new GridRow();
                if (ListClaimPay[i].CheckDate.Year < 1800)
                {
                    row.Cells.Add("");
                }
                else
                {
                    row.Cells.Add(ListClaimPay[i].CheckDate.ToShortDateString());
                }
                row.Cells.Add(Defs.GetName(DefCat.InsurancePaymentType, ListClaimPay[i].PayType));
                row.Cells.Add(ListClaimPay[i].CheckAmt.ToString("c"));
                row.Cells.Add(ListClaimPay[i].IsPartial?"X":"");
                row.Cells.Add(ListClaimPay[i].CarrierName);
                row.Cells.Add(Defs.GetName(DefCat.ClaimPaymentGroups, ListClaimPay[i].PayGroup));
                if (PrefC.HasClinicsEnabled)
                {
                    row.Cells.Add(Clinics.GetAbbr(ListClaimPay[i].ClinicNum));
                }
                row.Cells.Add(ListClaimPay[i].Note);
                row.Cells.Add((tableClaimPayments.Rows[i]["hasEobAttach"].ToString() == "1")?"X":"");
                gridMain.ListGridRows.Add(row);
            }
            gridMain.EndUpdate();
            gridMain.ScrollToEnd();
        }
Exemplo n.º 3
0
        private void FormReportsMore_Load(object sender, EventArgs e)
        {
            butPW.Visible = Programs.IsEnabled(ProgramName.PracticeWebReports);
            listProdInc.Items.AddRange(new string[] {
                Lan.g(this, "Today"),
                Lan.g(this, "Yesterday"),
                Lan.g(this, "This Month"),
                Lan.g(this, "Last Month"),
                Lan.g(this, "This Year"),
                Lan.g(this, "More Options")
            });
            listDaily.Items.AddRange(new string[] {
                Lan.g(this, "Adjustments"),
                Lan.g(this, "Payments"),
                Lan.g(this, "Procedures"),
                Lan.g(this, "Writeoffs"),
                Lan.g(this, "Incomplete Procedure Notes"),
                Lan.g(this, "Routing Slips")
            });
            listMonthly.Items.AddRange(new string[] {
                Lan.g(this, "Aging Report"),
                Lan.g(this, "Claims Not Sent"),
                Lan.g(this, "Capitation Utilization"),
                Lan.g(this, "Finance Charge Report"),
                Lan.g(this, "Outstanding Insurance Claims"),
                Lan.g(this, "Procedures Not Billed to Insurance"),
                Lan.g(this, "PPO Writeoffs"),
                Lan.g(this, "Payment Plans"),
                Lan.g(this, "Receivable Breakdown"),
                Lan.g(this, "Unearned Income"),
                Lan.g(this, "Insurance Overpaid"),
            });
            listLists.Items.AddRange(new string[] {
                Lan.g(this, "Appointments"),
                Lan.g(this, "Birthdays"),
                Lan.g(this, "Insurance Plans"),
                Lan.g(this, "New Patients"),
                Lan.g(this, "Patients - Raw"),
                Lan.g(this, "Patients Notes"),
                Lan.g(this, "Prescriptions"),
                Lan.g(this, "Procedure Codes"),
                Lan.g(this, "Referrals - Raw"),
                Lan.g(this, "Referral Analysis"),
                Lan.g(this, "Referred Proc Tracking"),
                Lan.g(this, "Treatment Finder")
                //Lan.g(this,"Treatment Plan Manager")//js too buggy
            });
            listPublicHealth.Items.AddRange(new string[] {
                Lan.g(this, "Raw Screening Data"),
                Lan.g(this, "Raw Population Data")
            });
            listArizonaPrimaryCare.Items.AddRange(new string[] {
                Lan.g(this, "Eligibility File"),
                Lan.g(this, "Encounter File")
            });
            //Arizona primary care list and label must only be visible when the Arizona primary
            //care option is checked in the miscellaneous options.
            if (UsingArizonaPrimaryCare())
            {
                labelArizonaPrimaryCare.Visible = true;
                listArizonaPrimaryCare.Visible  = true;
            }
            //Notify user if partial batch ins payments exist.
            List <ClaimPayment> listClaimPay = ClaimPayments.GetForDateRange(DateTime.Now.AddMonths(-1), DateTime.Now, 0);

            for (int i = 0; i < listClaimPay.Count; i++)
            {
                if (listClaimPay[i].IsPartial)
                {
                    MsgBox.Show(this, "Reports will not be accurate until partial insurance payments are completed.");
                    break;
                }
            }
        }