Exemplo n.º 1
0
        /// <summary>
        /// 打印箱清单
        /// </summary>
        /// <param name="id">箱号</param>
        /// <param name="type">打印类型(1=批量,0=单箱)</param>
        /// <param name="OrderID">订单号</param>
        /// <returns></returns>
        public ActionResult PrintBoxList(string id, string type, string OrderID)
        {
            ViewBag.OrderID = OrderID;
            ViewBag.Time    = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
            PrintBoxModel print = new PrintBoxModel();

            IEnumerable <WMSConfig> wms = null;

            try
            {
                wms = ApplicationConfigHelper.GetWMS_Config("PackageBoxList_" + base.UserInfo.ProjectName);
            }
            catch
            {
            }
            if (wms == null)
            {
                wms = ApplicationConfigHelper.GetWMS_Config("PackageBoxList");
            }
            if (type == "1") //批量打印//str17存放的是箱唛号外部单号后七位+箱号后三位
            {
                print.EnumerableCustomerInfo = new OrderManagementService().GetPrintBoxListCondition(id.ToString(), type, wms.FirstOrDefault().Name).EnumerableBoxListinfo;
            }
            else if (type == "0")
            {
                print.EnumerableCustomerInfo = new OrderManagementService().GetPrintBoxListCondition(id.ToString(), type, wms.FirstOrDefault().Name).EnumerableBoxListinfo;
            }

            //PrintBoxModel print = new PrintBoxModel();
            //print.EnumerableCustomerInfo = new OrderManagementService().GetPrintBoxListCondition(id.ToString(), type).EnumerableBoxListinfo;
            return(View(print));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 打印报关箱唛
        /// </summary>
        /// <param name="id">箱号</param>
        /// <param name="type">打印类型(1=批量,0=单箱)</param>
        /// <param name="OrderID">订单号</param>
        /// <returns></returns>
        public ActionResult PrintCustomsCarton(string id, string type, string OrderID)
        {
            ViewBag.OrderID = OrderID;
            PrintBoxModel print = new PrintBoxModel();

            print.EnumerableCustomerInfo = new OrderManagementService().GetPackageCustomerCarton(id, type).EnumerableBoxListinfo;
            return(View(print));
        }
Exemplo n.º 3
0
        /// <summary>
        /// 打印总箱单
        /// </summary>
        /// <param name="id">订单id</param>
        /// <param name="type">打印类型</param>
        /// <param name="OrderID">返回orderid</param>
        /// <returns></returns>
        public ActionResult PrintTotalBoxList(string id, string type, string OrderID)
        {
            ViewBag.OrderID = OrderID;
            ViewBag.Time    = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
            PrintBoxModel print = new PrintBoxModel();

            print.EnumerableCustomerInfo = new OrderManagementService().GetPrintTotalBoxListCondition(id.ToString(), type).EnumerableBoxListinfo;
            return(View(print));
        }
Exemplo n.º 4
0
        /// <summary>
        /// 打印箱唛
        /// </summary>
        /// <param name="id">箱号</param>
        /// <param name="type">打印类型(1=批量,0=单箱)</param>
        /// <param name="OrderID">订单号</param>
        /// <returns></returns>
        public ActionResult PrintCarton(string id, string type, string OrderID)
        {
            ViewBag.OrderID = OrderID;
            PrintBoxModel           PackageModel = new PrintBoxModel();
            IEnumerable <WMSConfig> wms          = null;

            try
            {
                wms = ApplicationConfigHelper.GetWMS_Config("PackageBoxCarton_" + base.UserInfo.ProjectName);
            }
            catch
            {
            }
            if (wms == null)
            {
                wms = ApplicationConfigHelper.GetWMS_Config("PackageBoxCarton");
            }

            PackageModel.EnumerableCustomerInfo = new OrderManagementService().GetPackageBoxCarton(id, type, wms.FirstOrDefault().Name).EnumerableBoxListinfo;

            return(View(PackageModel));
        }