Example #1
0
        protected override void btnEdit_Click(object sender, EventArgs e)
        {
            base.btnEdit_Click(sender, e);

            UICtrl.TextBox_Status1(this.txtWRoleCode);
            UICtrl.TextBox_Focus1(this.txtWRoleName);
        }
Example #2
0
        protected override void btnEdit_Click(object sender, EventArgs e)
        {
            base.btnEdit_Click(sender, e);

            this.m_dvM[this.dgM.CurrentRowIndex].Row.EndEdit();

            UICtrl.TextBox_Status1(this.txtWUserName);
            UICtrl.TextBox_Focus1(this.txtWUserName);
        }
Example #3
0
        private void btnSLDateT_Click(object sender, EventArgs e)
        {
            FmDate f = new FmDate();

            f.DateTimeSelected = this.txtLDateT.Text;
            UICtrl.SetShowStyle(f, sender as Button);
            if (f.ShowDialog() == DialogResult.OK)
            {
                this.txtLDateT.Text = f.DateTimeSelected;
            }
            UICtrl.TextBox_Focus1(this.txtLDateT);
        }
Example #4
0
        private void btnSUFPsn_Click(object sender, EventArgs e)
        {
            FmRPsn f = new FmRPsn();

            UICtrl.SetShowStyle(f, 2);
            if (DialogResult.OK == f.ShowDialog())
            {
                DataRow dr = (DataRow)f.SelectedInfo[0];
                this.m_dvM[this.dgM.CurrentRowIndex].Row.BeginEdit();
                this.m_dvM[this.dgM.CurrentRowIndex]["PersonId"]   = dr["PersonId"];
                this.m_dvM[this.dgM.CurrentRowIndex]["PersonCode"] = dr["PersonCode"];
                this.m_dvM[this.dgM.CurrentRowIndex]["PersonName"] = dr["PersonName"];
                this.m_dvM[this.dgM.CurrentRowIndex]["DepCode"]    = dr["DepCode"];
                this.m_dvM[this.dgM.CurrentRowIndex]["DepName"]    = dr["DepName"];
                this.m_dvM[this.dgM.CurrentRowIndex].Row.EndEdit();
            }
            UICtrl.TextBox_Focus1(this.txtSPsnCode);
        }