示例#1
0
 private void FillForm()
 {
     ProgramProperties.RefreshCache();
     PropertyList         = ProgramProperties.GetListForProgram(ProgramCur.ProgramNum);
     textProgName.Text    = ProgramCur.ProgName;
     textProgDesc.Text    = ProgramCur.ProgDesc;
     checkEnabled.Checked = ProgramCur.Enabled;
     if (GetProp("IsStandalone") == "1")
     {
         radioModeStandalone.Checked = true;
     }
     else
     {
         radioModeTight.Checked = true;
     }
     SetModeVisibilities();
     textHL7FolderIn.Text  = PrefC.GetString(PrefName.HL7FolderIn);
     textHL7FolderOut.Text = PrefC.GetString(PrefName.HL7FolderOut);
     comboDefaultUserGroup.Items.Clear();
     for (int i = 0; i < UserGroups.List.Length; i++)
     {
         comboDefaultUserGroup.Items.Add(UserGroups.List[i].Description);
         if (GetProp("DefaultUserGroup") == UserGroups.List[i].UserGroupNum.ToString())
         {
             comboDefaultUserGroup.SelectedIndex = i;
         }
     }
     checkShowImages.Checked = GetProp("ShowImagesModule") == "1";
     checkShowImages.Checked = GetProp("FeeSchedulesSetManually") == "1";
 }
示例#2
0
 private void FillForm()
 {
     ProgramProperties.RefreshCache();
     PropertyList          = ProgramProperties.GetListForProgram(ProgramCur.ProgramNum);
     textProgName.Text     = ProgramCur.ProgName;
     textProgDesc.Text     = ProgramCur.ProgDesc;
     checkEnabled.Checked  = ProgramCur.Enabled;
     textHL7FolderOut.Text = PrefC.GetString(PrefName.HL7FolderOut);
 }
示例#3
0
 private void FillForm()
 {
     ProgramProperties.RefreshCache();
     PropertyList         = ProgramProperties.GetListForProgram(ProgramCur.ProgramNum);
     textProgName.Text    = ProgramCur.ProgName;
     textProgDesc.Text    = ProgramCur.ProgDesc;
     checkEnabled.Checked = ProgramCur.Enabled;
     SetModeRadioButtons(GetProp("eClinicalWorksMode"));
     SetModeVisibilities();
     textECWServer.Text = GetProp("eCWServer");
     if (HL7Defs.IsExistingHL7Enabled())
     {
         HL7Def def = HL7Defs.GetOneDeepEnabled();
         textHL7Server.Text      = def.HL7Server;
         textHL7ServiceName.Text = def.HL7ServiceName;
         textHL7FolderIn.Text    = def.OutgoingFolder;           //because these are the opposite of the way they are in the HL7Def
         textHL7FolderOut.Text   = def.IncomingFolder;
     }
     else
     {
         textHL7Server.Text      = GetProp("HL7Server");
         textHL7ServiceName.Text = GetProp("HL7ServiceName");
         textHL7FolderIn.Text    = PrefC.GetString(PrefName.HL7FolderIn);
         textHL7FolderOut.Text   = PrefC.GetString(PrefName.HL7FolderOut);
     }
     textODServer.Text = MiscData.GetODServer();
     comboDefaultUserGroup.Items.Clear();
     for (int i = 0; i < UserGroups.List.Length; i++)
     {
         comboDefaultUserGroup.Items.Add(UserGroups.List[i].Description);
         if (GetProp("DefaultUserGroup") == UserGroups.List[i].UserGroupNum.ToString())
         {
             comboDefaultUserGroup.SelectedIndex = i;
         }
     }
     checkShowImages.Checked   = GetProp("ShowImagesModule") == "1";
     checkFeeSchedules.Checked = GetProp("FeeSchedulesSetManually") == "1";
     textMedPanelURL.Text      = GetProp("MedicalPanelUrl");
 }
示例#4
0
        private void FormXchargeSetup_Load(object sender, EventArgs e)
        {
            prog = Programs.GetCur(ProgramName.PayConnect);
            if (prog == null)
            {
                return;
            }
            checkEnabled.Checked = prog.Enabled;
            List <ProgramProperty> props = ProgramProperties.GetListForProgram(prog.ProgramNum);

            for (int i = 0; i < props.Count; i++)
            {
                if (props[i].PropertyDesc == "Username")
                {
                    propUsername = props[i];
                }
                else if (props[i].PropertyDesc == "Password")
                {
                    propPassword = props[i];
                }
                else if (props[i].PropertyDesc == "PaymentType")
                {
                    propPayType = props[i];
                }
            }
            textUsername.Text = propUsername.PropertyValue;
            textPassword.Text = propPassword.PropertyValue;
            for (int i = 0; i < DefC.Short[(int)DefCat.PaymentTypes].Length; i++)
            {
                comboPaymentType.Items.Add(DefC.Short[(int)DefCat.PaymentTypes][i].ItemName);
                if (DefC.Short[(int)DefCat.PaymentTypes][i].DefNum.ToString() == propPayType.PropertyValue)
                {
                    comboPaymentType.SelectedIndex = i;
                }
            }
        }