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; } }
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;"; }
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(); }
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; } }