private void AssiblingPage() { var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = WorkingProfile.UserRoleLogin, Para2 = WorkingProfile.SchoolYear, Para3 = WorkingProfile.SchoolCode, Para4 = WorkingProfile.AppID, }; AppsPage.BuildingList(ddlSchoolCode, ddlSchool, "DDLListSchool", parameters, WorkingProfile.SchoolCode); AppsPage.BuildingList(ddlApps, "AppsName", parameters, hfAppID.Value); parameters.Para1 = WorkingProfile.DefaultAppID; AppsPage.BuildingList(ddlModel, "AppsModel", parameters, hfModelID.Value); AppsPage.BuildingList(ddlAccessScope, "AccessScope", parameters); parameters.Para1 = ddlAccessScope.SelectedValue; AppsPage.BuildingList(ddlScopeValue, "AccessScopeValue", parameters); var yearDate = new SchoolYearDate(); hfSchoolyearStartDate.Value = yearDate.StartDate(); hfSchoolyearEndDate.Value = yearDate.EndDate(); dateStart.Value = yearDate.TodayDate(); dateEnd.Value = yearDate.EndDate(); }
public static CommonListParameter GetListParameters(string operate, string userId, string para1, string para2, string para3) { var parameters = new CommonListParameter() { Operate = operate, UserID = userId, Para1 = para1, Para2 = para2, Para3 = para3, }; return(parameters); }
private void BuldDDLScopeValue() { var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = ddlAccessScope.SelectedValue, Para2 = WorkingProfile.SchoolYear, Para3 = WorkingProfile.SchoolCode, }; AppsPage.BuildingList(ddlScopeValue, "AccessScopeValue", parameters); }
protected void ddlApps_SelectedIndexChanged(object sender, EventArgs e) { var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = ddlApps.SelectedValue, Para2 = WorkingProfile.SchoolYear, Para3 = WorkingProfile.SchoolCode, Para4 = ddlApps.SelectedValue, }; AppsPage.BuildingList(ddlModel, "AppsModel", parameters, "Pages"); }
private void SetAppsGroup() { var parameters = new CommonListParameter() { Operate = "AppsGroupID", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfUserRole.Value, Para2 = ddlApps.SelectedValue, Para3 = ddlSchoolCode.SelectedValue, }; AppsPage.BuildingList(ddlGroupID, "AppsGroupID", parameters); WorkingProfile.SchoolCode = ddlSchoolCode.SelectedValue; }
private void DefaultLoad() { WorkingProfile.PageCategory = "Home"; WorkingProfile.PageArea = "General"; WorkingProfile.PageItem = "EPA00"; hfPageID.Value = "Default"; hfUserLoginRole.Value = WorkingProfile.UserRoleLogin; hfUserID.Value = WorkingProfile.UserId; hfRunningModel.Value = WebConfig.RunningModel(); if (DBConnection.CurrentDB != "Live") { LabelTrain.Text = DBConnection.CurrentDB; LabelTrain.Visible = true; } try { var parameter = new CommonListParameter() { Operate = "UserRole", UserID = WorkingProfile.UserId, UserRole = "", Para1 = "", Para2 = "", Para3 = "", Para4 = "" }; AppsPage.BuildingList(rblLoginAS, "UserRole", parameter, WorkingProfile.UserRole); LoginUserRole.InnerText = WorkingProfile.UserId + " as " + rblLoginAS.SelectedItem.Text; hfCurrentUserRole.Value = WorkingProfile.UserRole; GetUserLastWorkingValue(); } catch (Exception ex) { string em = ex.StackTrace; } string pId = Page.Request.QueryString["pID"]; pId = GetDefaultListbyRole(); // "Loading.aspx?pID=Summary"; GoList.Attributes.Add("src", pId); }
private void AssiblingScopeValueDDL(string initialValue) { var parameters = new CommonListParameter() { Operate = "AccessScopeValue", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = ddlScopeby.SelectedValue, Para2 = WorkingProfile.SchoolYear, Para3 = WorkingProfile.SchoolCode, Para4 = ddlApps.SelectedValue }; // AppsPage.BuildingList(ddlScopeByValue, "AccessScopeValue", parameters); AppsPage.BuildingList(ddlScopeByValue, ddlScopeby.SelectedValue, parameters, initialValue); }
private void AssemblePage() { var parameters = new CommonListParameter() { Operate = "AppRole", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfStaffRole.Value, Para2 = hfStaffUserID.Value }; AppsPage.BuildingList(ddlGrentRole, "AppRoleAvailable", parameters, WorkingProfile.SchoolYear); AppsPage.BuildingList(ddlApps, "AppsName", parameters, WorkingProfile.DefaultAppID); AppsPage.BuildingList(ddlScopeby, "AccessScope", parameters, "School"); AssiblingScopeValueDDL(WorkingProfile.SchoolCode); }
private void AssemblePage() { string BoardRole = WebConfig.getValuebyKey("BoardAccessRole"); var parameters = new CommonListParameter() { Operate = "GrantAction", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfUserRole.Value, Para2 = WorkingProfile.SchoolYear, Para3 = WorkingProfile.SchoolCode, Para4 = "All" }; AppsPage.BuildingList(ddlGrantAction, "GrantAction", parameters, "All"); }
private void AssemblePage() { string scope = "School"; if (hfUserRole.Value == "Admin") { scope = "All"; } var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfUserRole.Value, Para2 = hfSchoolYear.Value, Para3 = hfSchoolCode.Value, Para4 = scope }; AppsPage.BuildingList(ddlStaff, "SchoolStaff", parameters); }
private void BuildStudentMemberDDL(string GroupType, string memberID) { string scope = "School"; if (hfUserRole.Value == "Admin") { scope = "All"; } var parameters = new CommonListParameter() { Operate = "StudentMember", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = GroupType, Para2 = hfSchoolYear.Value, Para3 = ddlSchool.SelectedValue, Para4 = scope }; AppsPage.BuildingList(ddlStudentMemberID, "StudentMember", parameters, memberID); }
private void AssemblePage() { string scope = "School"; if (hfUserRole.Value == "Admin") { scope = "All"; } var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfUserRole.Value, Para2 = WorkingProfile.SchoolYear, Para3 = WorkingProfile.SchoolCode, Para4 = scope }; AppsPage.BuildingList(ddlMatchScope, "AccessScope", parameters, hfMatchScope.Value); AppsPage.BuildingList(ddlMatchRole, "MatchRole", parameters, hfMatchRole.Value); }
private void AssemblePage() { string scope; if (hfUserRole.Value == "Admin") { scope = "All"; } else { if (hfSchoolCode.Value.Substring(0, 2) == "05") { scope = "S"; } else { scope = "E"; } } var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfUserRole.Value, Para2 = WorkingProfile.SchoolYear, Para3 = scope, Para4 = WorkingProfile.AppID, }; AppsPage.BuildingList(ddlGroupType, "GroupType", parameters, "School"); AppsPage.BuildingList(ddlSchoolCode, ddlSchool, "DDLListSchool", parameters, hfSchoolCode.Value); AppsPage.BuildingList(ddlApps, "AppsName", parameters, hfAppID.Value); AppsPage.BuildingList(ddlAppsTo, "AppsName", parameters); ddlGroupType.SelectedIndex = 0; BuildStudentMemberDDL(ddlGroupType.SelectedValue, ""); }
private void AssemblePage() { string scope = "School"; if (hfUserRole.Value == "Admin") { scope = "All"; } var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfUserRole.Value, Para2 = WorkingProfile.SchoolYear, Para3 = WorkingProfile.SchoolCode, Para4 = scope }; AppsPage.BuildingList(ddlScope, "AccessScope", parameters, "School"); AppsPage.BuildingList(ddlApps, "AppsName", parameters, hfAppID.Value); parameters.Para1 = hfAppID.Value; AppsPage.BuildingList(ddlModelID, "AppsModel", parameters, "Pages"); }
private void AssemblePage() { string scope = "School"; if (hfUserRole.Value == "Admin") { scope = "All"; } var parameters = new CommonListParameter() { Operate = "", UserID = WorkingProfile.UserId, UserRole = hfUserRole.Value, Para1 = hfUserRole.Value, Para2 = WorkingProfile.SchoolYear, Para3 = scope, Para4 = WorkingProfile.AppID, }; AppsPage.BuildingList(ddlSchoolCode, ddlSchool, "DDLListSchool", parameters, WorkingProfile.SchoolCode); AppsPage.BuildingList(ddlApps, "AppsName", parameters, WorkingProfile.DefaultAppID); SetAppsGroup(); }
public static void SetLists(string ValueField, string NameField, string JsonSource, ListControl myListControl, string ddlType, CommonListParameter parameter, object initialValue) { SetLists(ValueField, NameField, JsonSource, myListControl, ddlType, parameter); SetValue(myListControl, initialValue); }
public static void BuildingList(System.Web.UI.WebControls.ListControl myListControl, string action, CommonListParameter parameter, object initialValue) { AssemblingList2.SetLists("", myListControl, action, parameter, initialValue); }
public static void BuildingList(System.Web.UI.WebControls.ListControl myCodeListControl, System.Web.UI.WebControls.ListControl myListNameControl, string action, CommonListParameter parameter) { AssemblingList2.SetListSchool(myCodeListControl, myListNameControl, action, parameter); }
public static void SetLists(string JsonSource, System.Web.UI.WebControls.ListControl myListControl, string ddlType, CommonListParameter parameter, object initialValue) { SetLists(JsonSource, myListControl, ddlType, parameter); SetValue(myListControl, initialValue); }
public static void SetLists(string JsonSource, System.Web.UI.WebControls.ListControl myListControl, string ddlType, CommonListParameter parameter) { List <NameValueList> myListData = ListDataSource(JsonSource, ddlType, parameter, "DDList"); SetLists(myListControl, myListData); }
private static List <NameValueList> ListDataSource(string JsonSource, string ddlType, CommonListParameter parameter, string action) { List <NameValueList> myListData; if (JsonSource == "") { parameter.Operate = ddlType; // string SP = SPandParameters.GetSPNameAndParameters("General", "DDList"); // myListData = CommonListExecute<NVListItem>.GeneralList(SP, parameter); myListData = GeneralList.CommonList <NameValueList>(_db, action, parameter); // CommonExcute<CommonList>.ListOfT(SP, parameter); } else { myListData = GeneralList.JsonSourceList <NameValueList>(JsonSource, ddlType, action); } return(myListData); }
public static void SetListSchool(System.Web.UI.WebControls.ListControl myListControl1, System.Web.UI.WebControls.ListControl myListControl2, string ddlType, CommonListParameter parameter) { // string SP = SPandParameters.GetSPNameAndParameters("General", "Schools"); List <NameValueList> myListData = ListDataSource("", ddlType, parameter, "DDLListSchool"); // CommonExcute<CommonList>.ListOfT(SP, parameter); AssemblingSchoolList(myListControl1, myListControl2, myListData); }
public static void SetListSchool(System.Web.UI.WebControls.ListControl myListControl1, System.Web.UI.WebControls.ListControl myListControl2, string ddlType, CommonListParameter parameter, object initialValue) { SetListSchool(myListControl1, myListControl2, ddlType, parameter); SetValue(myListControl1, initialValue); SetValue(myListControl2, initialValue); }
public static void BuildingList(ListControl myListControl, string action, CommonListParameter parameter) { AssemblingList.SetLists("", myListControl, action, parameter); }
public static void SetLists(string ValueField, string NameField, string JsonSource, ListControl myListControl, string ddlType, CommonListParameter parameter) { List <NameValueList> myListData = ListDataSource(JsonSource, ddlType, parameter, "DDList"); SetLists(ValueField, NameField, myListControl, myListData); }
public static void BuildingList(ListControl myCodeListControl, ListControl myListNameControl, string action, CommonListParameter parameter, object initialValue) { AssemblingList.SetListSchool(myCodeListControl, myListNameControl, action, parameter, initialValue); }