public ActionResult AddApproveSchemeTab(string containerId = "MainArea") { var log = new LoggerConfiguration().WriteTo.Seq("http://localhost:5341").CreateLogger(); try { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "pfm_ApproveSchemePartial", Model = schemerepo.GetUnApproveSchemeList(), ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); } catch (Exception ex) { X.Mask.Hide(); log.Write(level: Serilog.Events.LogEventLevel.Information, messageTemplate: ex.Message + " " + DateTime.Now); return(this.Direct()); } finally { } }
/// <summary> /// 根据MenuType决定当前的Menu样式 /// </summary> /// <param name="containerId"></param> /// <returns></returns> public Ext.Net.MVC.PartialViewResult AutoLoadMenu(string containerId) { Ext.Net.MVC.PartialViewResult pv = new Ext.Net.MVC.PartialViewResult(); pv.ContainerId = containerId; pv.WrapByScriptTag = false; pv.RenderMode = RenderMode.AddTo; switch (AppSettingValues.MENUTYPE) { case "Default": pv.ViewName = "_AccordionMenu"; return(pv); case "Tree": var loginUser = System.Web.HttpContext.Current.Request.Cookies.Get("LoginUser"); CryptManage crypt = new CryptManage(); string sUserRoles = crypt.Decrypto(loginUser.Values["UserRoles"]); pv.ViewName = "_TreeMenu"; pv.ViewData["DataTree_PanelID"] = "MainMenu_DataTree"; pv.ViewData["DataTree_RelationID"] = sUserRoles; pv.ViewData["DataTree_AuthorID"] = sUserRoles; return(pv); //case "Image": // pv.ViewName = "_ImageMenu"; // return pv; default: return(null); } }
public ActionResult ApprovePendingEmployeeTab(string containerId = "MainArea") { try { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "ApprovePendingEmployeePartial", Model = empRepoList, ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); } catch (Exception ex) { X.Mask.Hide(); logger.WriteLog(ex.Message); //.Write(level: Serilog.Events.LogEventLevel.Information, messageTemplate: ex.Message + " " + DateTime.Now); X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Process failed -" + ex.Message, Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); return(this.Direct()); } }
public ActionResult ClearControls() { try { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "BatchPortOut", //Model = empList, ContainerId = "MainArea", RenderMode = RenderMode.AddTo, }; this.GetCmp <TabPanel>("MainArea").SetLastTabAsActive(); return(pvr); } catch (System.Exception ex) { X.Mask.Hide(); X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = ex.ToString(), Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.ERROR, Width = 350 }); return(this.Direct()); } }
public ActionResult AddUserChangePasswordTab(string containerId = "MainArea") { cLogger logger = new cLogger(); try { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "UserChangePasswordPartial", Model = new List <sec_User_Change_Password>(), ContainerId = containerId, RenderMode = RenderMode.AddTo, }; this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); X.GetCmp <TextField>("LayoutChangePasswordUserId").Value = GlobalValue.User_ID; X.GetCmp <Window>("UserChangePasswordWindow").Show(); return(pvr); } catch (Exception ex) { X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = ex.Message, Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); logger.WriteLog(ex.ToString()); return(this.Direct()); } finally { } }
public ActionResult CreatePosition(string currentNode) { SA_Organization currentOrg = JSON.Deserialize <SA_Organization>(currentNode); PartialViewResult partialView = new PartialViewResult { ViewName = "CreatePosition", Model = new SA_Organization() { ParentId = currentOrg.Id, ParentCodePath = currentOrg.CodePath, ParentNamePath = currentOrg.NamePath, ParentIdPath = currentOrg.IdPath, AreaPath = currentOrg.AreaPath, OrgType = OrganizationType.Position.ToString(), ValidState = ValidStates.Effective.ToString(), Level = currentOrg.Level + 1, AreaCode = currentOrg.AreaCode, ParentAreaCode = currentOrg.AreaCode, ParentAreaPath = currentOrg.AreaPath } }; return(partialView); }
public ActionResult Report_EmployeeRetirement_Tab(string containerId = "MainArea") { try { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "Report_EmployeeRePartial", //Model = empRepoList, ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); } catch (Exception ex) { X.Mask.Hide(); logger.WriteLog(ex.Message); X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Process failed -" + ex.Message, Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); return(this.Direct()); } }
public ActionResult ApproveRecord(Invest_Equity_CISRepo Equity_CISRepo) { try { if (string.IsNullOrEmpty(Equity_CISRepo.Invest_No)) { X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Sorry! No Order has been selected for approval.", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.ERROR, Width = 350 }); return(this.Direct()); } //get GL balance from GL_Account Table Equity_CISRepo.Get_GL_Balance(Equity_CISRepo); if ((Equity_CISRepo.GL_Balance * -1) < Equity_CISRepo.Total_Cost) { X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Sorry! Insufficient Cash in Scheme-Fund Account.", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); return(this.Direct()); } // update Invest_Equity table //Update Invest_Equity_Balance table Equity_CISRepo.Approve_Equity_CIS(Equity_CISRepo); X.Msg.Show(new MessageBoxConfig { Title = "Success", Message = "Order Successfully Approved.", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "Equity_CISApprovePartial", ContainerId = "MainArea", RenderMode = RenderMode.AddTo, }; this.GetCmp <TabPanel>("MainArea").SetLastTabAsActive(); return(pvr); } catch (Exception ex) { return(this.Direct()); } }
//[DirectMethod] //public ActionResult JHKSearch_AddClickDirectMethod(string sData) //{ // tblJHKSearch model = JSON.Deserialize<tblJHKSearch>(sData); // if ((model.UserIDepartmentIID == 0) || (model.UserIDepartmentIID == -1) || (model.UserIDepartmentIID == null)) // { // X.Msg.Alert("注意", "请先选择部门!").Show(); // return this.Direct(); // } // return OpenMoreWindow("0", null, model.UserIDepartmentIID.ToString()); //} protected override ActionResult OpenMoreWindow(string selection, string keywords, string transvalue) { Ext.Net.MVC.PartialViewResult pvr = new Ext.Net.MVC.PartialViewResult(); pvr.ViewName = "~\\Areas\\UserControl\\Views\\ExtUserControl\\WinJHKMore.cshtml"; pvr.ViewData["WindowID"] = "BMKSearch_WinJHKMore"; setParentVariable(null, null, "MoreWindow_ConfirmSave", selection, null); pvr.ViewData["WindowParentVariable"] = ParentVar.DefaultVal; pvr.ViewData["CurrentController"] = "WinJHKMore"; return(pvr); }
public override ActionResult DataList_ReturnEditClick(string PanelID, string selection, string keywords, string transvalue) { Ext.Net.MVC.PartialViewResult pvr = new Ext.Net.MVC.PartialViewResult(); pvr.ViewName = "~\\Areas\\UserControl\\Views\\ExtUserControl\\WinReportSimpleMore.cshtml"; pvr.ViewData["WindowID"] = "ReportCreate_WinReportSimpleMore"; setParentVariable(null, null, "MoreWindow_ConfirmSave", selection, null); pvr.ViewData["WindowParentVariable"] = ParentVar.DefaultVal; pvr.ViewData["CurrentController"] = "WinReportSimpleMore"; return(pvr); }
//#region DataList按钮事件相关 public override ActionResult DataList_ReturnAddClick(string PanelID, string selection, string keywords, string transvalue) { setParentVariable(null, null, "MoreWindow_ConfirmSave", selection, keywords); Ext.Net.MVC.PartialViewResult pvr = new Ext.Net.MVC.PartialViewResult(); pvr.ViewName = "~\\Areas\\UserControl\\Views\\ExtUserControl\\WinUploadOriginData.cshtml"; pvr.ViewData["WindowID"] = "OriginDataInport_WinUpload"; pvr.ViewData["WindowParentVariable"] = ParentVar.DefaultVal; pvr.ViewData["CurrentController"] = "WinUploadOriginData"; return(pvr); }
public ActionResult WinDepartmentMore_OpenAddZYWindow(string PanelID, string ID, string ZYIDs, string GxID) { Ext.Net.MVC.PartialViewResult pvr = new Ext.Net.MVC.PartialViewResult(); pvr.ViewName = "~\\Areas\\UserControl\\Views\\ExtUserControl\\WinDepartmentAddZY.cshtml"; pvr.ViewData["WindowID"] = PanelID + "_WinDepartmentAddZY"; setParentVariable(null, null, "MoreWindow_ConfirmSave", ZYIDs, ID); pvr.ViewData["WindowParentVariable"] = ParentVar.DefaultVal; pvr.ViewData["WindowParentKey"] = GxID; pvr.ViewData["CurrentController"] = "WinDepartmentAddZY"; return(pvr); }
public ActionResult DelRecord(Remit_Unit_TransferRepo Unit_ChangeRepo) { try { if (string.IsNullOrEmpty(Unit_ChangeRepo.ESF_Id)) { X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Please select employee account", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); return(this.Direct()); } if (string.IsNullOrEmpty(Unit_ChangeRepo.Purchase_Log_Id)) { X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Please select contribution/purchase", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); return(this.Direct()); } this.Unit_ChangeRepo.DelRecord(Unit_ChangeRepo); X.Msg.Show(new MessageBoxConfig { Title = "Success", Message = "Contribution successfully deleted", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "Unit_ChangePartial", ContainerId = "MainArea", RenderMode = RenderMode.AddTo, }; this.GetCmp <TabPanel>("MainArea").SetLastTabAsActive(); return(pvr); } catch (Exception ex) { return(this.Direct()); } }
public ActionResult AddGLInitialReversalTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "GLInitialReversalPartial", ContainerId = containerId, RenderMode = RenderMode.AddTo, }; this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public Ext.Net.MVC.PartialViewResult AutoLoadDataListSel(string containerId) { Ext.Net.MVC.PartialViewResult pvr = new Ext.Net.MVC.PartialViewResult(); pvr.ContainerId = containerId; pvr.ViewName = "~\\Areas\\UserControl\\Views\\ExtUserControl\\DataList.cshtml"; pvr.WrapByScriptTag = false; pvr.RenderMode = RenderMode.AddTo; pvr.ViewData["DataList_PanelID"] = sPageKeyWord + "_DataListSel"; setParentVariable(null, null, null, null, "ReportTypeSel"); pvr.ViewData["DataList_ParentVariable"] = ParentVar.DefaultVal; return(pvr); }
public ActionResult AddFixedIncomeTransTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "FixedDepositTransPartial", ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult AddEquity_CISApproveTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "Equity_CIS_SellApprovePartial", ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
protected override ActionResult OpenMoreWindow(string selection, string keywords, string transvalue) { Ext.Net.MVC.PartialViewResult pvr = new Ext.Net.MVC.PartialViewResult(); pvr.ViewName = "~\\Areas\\UserControl\\Views\\ExtUserControl\\WinUserMore.cshtml"; pvr.ViewData["WindowID"] = "UserInfo_WinUserMore"; pvr.ViewData["WinUserMore_SetAuthorID"] = "0"; pvr.ViewData["WindowParentKey"] = transvalue; setParentVariable(null, null, "MoreWindow_ConfirmSave", selection, null); pvr.ViewData["WinUserMore_AuthorPanelHidden"] = false; pvr.ViewData["WindowParentVariable"] = ParentVar.DefaultVal; pvr.ViewData["CurrentController"] = "WinUserMore"; return(pvr); }
public ActionResult AddGLAccountBankDefaultTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "GLBankAccountDefaultPartial", ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult AddWithdrawalReverseTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "WithdrawalReversePartial", ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult AddUserPendingTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "UserApprovePartial", Model = repo_userc.GetUserPendingList(), ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult ApproveRecord(GLInitialRepo GLRepo) { try { if (GLRepo.TID < 1) { X.Mask.Hide(); X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Sorry! No Transaction has been selected for approval.", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.ERROR, Width = 350 }); return(this.Direct()); } ///approve pending purchases GLRepo.Approve_Initial(GLRepo); X.Msg.Show(new MessageBoxConfig { Title = "Success", Message = "GL Initial Transaction Successfully Approved.", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); //ClearControls_Approve(); //Store store = X.GetCmp<Store>("InitialApprove_Store"); //store.Reload(); //return this.Direct(); var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "GLInitialApprovePartial", ContainerId = "MainArea", RenderMode = RenderMode.AddTo, }; this.GetCmp <TabPanel>("MainArea").SetLastTabAsActive(); return(pvr); } catch (Exception ex) { throw ex; } }
//[DirectMethod] //public ActionResult BMKOneVerify_AddClickDirectMethod(string sData) //{ // tblBMKOneVerify model = JSON.Deserialize<tblBMKOneVerify>(sData); // if ((model.UserIDepartmentIID == 0) || (model.UserIDepartmentIID == -1) || (model.UserIDepartmentIID == null)) // { // X.Msg.Alert("注意", "请先选择部门!").Show(); // return this.Direct(); // } // return OpenMoreWindow("0", null, model.UserIDepartmentIID.ToString()); //} protected override ActionResult OpenMoreWindow(string selection, string keywords, string transvalue) { Ext.Net.MVC.PartialViewResult pvr = new Ext.Net.MVC.PartialViewResult(); pvr.ViewName = "~\\Areas\\UserControl\\Views\\ExtUserControl\\WinStudentMore.cshtml"; pvr.ViewData["WindowID"] = "BMKOneVerify_WinStudentMore"; setParentVariable(null, null, "MoreWindow_ConfirmSave", selection, "1"); pvr.ViewData["WindowParentVariable"] = ParentVar.DefaultVal; pvr.ViewData["CurrentController"] = "WinStudentMore"; return(pvr); //SetHiddenValue("BMKOneVerify_WinStudentMore_ParentVariable", ParentVar.DefaultVal); //var win = this.GetCmp<Window>("BMKOneVerify_WinStudentMore"); //win.Show(); //return this.Direct(); }
public ActionResult AddSendReceiptTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "SendReceiptPartial", // Model = ReceiptRepo.GetReceiptList(), ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult AddTitleTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "setup_TitlePartial", Model = titleRepo.GetTitleList(), ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult AddUnit_MergeChangeTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "Unit_MergePartial", // Model = PurchaseRepo.GetPurchasePendingList(), ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult AddBPEmployerMigrationTab(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "Remit_BP_Employer_MigrationPartial", ContainerId = containerId, RenderMode = RenderMode.AddTo, }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetLastTabAsActive(); return(pvr); }
public ActionResult ApproveRecord(Remit_WithdrawalRepo WithdrawalRepo) { try { if (WithdrawalRepo.PortOut_No == string.Empty) { X.Msg.Show(new MessageBoxConfig { Title = "Error", Message = "Sorry! No record has been selected for approval.", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.ERROR, Width = 350 }); return(this.Direct()); } GlobalValue.Get_Scheme_Today_Date(WithdrawalRepo.Scheme_Id); ///approve pending withdrawal WithdrawalRepo.Approve_Unit_PortOut(WithdrawalRepo); X.Msg.Show(new MessageBoxConfig { Title = "Success", Message = "Porting Out Successfully Approved.", Buttons = MessageBox.Button.OK, Icon = MessageBox.Icon.INFO, Width = 350 }); //ClearControls_Approve(); //Store store = X.GetCmp<Store>("ApproveRequestPortOutStore"); //store.Reload(); //return this.Direct(); var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "PortOutApprovePartial", ContainerId = "MainArea", RenderMode = RenderMode.AddTo, }; this.GetCmp <TabPanel>("MainArea").SetLastTabAsActive(); return(pvr); } catch (Exception ex) { throw ex; } }
public ActionResult AddTab(string containerid, string viewname) { var result = new Ext.Net.MVC.PartialViewResult { ViewName = viewname, ContainerId = containerid, RenderMode = RenderMode.AddTo, WrapByScriptTag = false }; this.GetCmp <TabPanel>(containerid).SetLastTabAsActive(); return(result); }
public ActionResult Rooturl(string containerId = "MainArea") { var pvr = new Ext.Net.MVC.PartialViewResult { ViewName = "Index", ContainerId = containerId, RenderMode = RenderMode.AddTo, ViewData = this.ViewData }; X.Mask.Hide(); this.GetCmp <TabPanel>(containerId).SetNextTabAsActive(); return(pvr); }