public ActionResult Index()
        {
            ComPanyOP op   = new ComPanyOP();
            var       data = op.GetList().FirstOrDefault();

            return(View(data));
        }
Beispiel #2
0
        public ActionResult GetCompanyList()
        {
            ComPanyOP op = new ComPanyOP();

            var data = op.GetCompanyList();

            return(Json(data));
        }
Beispiel #3
0
        public ActionResult Update(int ID, string CompanyName, string CompanyFullName)
        {
            ComPanyOP op = new ComPanyOP();

            int iResult = op.Update(ID, CompanyName, CompanyFullName);

            return(Json(new { state = "success" }));
        }
        public ActionResult Update(SYS_Company company)
        {
            ComPanyOP op = new ComPanyOP();

            op.Update(company);

            return(Json(new { state = "success" }));
        }
Beispiel #5
0
        //
        // GET: /Company/

        public ActionResult Index(string txtSearch = "")
        {
            ComPanyOP op = new ComPanyOP();

            int total;

            var data = op.GetList(txtSearch, PageNumber, ConstInfo.PAGE_SIZE, out total);

            ViewBag.TotalRecords = total;

            return(View(data));
        }
        public ActionResult GetFactoryList()
        {
            var factoryList = new List <SYS_Factory>();
            var company     = new ComPanyOP().GetList().FirstOrDefault();

            if (company != null)
            {
                FactoryOp op = new FactoryOp();
                factoryList = op.GetFactoryListByCompany(company.CompanyCode);
            }


            return(Json(factoryList));
        }