コード例 #1
0
        /// <summary>
        /// 帐号的选择操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void trvAccount_AfterNodeSelect(object sender, AdvTreeNodeEventArgs e)
        {
            if (trvAccount.SelectedNode != null)
            {
                CurrentAccount = (Class_Account)trvAccount.SelectedNode.Tag;

                txtAccount.Text = CurrentAccount.Account_name;

                if (CurrentAccount.Enable == "Y")
                {
                    rbtnUserful.Checked = true;
                }
                else
                {
                    rdtnUnUserful.Checked = true;
                }
                IniTrvRoles(CurrentAccount);
                IniTrvOwner(CurrentAccount);
                IniUserInfor(CurrentAccount.Account_id);
                if (cboAccountKind.Items.Count > 0)
                {
                    cboAccountKind.SelectedValue = CurrentAccount.Kind;
                }
                else
                {
                    string sql = "select * from t_data_code where id=" + CurrentAccount.Kind.ToString() + "";
                    cboAccountKind.DataSource    = App.GetDataSet(sql).Tables[0].DefaultView;
                    cboAccountKind.DisplayMember = "NAME";
                    cboAccountKind.ValueMember   = "ID";
                    cboAccountKind.SelectedIndex = 0;
                }

                lblPassVal.Text = "真实密码:" + Encrypt.DecryptStr(CurrentAccount.Password);
            }
        }
コード例 #2
0
ファイル: frmZLGF.cs プロジェクト: zh7262703/Emr_MySql
 private void frmZLGF_Load(object sender, EventArgs e)
 {
     try
     {
         string url = @"http://" + Encrypt.DecryptStr(App.Read_ConfigInfo("WebServerPath", "Url", Application.StartupPath + "\\Config.ini")) + @"/WebSite1/ZLGF/standardmain.html";
         Uri    ur  = new Uri(url);
         webBrowser1.Url = ur;
     }
     catch
     {
     }
 }