bklLiudl
2024-07-23 675b8bcc4a3630d95e3d0b97d933e63442075ecb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BLL;
using BLL.DAL;
using Common;
using Lib;
using Model;
 
namespace wms.Areas.BasicInfo.Controllers
{
    public class PackingController : MasterPage
    {
        // GET: BasicInfo/Packing
        public ActionResult Index()
        {
            return View();
        }
 
        public ActionResult AddPacking()
        {
            string PackingCode = Request.QueryString.Get("PackingCode");
            if (PackingCode.IsEmpty())
            {
               
                ViewBag.Admin = new Packing();
 
            }
            else
            {
                DALPacking provider = new DALPacking();
                Packing entity = provider.GetModel(PackingCode);
                entity = entity == null ? new Packing() : entity;
                ViewBag.Admin = entity;
 
            }
            return View();
           
        }
    }
}