Beispiel #1
0
        public ActionResult Index()
        {
            Service.SQL_Inquire_Cpy  SIC  = new Service.SQL_Inquire_Cpy();
            Service.SQL_Inquire_Emp  SIE  = new Service.SQL_Inquire_Emp();
            Service.SQL_Inquire_Cust SICU = new Service.SQL_Inquire_Cust();
            Service.SQL_Inquire_Pdt  SIP  = new Service.SQL_Inquire_Pdt();

            List <Model.Data> Drop = new List <Model.Data>();


            Drop = SIC.GetData("");
            DropDownListMakeCpy(Drop);

            Drop = new List <Model.Data>();
            Drop = SIE.GetData("");
            DropDownListMakeEmp(Drop);

            Drop = new List <Model.Data>();
            Drop = SICU.GetData("");
            DropDownListMakeCust(Drop);

            Drop = new List <Model.Data>();
            Drop = SIP.GetData("");
            DropDownListMakePdt(Drop);

            string[] Price = new string[(Drop.Count + 1)];
            for (int i = 1; i < Price.Length; i++)
            {
                Price[i] = Drop[i - 1].UnitPrice.ToString();
            }
            ViewBag.Price = Price;

            return(View());
        }
Beispiel #2
0
        // GET: Update
        public ActionResult Index(Model.Data Data)
        {
            ViewBag.Data = Data;

            Service.SQL_Inquire_Cpy  SIC  = new Service.SQL_Inquire_Cpy();
            Service.SQL_Inquire_Emp  SIE  = new Service.SQL_Inquire_Emp();
            Service.SQL_Inquire_Cust SICU = new Service.SQL_Inquire_Cust();
            Service.SQL_Inquire_Pdt  SIP  = new Service.SQL_Inquire_Pdt();

            List <Model.Data> Drop = new List <Model.Data>();


            Drop = SIC.GetData(Data.ShipperID);
            DropDownListMakeCpy(Drop, Data);

            Drop = new List <Model.Data>();
            Drop = SIE.GetData(Data.EmployeeID);
            DropDownListMakeEmp(Drop, Data);

            Drop = new List <Model.Data>();
            Drop = SICU.GetData(Data.CustName);
            DropDownListMakeCust(Drop, Data);

            Drop = new List <Model.Data>();
            Drop = SIP.GetData("");
            DropDownListMakePdt(Drop);

            string[] Price = new string[(Drop.Count + 1)];
            for (int i = 1; i < Price.Length; i++)
            {
                Price[i] = Drop[i - 1].UnitPrice.ToString();
            }
            ViewBag.Price = Price;

            Drop           = new List <Model.Data>();
            Drop           = SIP.GetData(Data.OrderId);
            ViewBag.result = Drop;

            return(View());
        }