예제 #1
0
        private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e)
        {
            string strOperID   = this.ultraGrid1.ActiveRow.Cells["操作员ID"].Value.ToString();
            string strOperName = this.ultraGrid1.ActiveRow.Cells["操作员名称"].Value.ToString();
            string strDeptName = this.ultraGrid1.ActiveRow.Cells["部门名称"].Value.ToString();

            txtOperName3.Tag       = strOperID;
            txtOperName3.Text      = strOperName;
            cmbDept3.SelectedIndex = cmbDept3.FindString(strDeptName);
        }
예제 #2
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow row = this.ultraGrid1.ActiveRow;

            if (null != row)
            {
                string strCodeID = this.ultraGrid1.ActiveRow.Cells["cnvcCodeID"].Value.ToString();
                string strType   = this.ultraGrid1.ActiveRow.Cells["cnvcType"].Value.ToString();
                string strValue  = this.ultraGrid1.ActiveRow.Cells["cnvcValue"].Value.ToString();

                //cmbType.Tag = strCodeID;
                cmbType.SelectedIndex = cmbType.FindString(strType);
                txtValue.Text         = strValue;

                ////////////////////////
                //string strSql = "select *  from tbMemberCode where  cnvcMemberName = '" + strValue + "'";
                //DataTable dtMemberCode = Helper.Query(strSql);
                //this.ultraGrid2.DataSource = dtMemberCode;//Login.constApp.dtMemberCode;
                //this.ultraGrid2.DataBind();
                cmbMember.SelectedIndex = cmbMember.FindString(strValue);
                //Helper.BindMemberCode(cmbMemberType,strType);
            }
        }
예제 #3
0
        private void ultraGrid1_AfterRowActivate(object sender, System.EventArgs e)
        {
            string strDeptID       = this.ultraGrid1.ActiveRow.Cells["部门ID"].Value.ToString();
            string strDeptName     = this.ultraGrid1.ActiveRow.Cells["部门名称"].Value.ToString();
            string strParentDeptID = this.ultraGrid1.ActiveRow.Cells["上级部门ID"].Value.ToString();
            string strDiscount     = this.ultraGrid1.ActiveRow.Cells["部门折扣上限"].Value.ToString();
            string strManager      = this.ultraGrid1.ActiveRow.Cells["部门管理员"].Value.ToString();

            txtDeptName3.Tag             = strDeptID;
            txtDeptName3.Text            = strDeptName;
            cmbParentDept3.SelectedIndex = cmbParentDept3.FindString(strDeptName);
            txtDiscount3.Text            = strDiscount;
            cmbManager3.SelectedIndex    = cmbManager3.FindString(strManager);
        }
예제 #4
0
        private void ultraGrid1_AfterSelectChange(object sender, Infragistics.Win.UltraWinGrid.AfterSelectChangeEventArgs e)
        {
            UltraGridRow row = this.ultraGrid1.ActiveRow;

            if (null != row)
            {
                string strCodeID = this.ultraGrid1.ActiveRow.Cells["cnvcCodeID"].Value.ToString();
                string strType   = this.ultraGrid1.ActiveRow.Cells["cnvcType"].Value.ToString();
                string strValue  = this.ultraGrid1.ActiveRow.Cells["cnvcValue"].Value.ToString();

                //cmbType.Tag = strCodeID;
                cmbType.SelectedIndex = cmbType.FindString(strType);
                txtValue.Text         = strValue;
            }
        }