示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
 public void TaoPhieuNhap_Temp(TaoPhieuNhap_Temp tpnt, TaoPhieuNhap tpn)
 {
     tpnt.maphieu = tpn.pi.INPUTVOUCHERID;
 }