示例#1
0
        public bool SaveOtherTaskExpense(string otherTaskId, string category, string expenseDate, string comments, string name, string amount)
        {
            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.SaveOtherTaskExpense(otherTaskId, category, expenseDate, "0", comments, name, amount);

            return(result);
        }
示例#2
0
        public string GetAllOtherProjectTasks(string pageNumber, string searchTerm, string numberOfRecords)
        {
            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.GetAllOtherProjectTasks(pageNumber, searchTerm, numberOfRecords);
            var json   = new JavaScriptSerializer().Serialize(result);

            return(json);
        }
示例#3
0
        public string GetAllOtherTaskType()
        {
            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.GetAllOtherTaskType();
            var json   = new JavaScriptSerializer().Serialize(result);

            return(json);
        }
示例#4
0
        public string GetAllOtherTaskExpenses(string pageNumber, string searchTerm, string category)
        {
            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.GetAllOtherTaskExpenses(pageNumber, searchTerm, category);
            var json   = new JavaScriptSerializer().Serialize(result);

            return(json);
        }
示例#5
0
        public string DeleteOtherProjectTask(string taskId)
        {
            UserModel objUser = new UserModel();
            string    userID  = string.Empty;

            if (HttpContext.Current.Session["User"] != null)
            {
                objUser = (UserModel)Session["User"];
                userID  = objUser.UserId.ToString();
            }

            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.DeleteOtherProjectTask(taskId, userID);
            var json   = new JavaScriptSerializer().Serialize(result);

            return(json);
        }
示例#6
0
        public string AddOtherCategoryType(string name)
        {
            UserModel objUser = new UserModel();
            string    userID  = string.Empty;

            if (HttpContext.Current.Session["User"] != null)
            {
                objUser = (UserModel)Session["User"];
                userID  = objUser.UserId.ToString();
            }

            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.AddOtherCategoryType(name, userID);
            var json   = new JavaScriptSerializer().Serialize(result);

            return(json);
        }
示例#7
0
        public string AssignOtherTaskToUser(string categoryType, string name, string assignee, string startDate, string endDate, string comments)
        {
            UserModel objUser = new UserModel();
            string    userID  = string.Empty;

            if (HttpContext.Current.Session["User"] != null)
            {
                objUser = (UserModel)Session["User"];
                userID  = objUser.UserId.ToString();
            }

            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.AssignOtherTaskToUser(categoryType, name, assignee, startDate, endDate, comments, userID);
            var json   = new JavaScriptSerializer().Serialize(result);

            return(json);
        }
示例#8
0
        public string UpdateOtherProjectTask(string taskId, string name, string taskTypeId, string assignedUser, string startDate, string endDate, string commments)
        {
            UserModel objUser = new UserModel();
            string    userID  = string.Empty;

            if (HttpContext.Current.Session["User"] != null)
            {
                objUser = (UserModel)Session["User"];
                userID  = objUser.UserId.ToString();
            }

            OtherTaskBusinessLogic obj = new OtherTaskBusinessLogic();
            var result = obj.UpdateOtherProjectTask(taskId, name, taskTypeId, assignedUser, startDate, endDate, commments, userID);
            var json   = new JavaScriptSerializer().Serialize(result);

            return(json);
        }