Beispiel #1
0
        private void BindOper()
        {
            try
            {
                SecurityManage secruty = new SecurityManage();
                DataTable      dtOper  = secruty.getAllOper();
                cmbManager.DataSource    = dtOper;
                cmbManager.ValueMember   = "操作员ID";
                cmbManager.DisplayMember = "操作员名称";
                cmbManager.DataBind();

                cmbManager3.DataSource    = dtOper;
                cmbManager3.ValueMember   = "操作员ID";
                cmbManager3.DisplayMember = "操作员名称";
                cmbManager3.DataBind();
            }
            catch (BusinessException bex)
            {
                MessageBox.Show(this, bex.Message, bex.Type, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(this, ex.Message, "系统错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Beispiel #2
0
 private void BindOper()
 {
     try
     {
         SecurityManage secruty = new SecurityManage();
         DataTable      dtOpers = secruty.getAllOper();
         this.ultraGrid1.DataSource = dtOpers;
         this.ultraGrid1.DataBind();
     }
     catch (BusinessException bex)
     {
         MessageBox.Show(this, bex.Message, bex.Type, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (System.Exception ex)
     {
         MessageBox.Show(this, ex.Message, "系统错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }