public IActionResult viewMaterial(string id) { ViewData["mtr_id"] = id; MaterialModel mt = new MaterialModel(); mt.select_mtr("mtr_id = '" + id + "'"); ViewData["mtr_img"] = mt.mtr_img; ViewData["mtr_code"] = mt.mtr_code; ViewData["mtr_name"] = mt.mtr_name; ViewData["mtr_detail"] = mt.mtr_detail; ViewData["mtr_keep_num"] = mt.mtr_keep_num; ViewData["mtr_width"] = mt.mtr_width; ViewData["mtr_long"] = mt.mtr_long; ViewData["mtr_side"] = mt.mtr_side; ViewData["mtr_roll"] = mt.mtr_roll; ViewData["mtr_noti"] = mt.mtr_noti; ViewData["mtr_noti_min"] = mt.mtr_noti_min; ViewData["mtr_noti_max"] = mt.mtr_noti_max; groupMaterialModel gm = new groupMaterialModel(); ViewData["group_material"] = gm.drop_gm(mt.mtr_ref_tm_id); unitModel un = new unitModel(); ViewData["unit_get"] = un.drop_unit(mt.mtr_unit_get); ViewData["unit_expose"] = un.drop_unit(mt.mtr_unit_expose); stickerModel stk = new stickerModel(); ViewData["sticker"] = stk.drop_con_pay(mt.mtr_sticker); shelfModel sh = new shelfModel(); ViewData["shelf"] = sh.drop_shelf(mt.mtr_shelf); return(View()); }
public IActionResult addMaterial() { groupMaterialModel gm = new groupMaterialModel(); ViewData["group_material"] = gm.drop_gm(""); unitModel un = new unitModel(); ViewData["unit"] = un.drop_unit(""); stickerModel stk = new stickerModel(); ViewData["sticker"] = stk.drop_con_pay(""); shelfModel sh = new shelfModel(); ViewData["shelf"] = sh.drop_shelf(""); return(View()); }