コード例 #1
0
 private void FillProvs()
 {
     comboBoxMultiProv.Items.Add(new ODBoxItem <Provider>(Lan.g(this, "All")));           //tag = null
     foreach (Provider provCur in Providers.GetListReports())
     {
         comboBoxMultiProv.Items.Add(new ODBoxItem <Provider>(provCur.GetLongDesc(), provCur));
     }
     comboBoxMultiProv.SetSelected(0, true);
 }
コード例 #2
0
 private void FillProvs()
 {
     comboBoxMultiProv.Items.Add("All");
     for (int i = 0; i < ProviderC.ListShort.Count; i++)
     {
         comboBoxMultiProv.Items.Add(ProviderC.ListShort[i].GetLongDesc());
     }
     comboBoxMultiProv.SetSelected(0, true);
     comboBoxMultiProv.RefreshText();
     isAllProv = true;
 }
コード例 #3
0
 private void FormDeposits_Load(object sender, System.EventArgs e)
 {
     if (IsSelectionMode)
     {
         butAdd.Visible = false;
     }
     else
     {
         butOK.Visible = false;
     }
     if (PrefC.HasClinicsEnabled)             //clinics
     {
         List <int> listSelectedItems = new List <int>();
         _listClinics = Clinics.GetForUserod(Security.CurUser);
         if (!Security.CurUser.ClinicIsRestricted)
         {
             comboClinic.Items.Add(Lan.g(this, "All"));
             listSelectedItems.Add(0);
         }
         for (int i = 0; i < _listClinics.Count; i++)
         {
             int curIndex = comboClinic.Items.Add(_listClinics[i].Abbr);
             if (_listClinics[i].ClinicNum == Clinics.ClinicNum)
             {
                 listSelectedItems.Clear();
                 listSelectedItems.Add(curIndex);
             }
         }
         //We set the selections after when using ComboBoxMulti
         foreach (int index in listSelectedItems)
         {
             comboClinic.SetSelected(index, true);
         }
     }
     else
     {
         labelClinic.Visible = false;
         comboClinic.Visible = false;
     }
     FillGrid();
 }
コード例 #4
0
 private void FormRpTreatmentFinder_Load(object sender, System.EventArgs e)
 {
     //DateTime today=DateTime.Today;
     //will start out 1st through 30th of previous month
     //date1.SelectionStart=new DateTime(today.Year,today.Month,1).AddMonths(-1);
     //date2.SelectionStart=new DateTime(today.Year,today.Month,1).AddDays(-1);
     comboBoxMultiProv.Items.Add("All");
     for (int i = 0; i < ProviderC.ListShort.Count; i++)
     {
         comboBoxMultiProv.Items.Add(ProviderC.ListShort[i].GetLongDesc());
     }
     comboBoxMultiProv.SetSelected(0, true);
     comboBoxMultiProv.RefreshText();
     comboBoxMultiBilling.Items.Add("All");
     for (int i = 0; i < DefC.Short[(int)DefCat.BillingTypes].Length; i++)
     {
         comboBoxMultiBilling.Items.Add(DefC.Short[(int)DefCat.BillingTypes][i].ItemName);
     }
     comboBoxMultiBilling.SetSelected(0, true);
     comboBoxMultiBilling.RefreshText();
     comboMonthStart.SelectedIndex = 0;
     FillGrid();
 }
コード例 #5
0
        private void FormRpTreatmentFinder_Load(object sender, System.EventArgs e)
        {
            _listProviders = Providers.GetListReports();
            //DateTime today=DateTime.Today;
            //will start out 1st through 30th of previous month
            //date1.SelectionStart=new DateTime(today.Year,today.Month,1).AddMonths(-1);
            //date2.SelectionStart=new DateTime(today.Year,today.Month,1).AddDays(-1);
            comboBoxMultiProv.Items.Add(new ODBoxItem <Provider>("All", new Provider()
            {
                ProvNum = 0
            }));
            for (int i = 0; i < _listProviders.Count; i++)
            {
                comboBoxMultiProv.Items.Add(new ODBoxItem <Provider>(_listProviders[i].GetLongDesc(), _listProviders[i]));
            }
            comboBoxMultiProv.SetSelected(0, true);
            comboBoxMultiBilling.Items.Add(new ODBoxItem <Def>("All", new Def()
            {
                DefNum = 0
            }));
            List <Def> listBillingTypeDefs = Defs.GetDefsForCategory(DefCat.BillingTypes, true);

            for (int i = 0; i < listBillingTypeDefs.Count; i++)
            {
                comboBoxMultiBilling.Items.Add(new ODBoxItem <Def>(listBillingTypeDefs[i].ItemName, listBillingTypeDefs[i]));
            }
            comboBoxMultiBilling.SetSelected(0, true);
            comboMonthStart.SelectedIndex     = 0;
            checkBenefitAssumeGeneral.Checked = PrefC.GetBool(PrefName.TreatFinderProcsAllGeneral);
            if (RemotingClient.RemotingRole != RemotingRole.ClientWeb)           //for middle tier, don't allow mutiple clinics
            {
                comboClinics.IncludeAll         = true;
                comboClinics.SelectionModeMulti = true;
            }
            FillGrid();
        }