private void SetModuleIdenfitier(Library.Base.IExecutor executor) { if (executor != null) { executor.identifier = ControllerContext.GetCurrentUserFolder(); } }
public IHttpActionResult getProductionItemTypeCost(DTO.Search searchInput) { //get support instant Library.Base.IExecutor executor = Library.Helper.GetDynamicObject("Module.WorkOrderCostMng.Executor, Module.WorkOrderCostMng"); //get data Library.DTO.Notification notification = new Library.DTO.Notification(); object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "getProductionItemTypeCost", searchInput.Filters, out notification); return(Ok(new Library.DTO.ReturnData <object>() { Data = data, Message = notification })); }
public IHttpActionResult GetProductionItemToDeliveryFromWarehouseToTeamToAmend(DTO.Search searchInput) { //get support instant Library.Base.IExecutor executor = Library.Helper.GetDynamicObject("Module.Support.Executor, Module.Support"); //get data Library.DTO.Notification notification = new Library.DTO.Notification(); object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "GetProductionItemToDeliveryFromWarehouseToTeamToAmend", searchInput.Filters, out notification); return(Ok(new Library.DTO.ReturnData <object>() { Data = data, Message = notification })); }
public IHttpActionResult GetFactoryByUser() { //get support instant Library.Base.IExecutor executor = Library.Helper.GetDynamicObject("Module.Support.Executor, Module.Support"); //get data Library.DTO.Notification notification = new Library.DTO.Notification(); object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "GetFactoryByUser", null, out notification); return(Ok(new Library.DTO.ReturnData <object>() { Data = data, Message = notification })); }
public IHttpActionResult GetExcelReportData() { Library.Base.IExecutor executor = Library.Helper.GetDynamicObject("Module.ProductOverviewRpt.Executor, Module.ProductOverviewRpt"); Module.Framework.BLL bllFramework = new Module.Framework.BLL(); //return Ok(); // Check authentication if (!bllFramework.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, Library.DTO.ModuleAction.CanRead)) { return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED))); } Library.DTO.Notification notification = new Library.DTO.Notification(); string dataFileName = executor.CustomFunction(ControllerContext.GetAuthUserId(), "ExportExcel", new System.Collections.Hashtable(), out notification).ToString(); return(Ok(new Library.DTO.ReturnData <string> { Data = dataFileName, Message = notification })); }
public IHttpActionResult QuickSearchEmployee(DTO.Search searchInput) { //get support instant Library.Base.IExecutor executor = Library.Helper.GetDynamicObject("Module.Support.Executor, Module.Support"); //get input Hashtable filters = searchInput.Filters; filters["pageSize"] = searchInput.PageSize; filters["pageIndex"] = searchInput.PageIndex; filters["sortedBy"] = searchInput.SortedBy; filters["sortedDirection"] = searchInput.SortedDirection; //get data Library.DTO.Notification notification = new Library.DTO.Notification(); object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "QuickSearchEmployee", filters, out notification); return(Ok(new Library.DTO.ReturnData <object>() { Data = data, Message = notification })); }