public ActionResult BASICINFORMATIONView(string FACTORY_CD, string LINE_CODE)
        {
            FACTORY_CD_Param = FACTORY_CD;
            LINE_CODE_Param  = LINE_CODE;

            DASHBOARDBLL DashboardBLL = new DASHBOARDBLL(FACTORY_CD);
            string       preferredLang;

            ViewData["FACTORY_CD"]   = DashboardBLL.Get_FactoryCD_List("%");
            ViewData["GARMENT_TYPE"] = DashboardBLL.Get_GARMENT_TYPE_List();
            ViewData["LINE_CD"]      = DashboardBLL.Get_LINECD_List("%", "%");
            ViewData["SHIFT_CODE"]   = DashboardBLL.Get_SHIFT_CODE_List("%");
            COMMONPROCESS         ReadAndWrite_File     = new COMMONPROCESS(FACTORY_CD_Param, LINE_CODE_Param);
            BASICINFORMATION_DATA BASICINFORMATION_DATA = ReadAndWrite_File.Read_BASICINFORMATION_File();

            preferredLang = BASICINFORMATION_DATA.LANGUAGE;
            //if (string.IsNullOrEmpty(preferredLang) || string.IsNullOrWhiteSpace(preferredLang))
            //Request.("LANGUAGE");

            IEnumerable <MvcDashBoard.Model.DASHBOARD.Models.OTHER.PROC_GET_DASHBOARD_FORM_DEFINITION> data = DashboardBLL.PROC_GET_DASHBOARD_FORM_DEFINITION("BASICINFORMATION", preferredLang);

            foreach (MvcDashBoard.Model.DASHBOARD.Models.OTHER.PROC_GET_DASHBOARD_FORM_DEFINITION item in data)
            {
                ViewData[item.CONTROLLER_ID.ToString()] = (item.CONTROLLER_DESC == null ? "" : item.CONTROLLER_DESC.ToString());
            }
            return(View(BASICINFORMATION_DATA));
        }
Example #2
0
        public ActionResult EMPLOYEEATTENDTIMEView(string FACTORY_CD, String LINE_CODE, string SHIFT_CODE, DateTime?TRX_DATE)
        {
            DASHBOARDBLL DashboardBLL = new DASHBOARDBLL(FACTORY_CD);

            ViewData["FACTORY_CD"]   = DashboardBLL.Get_FactoryCD_List("%");
            ViewData["GARMENT_TYPE"] = DashboardBLL.Get_GARMENT_TYPE_List();
            ViewData["LINE_CD"]      = DashboardBLL.Get_LINECD_List("%", "%");
            ViewData["SHIFT_CODE"]   = DashboardBLL.Get_SHIFT_CODE_List("%");

            EMPLOYEE_ATTENDTIME EMPLOYEE_ATTENDTIME = new EMPLOYEE_ATTENDTIME();

            List <DASHBOARD_EMPLOYEE_ATTENDTIME> DASHBOARD_EMPLOYEE_ATTENDTIME = DashboardBLL.Get_DASHBOARD_EMPLOYEE_ATTENDTIME_List(FACTORY_CD, LINE_CODE, SHIFT_CODE, TRX_DATE);

            EMPLOYEE_ATTENDTIME_QUERY_CRITERIA EMPLOYEE_ATTENDTIME_QUERY_CRITERIA = new EMPLOYEE_ATTENDTIME_QUERY_CRITERIA();

            EMPLOYEE_ATTENDTIME_QUERY_CRITERIA.FACTORY_CD         = FACTORY_CD;
            EMPLOYEE_ATTENDTIME_QUERY_CRITERIA.PRODUCTION_LINE_CD = LINE_CODE;
            EMPLOYEE_ATTENDTIME_QUERY_CRITERIA.SHIFT    = SHIFT_CODE;
            EMPLOYEE_ATTENDTIME_QUERY_CRITERIA.TRX_DATE = TRX_DATE;

            EMPLOYEE_ATTENDTIME.EMPLOYEE_ATTENDTIME_list           = DASHBOARD_EMPLOYEE_ATTENDTIME;
            EMPLOYEE_ATTENDTIME.EMPLOYEE_ATTENDTIME_Query_Criteria = EMPLOYEE_ATTENDTIME_QUERY_CRITERIA;

            string preferredLang = Request["LANGUAGE"];
            IEnumerable <OTHER.PROC_GET_DASHBOARD_FORM_DEFINITION> data = DashboardBLL.PROC_GET_DASHBOARD_FORM_DEFINITION("EMPLOYEEATTENDTIME", preferredLang);

            foreach (OTHER.PROC_GET_DASHBOARD_FORM_DEFINITION item in data)
            {
                ViewData[item.CONTROLLER_ID.ToString()] = (item.CONTROLLER_DESC == null ? "" : item.CONTROLLER_DESC.ToString());
            }

            return(View(EMPLOYEE_ATTENDTIME));
        }