예제 #1
0
        public IActionResult fund()
        {
            info_fundModel fd = new info_fundModel();

            ViewData["fund"] = fd.select_fund();
            return(View());
        }
예제 #2
0
        public string getFund(string fund)
        {
            info_fundModel fd = new info_fundModel();

            fd.selectFund_id(fund);

            return(fd.fund_name + "^" + fd.fund_code);
        }
예제 #3
0
        public string data_fund_new(string id)
        {
            info_fundModel fn = new info_fundModel();

            fn.selectFund_id(id);

            return(fn.fund_code + "^" + fn.fund_name);
        }
예제 #4
0
        public string fundCode(string id)
        {
            info_fundModel fn = new info_fundModel();

            fn.fund_code = id;
            fn.check_code_fund();

            return(fn.check);
        }
예제 #5
0
        public IActionResult insert_fund(string fund, string fund_code)
        {
            info_fundModel fd = new info_fundModel();

            fd.fund_code = fund_code;
            fd.fund_name = fund;
            fd.insert_fund();


            return(RedirectToAction("fund", "Information"));
        }
예제 #6
0
        public void del_fund(string id)
        {
            info_fundModel fd = new info_fundModel();

            fd.selectFund_id(id);
            fd.insertFundLOG();

            fd.event_status = "D";
            fd.fund_id      = id;
            fd.updateFund();
        }
예제 #7
0
        public IActionResult addResignFund()
        {
            empModel emp = new empModel();

            ViewData["emp"] = emp.drop_emp_Fund();

            info_fundModel fn = new info_fundModel();

            ViewData["fund"] = fn.dropdownFund();

            return(View());
        }
예제 #8
0
        public IActionResult editFund(string fund_id, string fund_edit, string fund_code_edit)
        {
            info_fundModel fd = new info_fundModel();

            fd.selectFund_id(fund_id);
            fd.insertFundLOG();

            fd.fund_code    = fund_code_edit;
            fd.fund_name    = fund_edit;
            fd.event_status = "U";
            fd.updateFund();

            return(RedirectToAction("fund", "Information"));
        }
예제 #9
0
        public string detailFund(string id)
        {
            emp_fundRegisModel fn = new emp_fundRegisModel();

            fn.select_dataFund(id);

            int day  = Convert.ToInt32((DateTime.Now - Convert.ToDateTime(fn.fr_date_start)).TotalDays);
            int year = (DateTime.Now.Year - Convert.ToDateTime(fn.fr_date_start).Year);

            info_fundModel f = new info_fundModel();


            return(fn.fr_date_start + "^" + year + "^" + day + "^" + f.fundForChange(fn.fr_ref_fund_id, fn.fr_ref_emp_id));
        }
예제 #10
0
        public void fund(string emp)
        {
            info_fundModel fund = new info_fundModel();

            ViewData["fund"] = fund.dropdownFund();

            emp_fundRegisModel fr    = new emp_fundRegisModel();
            string             check = fr.checkFund(emp);

            ViewData["check_fund"] = check;
            // if (check != "0") {

            ViewData["data_fund"] = fr.selectFundByEmp(emp);
            // }
        }
예제 #11
0
        public string optionFund(string id)
        {
            info_fundModel fn = new info_fundModel();

            return(fn.fundRefEmp(id, ""));;
        }