public JsonResult GetSelectProjectScheduleDetails(int PageNo, int PageSize, int PrjKy, int PrcsSchKy, int IsShowBaseLine,
                                                          int ObjKy, string FrmDt, string ToDt,
                                                          string TaskId, string TaskFilter, int isCrtclTask, int IsShowPreviousNonComplted)
        {
            int FrmRow = 1;
            int ToRow  = 1;

            if (PageNo > 0 && PageSize > 0)
            {
                FrmRow = (PageNo - 1) * PageSize;
                ToRow  = FrmRow + PageSize;
            }

            PrjModel PrjMdl = new PrjModel();

            PrjMdl.PrjKy                     = PrjKy;
            PrjMdl.PrcsSchKy                 = PrcsSchKy;
            PrjMdl.IsShowBaseLine            = IsShowBaseLine;
            PrjMdl.ObjKy                     = ObjKy;
            PrjMdl.FrmDt                     = FrmDt;
            PrjMdl.ToDt                      = ToDt;
            PrjMdl.FrmRow                    = FrmRow;
            PrjMdl.ToRow                     = ToRow;
            PrjMdl.TaskId                    = TaskId;
            PrjMdl.TaskFilter                = TaskFilter;
            PrjMdl.isCrtclTask               = isCrtclTask;
            PrjMdl.IsShowPreviousNonComplted = IsShowPreviousNonComplted;

            Session["PrjMdl"] = PrjMdl;


            var PrjMdlf = Session["PrjMdl"] as PrjModel;
            int cc      = PrjMdlf.PrjKy;

            int CKy   = HTNSession.CKy;
            int UsrKy = HTNSession.UsrKy;
            List <SelectProjectScheduleDetails> list = new List <SelectProjectScheduleDetails>();

            list = apiOper.GetSelectProjectScheduleDetails(HTNSession.Environment, CKy, UsrKy, PrjMdl);
            if (list.Count > 0)
            {
                Session["TotalRow"] = list[0].TTLRow;
            }
            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        internal List <SelectProjectScheduleDetails> GetSelectProjectScheduleDetails(string EnvironmentName, int CKy, int UsrKy, PrjModel PrjMdl)
        {
            string modelString = new JavaScriptSerializer().Serialize(PrjMdl);

            string actionUri = "GetSelectProjectScheduleDetails";
            Dictionary <string, object> paramDictionary = new Dictionary <string, object>();

            paramDictionary.Add("CKy", CKy);
            paramDictionary.Add("UsrKy", UsrKy);
            paramDictionary.Add("PrjMdl", modelString);

            List <SelectProjectScheduleDetails> list = new List <SelectProjectScheduleDetails>();

            list = RunApiOperation(
                ganttChartBaseUri,
                actionUri,
                EnvironmentName,
                paramDictionary,
                list.GetType()) as List <SelectProjectScheduleDetails>;

            return(list);
        }