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; } }
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()); } catch (Exception ex) { throw ex; } }