Exemplo n.º 1
0
        private static string Run(int scriptNum, bool version2, bool sendToItrans, Carrier carrier, out List <Etrans> etransRequests)
        {
            string   retVal = "";
            Provider prov   = Providers.GetProv(PrefC.GetLong(PrefName.PracticeDefaultProv));

            etransRequests = CanadianOutput.GetOutstandingTransactions(version2, sendToItrans, carrier, prov);
            retVal        += "Outstanding Transactions#" + scriptNum.ToString() + " successful.\r\n";
            return(retVal);
        }
Exemplo n.º 2
0
        private static string Run(int scriptNum, bool version2, bool sendToItrans, Carrier carrier, out List <Etrans> etransRequests)
        {
            string        retVal            = "";
            Provider      prov              = Providers.GetProv(PrefC.GetLong(PrefName.PracticeDefaultProv));
            Clearinghouse clearinghouseHq   = Canadian.GetCanadianClearinghouseHq(carrier);
            Clearinghouse clearinghouseClin = Clearinghouses.OverrideFields(clearinghouseHq, Clinics.ClinicNum);

            etransRequests = CanadianOutput.GetOutstandingTransactions(clearinghouseClin, version2, sendToItrans, carrier, prov, false);
            retVal        += "Outstanding Transactions#" + scriptNum.ToString() + " successful.\r\n";
            return(retVal);
        }
Exemplo n.º 3
0
        private void butOK_Click(object sender, EventArgs e)
        {
            if (radioVersion4ToCarrier.Checked)
            {
                if (listCarriers.SelectedIndex < 0)
                {
                    MsgBox.Show(this, "You must first select a carrier to use.");
                    return;
                }
            }
            if (listOfficeNumbers.SelectedIndex < 0)
            {
                MsgBox.Show(this, "You must first select an Office Number to use.");
                return;
            }
            Cursor = Cursors.WaitCursor;
            Provider prov = null;

            for (int i = 0; i < ProviderC.ListShort.Count; i++)
            {
                if (ProviderC.ListShort[i].CanadianOfficeNum == listOfficeNumbers.Items[listOfficeNumbers.SelectedIndex].ToString() &&
                    ProviderC.ListShort[i].NationalProvID != "" && ProviderC.ListShort[i].IsCDAnet)
                {
                    prov = ProviderC.ListShort[i];
                    break;
                }
            }
            try {
                if (radioVersion2.Checked)
                {
                    CanadianOutput.GetOutstandingTransactions(true, false, null, prov);
                }
                else if (radioVersion4Itrans.Checked)
                {
                    CanadianOutput.GetOutstandingTransactions(false, true, null, prov);
                }
                else if (radioVersion4ToCarrier.Checked)
                {
                    CanadianOutput.GetOutstandingTransactions(false, false, carriers[listCarriers.SelectedIndex], prov);
                }
                Cursor = Cursors.Default;
                MsgBox.Show(this, "Done.");
            }
            catch (ApplicationException aex) {
                Cursor = Cursors.Default;
                MessageBox.Show(Lan.g(this, "Request failed: ") + aex.Message);
            }
            catch (Exception ex) {
                Cursor = Cursors.Default;
                MessageBox.Show(Lan.g(this, "Request failed: ") + ex.ToString());
            }
            DialogResult = DialogResult.OK;
        }
        private void butOK_Click(object sender, EventArgs e)
        {
            if (radioVersion4ToCarrier.Checked)
            {
                if (listCarriers.SelectedIndex < 0)
                {
                    MsgBox.Show(this, "You must first select a carrier to use.");
                    return;
                }
            }
            if (listOfficeNumbers.SelectedIndex < 0)
            {
                MsgBox.Show(this, "You must first select an Office Number to use.");
                return;
            }
            Cursor = Cursors.WaitCursor;
            Provider prov = null;

            for (int i = 0; i < _listProviders.Count; i++)
            {
                if (_listProviders[i].CanadianOfficeNum == listOfficeNumbers.Items[listOfficeNumbers.SelectedIndex].ToString() &&
                    _listProviders[i].NationalProvID != "" && _listProviders[i].IsCDAnet)
                {
                    prov = _listProviders[i];
                    break;
                }
            }
            try {
                if (radioVersion2.Checked)
                {
                    Clearinghouse clearinghouseHq   = Canadian.GetCanadianClearinghouseHq(null);
                    Clearinghouse clearinghouseClin = Clearinghouses.OverrideFields(clearinghouseHq, Clinics.ClinicNum);
                    CanadianOutput.GetOutstandingTransactions(clearinghouseClin, true, false, null, prov, false, FormClaimPrint.PrintCdaClaimForm,
                                                              FormCCDPrint.PrintCCD);
                }
                else if (radioVersion4Itrans.Checked)
                {
                    Clearinghouse clearinghouseHq   = Canadian.GetCanadianClearinghouseHq(null);
                    Clearinghouse clearinghouseClin = Clearinghouses.OverrideFields(clearinghouseHq, Clinics.ClinicNum);
                    CanadianOutput.GetOutstandingTransactions(clearinghouseClin, false, true, null, prov, false, FormClaimPrint.PrintCdaClaimForm,
                                                              FormCCDPrint.PrintCCD);
                }
                else if (radioVersion4ToCarrier.Checked)
                {
                    Carrier       carrier           = carriers[listCarriers.SelectedIndex];
                    Clearinghouse clearinghouseHq   = Canadian.GetCanadianClearinghouseHq(carrier);
                    Clearinghouse clearinghouseClin = Clearinghouses.OverrideFields(clearinghouseHq, Clinics.ClinicNum);
                    CanadianOutput.GetOutstandingTransactions(clearinghouseClin, false, false, carrier, prov, false, FormClaimPrint.PrintCdaClaimForm,
                                                              FormCCDPrint.PrintCCD);
                }
                Cursor = Cursors.Default;
                MsgBox.Show(this, "Done.");
            }
            catch (ApplicationException aex) {
                Cursor = Cursors.Default;
                MessageBox.Show(Lan.g(this, "Request failed: ") + aex.Message);
            }
            catch (Exception ex) {
                Cursor = Cursors.Default;
                MessageBox.Show(Lan.g(this, "Request failed: ") + ex.ToString());
            }
            DialogResult = DialogResult.OK;
        }