コード例 #1
0
        public void del_line_tran(string id)
        {
            line_transport ls = new line_transport();

            ls.emp_tran_id = id;
            ls.del_line_tran();
        }
コード例 #2
0
        public string select_line_tran(string id)
        {
            line_transport ls = new line_transport();

            ls.select_line_tran("emp_tran_id = '" + id + "'");

            return(ls.emp_tran_ref_emp_id + "^" + ls.emp_tran_ref_line_id + "^" + ls.emp_tran_create_date);
        }
コード例 #3
0
        public IActionResult insert_line_tran(string tran_line, string tran_emp, string tran_date)
        {
            line_transport lt = new line_transport();

            lt.emp_tran_ref_emp_id  = tran_line;
            lt.emp_tran_ref_line_id = tran_emp;
            lt.emp_tran_create_date = tran_date;

            lt.insert_line_tran();

            return(RedirectToAction("typeEmp", "Information"));
        }
コード例 #4
0
        public IActionResult update_line_tran(string tran_line_edit, string tran_emp_edit, string tran_date_edit, string tran_line_id)
        {
            line_transport ls = new line_transport();

            ls.emp_tran_ref_emp_id  = tran_emp_edit;
            ls.emp_tran_ref_line_id = tran_line_edit;
            ls.emp_tran_create_date = tran_date_edit;
            ls.emp_tran_id          = tran_line_id;

            ls.update_line_tran();

            return(RedirectToAction("typeEmp", "Information"));
        }
コード例 #5
0
        public IActionResult typeEmp()
        {
            lineModel      ln  = new lineModel();
            employeeModel  emp = new employeeModel();
            line_saleModel ls  = new line_saleModel();
            line_transport lt  = new line_transport();

            ViewData["line"]      = ln.drop_line("");
            ViewData["employee"]  = emp.drop_emp("");
            ViewData["line_sale"] = ls.list_line_sale();
            ViewData["line_tran"] = lt.list_line_tran();

            return(View());
        }