public IActionResult TaoPhieuNhap() { //dynamic mymodel = new ExpandoObject(); //mymodel.PM_STORE = service.GetAllStore(); //mymodel.PM_INPUTORDER = service.GetAllPM_INPUTORDER(); TaoPhieuNhap mymodel = new TaoPhieuNhap(); mymodel.pS = service.GetAllStore(); list.Clear(); return(View(mymodel)); }
public IActionResult ThemSanPham(PM_INPUTORDER pi, SP_TaoPhieuNhap spt) { Debug.WriteLine("Log" + list.Count); TaoPhieuNhap mymodel = new TaoPhieuNhap(); mymodel.pS = service.GetAllStore(); mymodel.ispt = service.GetAllThemSanPham(list, spt); mymodel.tpnt = new TaoPhieuNhap_Temp(); mymodel.pi = pi; service.TaoPhieuNhap_Temp(mymodel.tpnt, mymodel); return(View("TaoPhieuNhap", mymodel)); }
public void TaoPhieuNhap_Temp(TaoPhieuNhap_Temp tpnt, TaoPhieuNhap tpn) { tpnt.maphieu = tpn.pi.INPUTVOUCHERID; }