Esempio n. 1
0
        /// <summary>
        /// 创建人数据绑定
        /// </summary>
        /// <remarks></remarks>
        private void BindLookUpEditCreatePerson()
        {
            this.EditSecSelcCondition.Properties.Items.Clear();
            DataTable myDataTable = myBUT_User.GetAllUserInfo();

            for (int i = 0; i < myDataTable.Rows.Count; i++)
            {
                this.EditSecSelcCondition.Properties.Items.Add(myDataTable.Rows[i]["USERNAME"].ToString());
            }
            this.EditSecSelcCondition.SelectedIndex = 0;
        }
Esempio n. 2
0
        /// <summary>
        /// 初始化控件
        /// </summary>
        private void InitializeControls()
        {
            DataTable myDataTable = new DataTable();

            try
            {
                myDataTable = myBUUser.GetAllUserInfo();
                this.gridControlUser.DataSource = myDataTable;
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// 绑定数据到查询条件的控件
        /// </summary>
        private void BindingToSerach()
        {
            DataTable myDataTable = new DataTable();

            try
            {
                //会员卡要从VIPType表中获取
                BUCMS_VIPType myBUCMS_VIPType = new BUCMS_VIPType();
                myDataTable = myBUCMS_VIPType.GetOrder(false, string.Empty, string.Empty, false);
                this.lupVIPType.Properties.DataSource    = myDataTable;
                this.lupVIPType.ItemIndex                = 0;
                this.lupVIPType.Properties.DisplayMember = "Name";
                //创建人要到User表中获取
                BUT_User myBUT_User = new BUT_User();
                myDataTable = myBUT_User.GetAllUserInfo();
                this.lupCreatePerson.Properties.DataSource    = myDataTable;
                this.lupCreatePerson.ItemIndex                = 0;
                this.lupCreatePerson.Properties.DisplayMember = "USERNAME";
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
            }
        }