public JsonResult DeleteSchedule(int ScheduleID)
        {
            string _Del = null;

            try
            {
                Buisness_Logic.MasterFinacialAccounts.BL_Schedule objBLServiceGrp = new BL_Schedule();
                Schedule objSG = new Models.MasterFinacialAccounts.Schedule();

                int DependaincyName = objBLServiceGrp.DeleteSchedule(ScheduleID);

                if (DependaincyName == 1)
                {
                    _Del = "Schedule Deleted Successfully";
                }
                else
                {
                    _Del = "Can not Delete";
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(new JsonResult {
                Data = _Del, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Exemplo n.º 2
0
        public BE_Json Get(string idDocumentType, string CompanyCode, string programationId, string DocumentId, int InvoiceStatudId)
        {
            //BL_Usuario _blUsuario = new BL_Usuario();
            //_blUsuario.connectionString = AppConfig.DbConnection;
            //return _blUsuario.GetUserRoleId();

            BE_Json objJson     = null;
            var     objListaAux = string.Empty;

            try
            {
                BL_Schedule _blSchedule = new BL_Schedule();
                _blSchedule.connectionString = AppConfig.DbConnection;
                objListaAux = JsonConvert.SerializeObject(_blSchedule.GetScheduleGeneral(new BE_Schedule()
                {
                }));

                objJson        = new BE_Json();
                objJson.data   = objListaAux;
                objJson.status = CManager.RESULTADO_WCF.OK;
            }
            catch (Exception ex)
            {
                objJson        = new BE_Json();
                objJson.data   = "Hubo en error en servidor:" + ex.Message + ";" + ex.StackTrace + ";" + ex.ToString();
                objJson.status = CManager.RESULTADO_WCF.ERROR;
                objJson.status = CManager.RESULTADO_WCF.ERROR;
            }
            finally
            {
                objListaAux = null;
            }
            return(objJson);
        }
Exemplo n.º 3
0
 public IList <DataContracts.Schedulers.Supplier_Task_Notifications> GetScheduleNotificationTaskLog(DataContracts.Schedulers.DC_SupplierScheduledTaskRQ RQ)
 {
     using (BL_Schedule _obj = new BL_Schedule())
     {
         return(_obj.GetScheduleNotificationTaskLog(RQ));
     }
 }
Exemplo n.º 4
0
        public BE_Json Update([FromBody] BE_Schedule bE_Schedule)
        {
            BE_Json objJson     = null;
            var     objListaAux = string.Empty;

            try
            {
                BL_Schedule _blSchedule = new BL_Schedule();
                _blSchedule.connectionString = AppConfig.DbConnection;
                objListaAux = JsonConvert.SerializeObject(_blSchedule.UpdateSchedule(bE_Schedule));

                objJson        = new BE_Json();
                objJson.data   = objListaAux;
                objJson.status = CManager.RESULTADO_WCF.OK;
            }
            catch (Exception ex)
            {
                objJson        = new BE_Json();
                objJson.data   = "Hubo en error en servidor:" + ex.Message + ";" + ex.StackTrace + ";" + ex.ToString();
                objJson.status = CManager.RESULTADO_WCF.ERROR;
                objJson.status = CManager.RESULTADO_WCF.ERROR;
            }
            finally
            {
                objListaAux = null;
            }
            return(objJson);
        }
Exemplo n.º 5
0
 //UpdateTaskLog
 public DataContracts.DC_Message UpdateTaskLog(DataContracts.Schedulers.DC_SupplierScheduledTaskRQ obj)
 {
     using (BusinessLayer.BL_Schedule objBL = new BL_Schedule())
     {
         return(objBL.UpdateTaskLog(obj));
     }
 }
Exemplo n.º 6
0
 public IList <DataContracts.Schedulers.Supplier_Task_Logs> GetScheduleTaskLogList(string Task_Id)
 {
     using (BL_Schedule _obj = new BL_Schedule())
     {
         return(_obj.GetScheduleTaskLogList(Task_Id));
     }
 }
Exemplo n.º 7
0
 public bool CheckExistingSupplierSchedule(DataContracts.Schedulers.DC_Supplier_Schedule_RQ RQ)
 {
     using (BusinessLayer.BL_Schedule obj = new BL_Schedule())
     {
         return(obj.CheckExistingSupplierSchedule(RQ));
     }
 }
Exemplo n.º 8
0
 public IList <DataContracts.Schedulers.SupplierScheduledTask> GetScheduledTaskByRoles(DataContracts.Schedulers.DC_SupplierScheduledTaskRQ obj)
 {
     using (BL_Schedule _obj = new BL_Schedule())
     {
         return(_obj.GetScheduledTaskByRoles(obj));
     }
 }
Exemplo n.º 9
0
 public IList <DataContracts.Schedulers.DC_Supplier_Schedule_RS> GetScheduleBySupplier(DataContracts.Schedulers.DC_Supplier_Schedule_RQ _obj)
 {
     using (BusinessLayer.BL_Schedule obj = new BL_Schedule())
     {
         return(obj.GetScheduleBySupplier(_obj));
     }
 }
Exemplo n.º 10
0
 public DataContracts.DC_Message AddUpdateSchedule(DataContracts.Schedulers.DC_Supplier_Schedule obj)
 {
     using (BusinessLayer.BL_Schedule objBL = new BL_Schedule())
     {
         return(objBL.AddUpdateSchedule(obj));
     }
 }
Exemplo n.º 11
0
 public IList <DataContracts.Schedulers.DC_Supplier_Schedule> GetSchedule(DataContracts.Schedulers.DC_Supplier_Schedule_RQ RQ)
 {
     using (BusinessLayer.BL_Schedule obj = new BL_Schedule())
     {
         return(obj.GetSchedule(RQ));
     }
 }
        public JsonResult ShowAllSchedule()
        {
            BL_Schedule db = new BL_Schedule();

            return(new JsonResult {
                Data = db.SelectAllSchedule(), JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }