示例#1
0
        public ActionResult PAGWiseViewForSuperAdminByProjName(string PAGName, string ProjName)
        {
            Session["PAGName"]  = PAGName;
            Session["ProjName"] = ProjName;
            SuperAdmin PAGWiseViewForSuperAdminByProjNameobj = new SuperAdmin();

            PAGWiseViewForSuperAdminByProjNameobj.PAGWiseViewForSuperAdminByProjNameList = PAGWiseViewForSuperAdminByProjNameobj.PAGWiseViewForSuperAdminByProjName(PAGName, ProjName);
            //  SuperAdmin PAGWiseViewForSuperAdminByProjNameobj = new SuperAdmin();
            var list = PAGWiseViewForSuperAdminByProjNameobj.getSelectMonth();

            PAGWiseViewForSuperAdminByProjNameobj.selectMonthIM = PAGWiseViewForSuperAdminByProjNameobj.GetSelectListItem(list);
            return(View(PAGWiseViewForSuperAdminByProjNameobj));
        }
示例#2
0
        public ActionResult inputByCalender(SuperAdmin superAdmin)
        {
            DateTime todayDate    = DateTime.Now;
            string   fetchingYear = Convert.ToString(todayDate.Year);

            SuperAdmin inputByCalender = new SuperAdmin();
            var        list            = inputByCalender.getSelectMonth();

            inputByCalender.selectMonthIM = inputByCalender.GetSelectListItem(list);
            string dummp    = superAdmin.selectMonth;
            string sDstring = string.Empty;
            string eDstring = string.Empty;

            if (dummp == "Jan")
            {
                sDstring = fetchingYear + "-01-01";
                eDstring = fetchingYear + "-01-31";
            }
            if (dummp == "Feb")
            {
                sDstring = fetchingYear + "-02-01";
                eDstring = fetchingYear + "-02-28";
            }
            if (dummp == "March")
            {
                sDstring = fetchingYear + "-03-01";
                eDstring = fetchingYear + "-03-31";
            }
            if (dummp == "April")
            {
                sDstring = fetchingYear + "-04-01";
                eDstring = fetchingYear + "-04-30";
            }
            if (dummp == "May")
            {
                sDstring = fetchingYear + "-05-01";
                eDstring = fetchingYear + "-05-31";
            }
            if (dummp == "June")
            {
                sDstring = fetchingYear + "-06-01";
                eDstring = fetchingYear + "-06-30";
            }
            if (dummp == "July")
            {
                sDstring = fetchingYear + "-08-01";
                eDstring = fetchingYear + "-07-31";
            }
            if (dummp == "August")
            {
                sDstring = fetchingYear + "-08-01";
                eDstring = fetchingYear + "-08-31";
            }
            if (dummp == "Sep")
            {
                sDstring = fetchingYear + "-09-01";
                eDstring = fetchingYear + "-09-30";
            }
            if (dummp == "Oct")
            {
                sDstring = fetchingYear + "-10-01";
                eDstring = fetchingYear + "-10-31";
            }
            if (dummp == "Nov")
            {
                sDstring = fetchingYear + "-11-01";
                eDstring = fetchingYear + "-11-30";
            }
            if (dummp == "Dec")
            {
                sDstring = fetchingYear + "-12-01";
                eDstring = fetchingYear + "-12-31";
            }


            Session["sDforExportToExcel"] = sDstring;

            Session["eDforExportToExcel"] = eDstring;
            inputByCalender.PAGWiseViewForSuperAdminByProjNameList =
                inputByCalender.PAGWiseViewForSuperAdminByProjNameRefinedByMonth(superAdmin, sDstring, eDstring, fetchingYear);
            return(View(inputByCalender));
        }