Ejemplo n.º 1
0
 private void FormCarriers_Load(object sender, System.EventArgs e)
 {
     //if(CultureInfo.CurrentCulture.Name.EndsWith("CA")) {//Canadian. en-CA or fr-CA
     //No.  Even Canadian users will want to see all their carriers and only use the checkbox for special situations.
     //	checkCDAnet.Checked=true;
     //}
     //else{
     //	checkCDAnet.Visible=false;
     //}
     if (IsSelectMode)
     {
         butCancel.Text = Lan.g(this, "Cancel");
     }
     else
     {
         butCancel.Text = Lan.g(this, "Close");
         butOK.Visible  = false;
     }
     if (!Security.IsAuthorized(Permissions.CarrierCreate, true))
     {
         butAdd.Enabled = false;
     }
     Carriers.RefreshCache();
     FillGrid();
 }
Ejemplo n.º 2
0
        private void FormCarriers_Load(object sender, System.EventArgs e)
        {
            //if(CultureInfo.CurrentCulture.Name.EndsWith("CA")) {//Canadian. en-CA or fr-CA
            //No.  Even Canadian users will want to see all their carriers and only use the checkbox for special situations.
            //	checkCDAnet.Checked=true;
            //}
            //else{
            //	checkCDAnet.Visible=false;
            //}
            if (IsSelectMode)
            {
                butCancel.Text = Lan.g(this, "Cancel");
            }
            else
            {
                butCancel.Text = Lan.g(this, "Close");
                butOK.Visible  = false;
            }
            if (!Security.IsAuthorized(Permissions.CarrierCreate, true))
            {
                butAdd.Enabled = false;
            }
            Clearinghouse ch = Clearinghouses.GetDefaultDental();

            if (CultureInfo.CurrentCulture.Name.EndsWith("CA") && ch.Eformat == ElectronicClaimFormat.Canadian)
            {
                groupItrans.Visible = true;
                ItransImportFields fieldsToImport = (ItransImportFields)PrefC.GetInt(PrefName.ItransImportFields);
                checkITransPhone.Checked   = (fieldsToImport.HasFlag(ItransImportFields.Phone));
                checkItransAddress.Checked = (fieldsToImport.HasFlag(ItransImportFields.Address));
                checkItransName.Checked    = (fieldsToImport.HasFlag(ItransImportFields.Name));
                checkItransMissing.Checked = (fieldsToImport.HasFlag(ItransImportFields.AddMissing));
            }
            Carriers.RefreshCache();
            FillGrid();
        }