Exemple #1
0
        /// <summary>
        /// 根据用户基本信息获得用户其他信息
        /// </summary>
        private void GetUserOtherInfo()
        {
            BUT_User tempBUUser = new BUT_User();

            try
            {
                this._userid      = tempBUUser.GetUserIDByName(_username);
                this._userrightid = tempBUUser.GetUserRightID(_username, _userpwd);
                this._userright   = tempBUUser.GetUserRight(_username, _userpwd);
            }
            catch { }
        }
Exemple #2
0
 /// <summary>
 /// Bindings the first page.
 /// </summary>
 /// 创建人:桂书丛
 /// 创建时间:2013-02-02
 private void BindingFirstPage()
 {
     try
     {
         DataTable tempDataTable = myBUCMS_BuffetBooking.GetOrder(false, string.Empty, string.Empty, false);
         ClassAssist.CommonOperator.DataBindingLookUpEdit(this.lupCustomerName, tempDataTable, "CName", "ID", true);
         tempDataTable = new BUT_User().GetAllUserInfo();
         ClassAssist.CommonOperator.DataBindingLookUpEdit(this.lupTransactor, tempDataTable, "USERNAME", "ID", true);
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString());
     }
 }
Exemple #3
0
 /// <summary>
 /// 将传递过来的数据给指定的控件
 /// </summary>
 /// <param name="paramInfo">用户信息</param>
 private void FillInfo(object[] paramInfo)
 {
     try
     {
         BUT_User tempBUUser = new BUT_User();
         UserID = Convert.ToInt32(paramInfo[0]);
         this.txtUserName.Text = paramInfo[1].ToString();
         this.txtUserPwd.Text  = tempBUUser.GetUserPWD(UserID);
         this.UserRightID      = tempBUUser.GetUserRightID(paramInfo[1].ToString(), this.txtUserPwd.Text);
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, "mmm");
     }
 }
Exemple #4
0
 /// <summary>
 /// Bindings the two page.
 /// </summary>
 /// 创建人:桂书丛
 /// 创建时间:2013-02-02
 private void BindingTwoPage()
 {
     try
     {
         DataTable tempDataTable = new BUCMS_Buffets().GetOrder(true, string.Empty, string.Empty, false);
         ClassAssist.CommonOperator.DataBindingLookUpEdit(this.lupBuffetName, tempDataTable, "餐台名称", "餐台编号", true);
         this.lupRoomType.Properties.DataSource = tempDataTable;
         this.lupRoomType.ItemIndex             = 0;
         tempDataTable = new BUT_User().GetAllUserInfo();
         ClassAssist.CommonOperator.DataBindingLookUpEdit(this.lupCreatePerson, tempDataTable, "USERNAME", "ID", true);
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString());
     }
 }
Exemple #5
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);
            }
        }