public FindScreenDialog(IFindDialogDAO findDao, bool bMultiSelection, bool bSearchOnStart) : base("Find Screens", findDao) { if (this.DesignMode == false) { this.MainSQL = "select ScreenID, ClassName, DisplayName, Description from tbs_Screen"; this.OptionalSQL = " ORDER BY ClassName"; this.MultiSelection = bMultiSelection; this.FindOnStart = bSearchOnStart; this.OptionDirection = FindOptionDirection.Down; FindOption option = null; // Class Name option = this.FindOptions.Add("Class Name", "ClassName", FindOperator.Like); // Display Name option = this.FindOptions.Add("Display Name", "DisplayName", FindOperator.Like); // Description option = this.FindOptions.Add("Description", "Description", FindOperator.Like); this.RememberSize = new Size(800, 515); //this.ResultFormats.Add((int)eColumns.ScreenID, null, 2, false, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.ClassName, null, 395 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.DisplayName, null, 230 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.Description, null, 329 , true, CellHorizontalAlignment.General); } }
public FindUserDialog(IFindDialogDAO findDao, bool bMultiSelection, bool bSearchOnStart) : base("Find User", findDao) { if (this.DesignMode == false) { this.m_findDialogDAO = findDao; this.Text = "Find User"; this.MainSQL = "select Username, FirstName, LastName, Email from tbs_User"; this.OptionalSQL = "ORDER BY Username"; this.MultiSelection = bMultiSelection; this.FindOnStart = bSearchOnStart; FindOption option = null; // Username option = this.FindOptions.Add("User Name", "Username", FindOperator.Like); option.EditCheckAble = true; // FirstName option = this.FindOptions.Add("First Name", "FirstName", FindOperator.Like); // LastName option = this.FindOptions.Add("Last Name", "LastName", FindOperator.Like); // Email option = this.FindOptions.Add("Email", "Email", FindOperator.Like); // Result Format this.RememberSize = new Size(730, 500); //this.ResultFormats.Add((int)eColumn.Username, null, 78 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.FirstName, null, 96 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Name, null, 82 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Tel, null, 86 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Mobile, null, 86 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Email, null, 156 , true, CellHorizontalAlignment.General); } }
public FindUserGroupDialog(IFindDialogDAO findDao, bool bMultiSelection, bool bSearchOnStart) : base("Find User Group", findDao) { if (this.DesignMode == false) { this.Text = "Find User Group"; this.MainSQL = "select GroupID, GroupName, Description, CreateDate, UpdateDate, CreateUser, UpdateUser from tbs_UserGroups "; this.OptionalSQL = "order by GroupName"; this.MultiSelection = bMultiSelection; this.OptionDirection = FindOptionDirection.Down; this.FindOnStart = bSearchOnStart; FindOption option = null; // Group Name option = this.FindOptions.Add("Group Name", "GroupName", FindOperator.Like); // Description option = this.FindOptions.Add("Description", "Description", FindOperator.Like); this.RememberSize = new Size(730, 500); //this.ResultFormats.Add((int)eColumns.GroupID, null, 65 , false, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.GroupName, null, 117 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.Description, null, 164 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.CreateDate, Util.GetDateTimeCellType(), 120 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.UpdateDate, Util.GetDateTimeCellType(), 116, true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.CreateUser, null, 93 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.UpdateUser, null, 94 , true, CellHorizontalAlignment.General); } }
public FindDialog(string strCaption, IFindDialogDAO findDao) : base() { try { InitializeComponent(); m_findDialogDAO = findDao; //m_strMainSQL = strMainSQL; m_szRemember = this.Size; this.Text = strCaption; this.StartPosition = FormStartPosition.CenterParent; pageNavigator.MaxPage = 1; pageNavigator.PagePerScreen = m_iShowPage; pageNavigator.CurrentPage = m_iStartPage; panelExtTop.Visible = false; m_findOptions = new FindOptionCollection(); grdResult.DataSource = null; grdResult.AutoGenerateColumns = true; //gcResult.DataSource = null; //grvResult.Columns.Clear(); this.CancelButton = btnClose; FinishedFillResult += new EventHandler(FindDialog_FinishedFillResult); } catch (Exception ex) { MessageDialog.ShowSystemErrorMsg(this, ex); } }