Example #1
0
        public static void fillDropDownItems(System.Web.UI.WebControls.DropDownList ddl, User _user)
        {
            try
            {
                //if (Branch.dropDownItems.Count < 1)
                //{
                //    new BranchSelectDataByUser().getBranchDropDownItemsByUser(-1);
                //}

                User _U = new User();
                _U = _user;

                new UserSelect(_U).UserDropDownList(_U._userDropDown);

                ddl.DataSource = _U._userDropDown;
                ddl.DataTextField = "Name";
                ddl.DataValueField = "Value";
                ddl.DataBind();

            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                ddl = null;
            }
        }
Example #2
0
 public UserSelect(User _user)
 {
     this.User = _user;
     Command = @"SELECT uID,login FROM tblUser WHERE coalesce(isDelete,'0') != '1'" +
               @"AND comID = :comID ORDER BY login ASC;";
 }
Example #3
0
        public static void fillDropDownUsers(System.Web.UI.WebControls.DropDownList ddl, User _user)
        {
            try
            {
                User _U = new User();
                _U = _user;
                new UsersTimeZoneSelect(_U).UserDropDownList(_U._userDropDown);

                ddl.DataSource = _U._userDropDown;
                ddl.DataTextField = "Name";
                ddl.DataValueField = "Value";
                ddl.DataBind();

            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                ddl = null;
            }
        }
 public makePermissionParam(User _user)
 {
     this._userObj = _user;
     build();
 }
Example #5
0
 private void addUser()
 {
     UserDataInsert _insData = new UserDataInsert();
     try
     {
         _insData.UserObj = this._userObj;
         _insData.addUser();
         this._uID = _insData.UserObj.UID;
     }
     catch (Exception ex)
     {
         throw new Exception(" ProcessUser :: addUser " + ex.Message);
     }
     finally
     {
         _insData = null;
         _userObj = null;
     }
 }