public IActionResult cut() { info_minusModel minus = new info_minusModel(); ViewData["minus"] = minus.select_minus(); return(View()); }
public string getMinus(string minus) { info_minusModel ms = new info_minusModel(); ms.selectMinusId(minus); return(ms.minus_name); }
public void del_minus(string id) { info_minusModel mn = new info_minusModel(); mn.selectMinusId(id); mn.insertMinusLOG(); mn.event_status = "D"; mn.updateMinus(); }
public IActionResult cut(string cut) { info_minusModel minus = new info_minusModel(); minus.minus_name = cut; minus.insert_minus(); ViewData["minus"] = minus.select_minus(); return(View()); }
public IActionResult editMinus(string minus_id, string minus_edit) { info_minusModel ms = new info_minusModel(); ms.selectMinusId(minus_id); ms.insertMinusLOG(); ms.minus_name = minus_edit; ms.event_status = "U"; ms.updateMinus(); return(RedirectToAction("cut", "Information")); }
public string plusMinus(string emp, string start, string end) { CultureInfo th = new CultureInfo("th-TH"); emp_minusSalaryModel ms = new emp_minusSalaryModel(); info_minusModel minus = new info_minusModel(); List <string> id = new List <string>(); id = ms.check_id_minus_emp_select(emp, start, end); return(Convert.ToDateTime(start).ToString("dd/MM/yyyy") + "^" + Convert.ToDateTime(end).ToString("dd/MM/yyyy") + "^" + minus.select_minus_emp(id)); }
public void minus() { info_minusModel minus = new info_minusModel(); ViewData["minus"] = minus.selectMinus(); }