protected void btn_Archive_Click(object sender, EventArgs e) { bool rtn = false; string DateFormat = "yyyy-MM-dd HH:mm:ss"; string rightNow = DateTime.Now.ToString(DateFormat); ParentPortlet.NextScreen("NotesScreen"); }
protected void LoadNextView(object sender, EventArgs e) { using (StreamWriter outputFile = new StreamWriter("c:\\temp" + @"\log.txt", true)) { outputFile.WriteLine("LoadDefaultView clicked from AddWidget_View "); } ParentPortlet.NextScreen("DefaultView"); }
protected bool UpdateDivisionRecs() { bool rtn = false; string DateFormat = "yyyy-MM-dd HH:mm:ss"; string rightNow = DateTime.Now.ToString(DateFormat); try { //if (txt_InstDiv.Text == "0" ) //{ // // die here, can't update division 0 // lbl_updateErrMsg.Text = "InstDivision = 0 --or-- No Approval Status is Selected"; //} //else //{ // //rtn = approveview.UpdateDivisionRecords( // // //Session["approvalCode"].ToString(), // // // DropDownList_approval.SelectedValue.ToString(), // // Session["inaaapppstdiv"].ToString(), // // Session["CRSappid"].ToString(), // // Session["idnum"].ToString(), // // Session["yearcode"].ToString(), // // Session["termcode"].ToString(), // // Session["userLevel"].ToString(), // // Session["CRSdesc"].ToString(), // // Session["firstname"].ToString(), // // Session["lastname"].ToString(), // // Session["insttype"].ToString(), // // rightNow, // // txt_InstDiv.Text // // //DropDownList_divisions.SelectedValue.ToString() // // ); //} } catch { } if (rtn) { //success lbl_updateErrMsg.Text = " "; ParentPortlet.NextScreen("ApprovalsScreen"); } else { //failure } return(rtn); }
public void LoadApprovalsScreen(object sender, EventArgs e) { //if (Session["userLevel"].ToString() == "FacCredUser") //{ // ParentPortlet.NextScreen("UnauthorizedScreen"); //} //else if (Session["userLevel"].ToString() == "Approver1" || Session["userLevel"].ToString() == "Approver2" || Session["userLevel"].ToString() == "Approver3" ) //{ ParentPortlet.NextScreen("ApprovalsScreen"); //} }
public void LoadStatusScreen(object sender, EventArgs e) { if (Session["yearcode"].ToString() == "YR" || Session["termcode"].ToString() == "TRM") { ParentPortlet.ShowFeedback("Please select a Year and Term first :)"); } else { ParentPortlet.NextScreen("StatusScreen"); } }
public void LoadFacultyApprovalScreen(object sender, EventArgs e) { if (Session["userLevel"].ToString() == "FacCredUser") { ParentPortlet.ShowFeedback(FeedbackType.Error, "Not Authorized"); } else { ParentPortlet.NextScreen("FacultyApprovalScreen"); } }
protected void gv_Notes_RowCommand(object sender, GridViewCommandEventArgs e) { string ctrlName = ((Control)sender).ID; string cmdName = e.CommandName.ToString(); int rowIndex = Convert.ToInt32(e.CommandArgument); GridViewRow row = gv_Notes.Rows[rowIndex]; Session["FACfirstname"] = row.Cells[1].Text; Session["FAClastname"] = row.Cells[2].Text; Session["NOTEsubject"] = row.Cells[3].Text; Session["NOTEnote"] = row.Cells[4].Text; Session["NOTEcreated"] = row.Cells[5].Text; Session["NOTEstatus"] = row.Cells[6].Text; Session["NOTEaprdate"] = row.Cells[7].Text; Session["NOTEexpdate"] = row.Cells[8].Text; Session["NOTEupddate"] = row.Cells[9].Text; Session["NOTEupdby"] = row.Cells[10].Text; Session["CRSinstdiv"] = row.Cells[11].Text; Session["NOTEyear"] = row.Cells[12].Text; Session["NOTEterm"] = row.Cells[13].Text; Session["CRSappid"] = row.Cells[14].Text; Session["CRSdesc"] = row.Cells[15].Text; Session["FACidnum"] = row.Cells[16].Text; Session["FACappid"] = row.Cells[17].Text; Session["FACinstructorType"] = row.Cells[18].Text; Session["NOTEusername"] = row.Cells[19].Text; Session["FACssn"] = row.Cells[20].Text; Session["PXolddivcode"] = row.Cells[21].Text; // Session["NOTEid"] = row.Cells[22].Text; switch (cmdName) { case "gv_Notes_select": { if (row.Cells[17].Text == "no data found") { //die sucker ! } else { ParentPortlet.NextScreen("NotesUpdateScreen"); } } break; case "gv_Your_Approvals_Remarks": { } break; } }
protected void CourseSave_Click(object sender, EventArgs e) { bool rtn = false; string DateFormat = "yyyy-MM-dd HH:mm:ss"; string rightNow = DateTime.Now.ToString(DateFormat); try { //if (DropDownList_approval.SelectedValue.ToString() == "0") //{ // // die here, can't update division 0 // lbl_updateErrMsg.Text = "No Approval Status is Selected"; //} //else //{ // rtn = approveview.InsertUpdateApproval( // //Session["approvalCode"].ToString(), // DropDownList_approval.SelectedValue.ToString(), // Session["CRSappid"].ToString(), // Session["idnum"].ToString(), // Session["yearcode"].ToString(), // Session["termcode"].ToString(), // Session["userLevel"].ToString(), // Session["CRSdesc"].ToString(), // Session["firstname"].ToString(), // Session["lastname"].ToString(), // Session["insttype"].ToString(), // rightNow, // txt_InstDiv.Text // ); //} } catch { } if (rtn) { //success lbl_updateErrMsg.Text = " "; ParentPortlet.NextScreen("NotesScreen"); } else { //failure //lbl_updateErrMsg.Text = "not all fields were filled in. check the Approval Status"; } }
protected void DivisionSave_Click(object sender, EventArgs e) { bool insertRtn = false; bool updateRtn = false; updateRtn = UpdateDivisionRecs(); if (Session["userLevel"].ToString() == "Approver1") { insertRtn = InsertDivisionRecs(); } ParentPortlet.NextScreen("ApprovalsScreen"); }
protected void gv_Approvals_RowCommand(object sender, GridViewCommandEventArgs e) { string ctrlName = ((Control)sender).ID; string cmdName = e.CommandName.ToString(); int rowIndex = Convert.ToInt32(e.CommandArgument); GridViewRow row = gv_Approvals.Rows[rowIndex]; Session["FACappid"] = (string)gv_Approvals.DataKeys[rowIndex]["FACappid"]; Session["FACidnum"] = (string)gv_Approvals.DataKeys[rowIndex]["FACidnum"]; // setting these here to properly load the next screen on select Session["FAClastname"] = row.Cells[1].Text; Session["FACfirstname"] = row.Cells[2].Text; Session["FACinstructorType"] = row.Cells[3].Text; Session["FACinstdiv"] = row.Cells[4].Text; //Session["FACappid"] = row.Cells[7].Text; //Session["FACidnum"] = row.Cells[8].Text; //Session["CRSappid"] = row.Cells[9].Text; //Session["CRSdesc"] = row.Cells[1].Text; if (Session["FACinstdiv"].ToString() == " ") { ParentPortlet.ShowFeedback("Cannot process a blank INST_DIV"); return; } else { switch (cmdName) { case "gv_Approvals_Approve": { if (Session["userLevel"].ToString() == "Approver1" || Session["userLevel"].ToString() == "Approver2" || Session["userLevel"].ToString() == "Approver3") { ParentPortlet.NextScreen("ApprovalUpdateScreen"); } } break; case "gv_Approvals_Note": { //Session["noteText"] = ""; //ParentPortlet.NextScreen("ApprovalUpdateScreen"); } break; } } }
protected bool InsertDivisionRecs() { bool rtn = false; string DateFormat = "yyyy-MM-dd HH:mm:ss"; string rightNow = DateTime.Now.ToString(DateFormat); try { if (txt_InstDiv.Text == "0" | DropDownList_approval.SelectedValue.ToString() == "0") { // die here, can't update division 0 lbl_updateErrMsg.Text = "InstDivision = 0 --or-- No Approval Status is Selected"; } else { //rtn = facultyApprovalsView.InsertDisciplineRecords( // //Session["approvalCode"].ToString(), // DropDownList_approval.SelectedValue.ToString(), // Session["FACappid"].ToString(), // Session["FACidnum"].ToString(), // Session["yearcode"].ToString(), // Session["termcode"].ToString(), // Session["SM_appid"].ToString(), // Session["userLevel"].ToString(), // Session["CRSdesc"].ToString(), // Session["FACfirstname"].ToString(), // Session["FAClastname"].ToString(), // Session["FACinstructorType"].ToString(), // rightNow, // txt_InstDiv.Text // //DropDownList_divisions.SelectedValue.ToString() // ); } } catch { } if (rtn) { //success lbl_updateErrMsg.Text = " "; ParentPortlet.NextScreen("ApprovalsScreen"); } return(rtn); }
public void LoadCourseApprovalScreen(object sender, EventArgs e) { if (DropDownList_term.SelectedValue == "TRM" || DropDownList_year.SelectedValue == "YR") { ParentPortlet.ShowFeedback(FeedbackType.Error, "Please select a Year and Term first :)"); } else { if (Session["userLevel"].ToString() == "FacCredUser") { ParentPortlet.ShowFeedback(FeedbackType.Error, "Not Authorized"); } else { ParentPortlet.NextScreen("CourseApprovalScreen"); } } }
protected void CourseSave_Click(object sender, EventArgs e) { bool rtn = false; string DateFormat = "yyyy-MM-dd HH:mm:ss"; string rightNow = DateTime.Now.ToString(DateFormat); if (rtn) { //success lbl_updateErrMsg.Text = " "; ParentPortlet.NextScreen("ApprovalsScreen"); } else { //failure //lbl_updateErrMsg.Text = "not all fields were filled in. check the Approval Status"; } }
public void LoadEduEarnHistScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("EDUEarnHistScreen"); }
public void LoadNoteArchiveScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("FacultyNoteArchiveScreen"); }
public void LoadUnauthorizedScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("UnauthorizedScreen"); }
public void LoadDisciplineScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("DisciplineScreen"); }
public void LoadAdminScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("AdminScreen"); }
public void LoadCatalogScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("CatalogScreen"); }
public void LoadNextView(object sender, EventArgs e) { ParentPortlet.NextScreen("DefaultView"); }
public void LoadUpdateScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("UpdateScreen"); }
protected void gv_Faculty_Approvals_RowCommand(object sender, GridViewCommandEventArgs e) { string ctrlName = ((Control)sender).ID; string cmdName = e.CommandName.ToString(); int rowIndex = Convert.ToInt32(e.CommandArgument); GridViewRow row = gv_Faculty_Approvals.Rows[rowIndex]; if (row.Cells[0].Text == " ") { ParentPortlet.ShowFeedback("nothing to approve, silly person :)"); return; } Session["FACappid"] = (string)gv_Faculty_Approvals.DataKeys[rowIndex]["FACappid"]; Session["FACidnum"] = (string)gv_Faculty_Approvals.DataKeys[rowIndex]["FACidnum"]; // setting these here to properly load the next screen on select Session["FAClastname"] = row.Cells[1].Text; Session["FACfirstname"] = row.Cells[2].Text; if (row.Cells[3].Text == " ") { Session["FACinstructorType"] = " "; } else { Session["FACinstructorType"] = row.Cells[3].Text; } switch (cmdName) { case "gv_FacultyApprovals_Approve": { if (Session["userLevel"].ToString() == "Approver1" || Session["userLevel"].ToString() == "Approver2" || Session["userLevel"].ToString() == "Approver3") { if (Session["FACidnum"].ToString().Length > 1) { ParentPortlet.NextScreen("FacultyApprovalUpdateScreen"); } else { ParentPortlet.ShowFeedback(FeedbackType.Error, "Are you trying to break the system? shame shame shame :)"); } } else { ParentPortlet.ShowFeedback(FeedbackType.Message, "Only for Approvers"); } } break; case "gv_FacultyApprovals_Note": { //Session["noteText"] = ""; //ParentPortlet.NextScreen("ApprovalUpdateScreen"); } break; } }
public void LoadApprover1Screen(object sender, EventArgs e) { ParentPortlet.NextScreen("Approver1Screen"); }
public void LoadCredentialsScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("CredentialsScreen"); }
public void ChangeView(Object sender, EventArgs e) { Guid submission_Guid = new Guid(hf_Submission.Value); CNTR_CovidForm_Rec flow = new JICSBaseFacade <CNTR_CovidForm_Rec>().GetQuery().Where(x => x.SubmissionID == submission_Guid).SingleOrDefault(); int data = Convert.ToInt32(hf_Selected_Object.Value); switch (hf_isButtonClicked.Value) { case "edit": Session["viewDesired"] = "edit"; Session["form_Obj"] = flow; Session["formable"] = master_Forms_List[data]; Session["viewableType"] = master_Forms_List[data].Name; ParentPortlet.NextScreen("Objectable_View"); break; case "review": Session["viewDesired"] = "edit"; Session["form_Obj"] = flow; Session["formable"] = master_Forms_List[data]; Session["viewableType"] = master_Forms_List[data].Name; ParentPortlet.NextScreen("Objectable_View"); break; case "delete": new CNTR_CovidForm_Rec_Facade().Remove(flow); break; case "print": List_able listObj = current_Viewable.returnListable(); Abstract_Iter_able form_obj = listObj.get_iterable_List()[data]; EventLog.WriteEntry("ICSNET", "ListObject:" + listObj.getType(), EventLogEntryType.Information); switch (listObj.getType()) { case "ICS_NHibernate.JCF_Submission": JCF_Submission obj = (JCF_Submission)listObj.get_iterable_List()[data]; this.print_Form(obj); break; case "ICS_NHibernate.Flow_Rec": Flow_Rec flow_Obj = (Flow_Rec)listObj.get_iterable_List()[data]; JCF_Submission submission_Object = new JICSBaseFacade <JCF_Submission>().GetQuery().Where(x => x.SubmissionID == flow_Obj.Submission_ID).SingleOrDefault(); if (submission_Object != null) { this.print_Form(submission_Object); } break; case "ICS_NHibernate.CNTR_CovidForm_Rec": this.print_Form(flow); break; default: break; } break; } }
public void LoadJunkScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("JunkScreen"); }
public void LoadUserAccessScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("UserAccessScreen"); }
public void LoadReportsScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("ReportsScreen"); }
// menu screen changes ----------------------------------- public void LoadFacultyScreen(object sender, EventArgs e) { ParentPortlet.NextScreen("FacultyScreen"); }
private void review_Clicked(object sender, EventArgs e) { Button clickedButton = (Button)sender; int row = Int32.Parse(clickedButton.ID.Substring(7)); int data = Convert.ToInt32(hf_Selected_Object.Value); List_able listable = current_Viewable.returnListable(); Abstract_Iter_able form_obj = listable.get_iterable_List()[row]; JCF_Submission_Facade submission_Facade = new JCF_Submission_Facade(); Flow_Rec_Facade flow_Rec_Facade = new Flow_Rec_Facade(); Flow_Rec parent_Flow; JCF_Submission submission; List <Abstract_Iter_able> form_List = new List <Abstract_Iter_able>(); if (form_obj.GetType().Equals(typeof(JCF_Submission))) { List <Abstract_Iter_able> flow_List = flow_Rec_Facade.GetByIdWhere(((JCF_Submission)form_obj).SubmissionID, "Submission_ID"); if (flow_List.Count > 0) { parent_Flow = (Flow_Rec)flow_Rec_Facade.GetByIdWhere(((JCF_Submission)form_obj).SubmissionID, "Submission_ID")[0]; List <Abstract_Iter_able> flow_objs = flow_Rec_Facade.GetByIdWhere(parent_Flow.ID, "Parrent_Flow"); List <Abstract_Iter_able> submissions; submission = (JCF_Submission)submission_Facade.GetByIdWhere(((JCF_Submission)form_obj).SubmissionID, "SubmissionID")[0]; form_List.Add(submission); foreach (Flow_Rec flow_obj in flow_objs) { submissions = submission_Facade.GetByIdWhere(flow_obj.Submission_ID, "SubmissionID"); if (submissions.Count > 0) { form_List.Add(submissions[0]); } } } else { submission = (JCF_Submission)submission_Facade.GetByIdWhere(((JCF_Submission)form_obj).SubmissionID, "SubmissionID")[0]; form_List.Add(submission); } Session["form_Obj"] = form_List; Session["viewDesired"] = "Edit"; } else { parent_Flow = (Flow_Rec)flow_Rec_Facade.GetByIdWhere(((Flow_Rec)form_obj).Submission_ID, "Submission_ID")[0]; Flow_Rec flow_obj = (Flow_Rec)flow_Rec_Facade.GetByIdWhere(parent_Flow.ID, "Parrent_Flow")[0]; submission = (JCF_Submission)submission_Facade.GetByIdWhere(flow_obj.Submission_ID, "SubmissionID")[0]; Session["viewDesired"] = "Evaluation"; while (parent_Flow.Parrent_Flow != new Guid()) { form_List.Add((Abstract_Iter_able)submission_Facade.GetByIdWhere(parent_Flow.Submission_ID, "SubmissionID")[0]); parent_Flow = (Flow_Rec)flow_Rec_Facade.GetByIdWhere(parent_Flow.Parrent_Flow, "ID")[0]; } if (parent_Flow.Parrent_Flow == new Guid()) { form_List.Add((Abstract_Iter_able)submission_Facade.GetByIdWhere(parent_Flow.Submission_ID, "SubmissionID")[0]); } Session["form_Obj"] = form_List; } Session["formable"] = master_Forms_List[data]; Session["eval_Obj"] = submission; Session["viewableType"] = master_Forms_List[data].Name; Session["eval_Obj"] = submission; ParentPortlet.NextScreen("Objectable_View"); }