private void adhocDscntDiag_Load(object sender, EventArgs e) { Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; this.dfltSDsctAcntID = this.get_DfltSDscntAcnt(cmnCde.Org_id); this.dfltPDsctAcntID = this.get_DfltPDscntAcnt(cmnCde.Org_id); }
private void gnrtRptProgressDiag_Load(object sender, EventArgs e) { Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; System.Windows.Forms.Application.DoEvents(); this.timer1.Enabled = false; this.timer1.Interval = 2000; this.timer1.Enabled = true; }
private void addPssblValDiag_Load(object sender, EventArgs e) { System.Windows.Forms.Application.DoEvents(); Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; this.pssblValTextBox.Focus(); this.pssblValTextBox.SelectAll(); }
private void activateDiag_Load(object sender, EventArgs e) { System.Windows.Forms.Application.DoEvents(); Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; this.button1.Enabled = false; this.button1.Visible = false; //cmnCde.pgSqlConn = con; if (CommonCodes.GlobalSQLConn.State != ConnectionState.Open) { CommonCodes.GlobalSQLConn.Open(); } this.rqstCodeTextBox.Text = cmnCde.getRequestCode(); }
private void getAddressesDiag_Load(object sender, EventArgs e) { Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; string selSql = "SELECT actv_drctry_domain_name FROM sec.sec_email_servers WHERE ((is_default = 't'))"; DataSet selDtSt = cmnCde.selectDataNoParams(selSql); int m = selDtSt.Tables[0].Rows.Count; if (m > 0) { this.domainTextBox.Text = selDtSt.Tables[0].Rows[0][0].ToString(); } }
private void sendMailDiag_Load(object sender, EventArgs e) { //this.bodyTextBox.fo Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; this.msgTypComboBox.SelectedIndex = 0; if (this.prsnID > 0) { if (this.grpComboBox.SelectedIndex < 0) { this.grpComboBox.SelectedIndex = 7; } } this.attchMntsTextBox.Text = attcFiles.Replace(",", ";"); }
private void dsplyARowsExtInfDiag_Load(object sender, EventArgs e) { //cmnCde.pgSqlConn = con; //if (cmnCde.pgSqlConn.State == ConnectionState.Closed) // { // cmnCde.pgSqlConn.Open(); // } System.Windows.Forms.Application.DoEvents(); Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; this.extInfoDataGridView.ReadOnly = !this.canEdit; if (this.canEdit == false) { this.extInfoDataGridView.DefaultCellStyle.BackColor = Color.Gainsboro; } this.loadValPanel(); }
private void vwRptDiag_Load(object sender, EventArgs e) { try { Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; /*this.webBrowser1 = new System.Windows.Forms.WebBrowser(); * this.splitContainer1.Panel2.Controls.Add(this.webBrowser1); * // * // webBrowser1 * // * this.webBrowser1.Location = new System.Drawing.Point(393, 9); * this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); * this.webBrowser1.Name = "webBrowser1"; * this.webBrowser1.Size = new System.Drawing.Size(288, 250); * this.webBrowser1.TabIndex = 1;*/ if (this.inrptOutput == "VIEW LOG" || this.inrptOutput.ToLower() == "none") { this.splitContainer1.Panel2.Controls.Clear(); this.richTextBox1.Dock = DockStyle.Fill; this.splitContainer1.Panel2.Controls.Add(this.richTextBox1); System.Windows.Forms.Application.DoEvents(); this.richTextBox1.Text = cmnCde.getLogMsg( cmnCde.getLogMsgID("rpt.rpt_run_msgs", "Process Run", long.Parse( inrptRn_ID.ToString())), "rpt.rpt_run_msgs"); } else { this.populateRunDet(); } } catch (Exception ex) { System.Threading.Thread.Sleep(3000); //this.printPrvwButton.PerformClick(); } finally { } }
//private string checkAftrSccsflLgnRequirmnts() //{ // /* Returns select role or logout or change password // * 1. Check if the pswd is expired then take user to change pswd diag // * 2. Check if account is suspended then logout user and display message // * 3. Check if password is temporary then take user to change pswd diag // * 4. Check if account is locked // * 5. if shldUnlock account is true then unlock account // */ // if (this.isAccntSuspended(this.unameTextBox.Text) == true) // { // cmnCde.showMsg("This account has been suspended!\nContact your System Administrator!", 0); // return "logout"; // } // if (this.isUserAccntLckd(this.unameTextBox.Text) == true) // { // this.unlockUsrAccnt(this.unameTextBox.Text); // } // else // { // this.unlockUsrAccntConditnl(this.unameTextBox.Text); // } // if (this.isPswdTmp(this.unameTextBox.Text)) // { // cmnCde.showMsg("Your are using a Temporary Password!\nPlease change your password now!", 0); // return "change password"; // } // if (this.isPswdExpired(this.unameTextBox.Text)) // { // cmnCde.showMsg("Your Password has Expired!\nPlease change your Password now!", 0); // return "change password"; // } // if (cmnCde.doesPswdCmplxtyMeetPlcy(this.pwdTextBox.Text, this.unameTextBox.Text) == false) // { // cmnCde.showMsg("Your password's complexity does not meet\nthe " + // "current password policy requirements!\nPlease change " + // "your password!", 0); // return "change password"; // } // return "select role"; //} #endregion private void loginDiag_Load(object sender, EventArgs e) { System.Windows.Forms.Application.DoEvents(); Color[] clrs = cmnCde.getColors(); this.BackColor = clrs[0]; }