Пример #1
0
        /// <summary>
        /// 根据物流码直接从指定发货商签收入库到下游商户库存
        /// </summary>
        /// <param name="SupplierWareHouse">供货商仓库</param>
        /// <param name="ClientWareHouse">收货商仓库</param>
        /// <param name="ClientWareHouseCell">签收库位</param>
        /// <param name="Codes">签收物流码</param>
        /// <param name="SignInUser">签收操作用户</param>
        /// <returns>大于0:发货单号 -10:物流码不是归属同一供货商仓库 -11:供货商与收货商间不存在供货关系	-12:无产品码符合收货规则</returns>
        public static int SignInNoDeliverySheet(int SupplierWareHouse, int ClientWareHouse, int ClientWareHouseCell, string Codes, Guid SignInUser)
        {
            if (Codes.Contains("."))
            {
                Codes = Codes.Replace(".", ",");
            }
            if (Codes.Contains(" "))
            {
                Codes = Codes.Replace(" ", ",");
            }
            if (Codes.Contains("|"))
            {
                Codes = Codes.Replace("|", ",");
            }
            if (Codes.Contains(";"))
            {
                Codes = Codes.Replace(";", ",");
            }

            if (string.IsNullOrEmpty(Codes))
            {
                return(-12);
            }

            string[] _codes   = Codes.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            string   _codestr = "";

            foreach (string _c in _codes)
            {
                _codestr += "'" + _c + "',";
            }

            if (_codestr.EndsWith(","))
            {
                _codestr = _codestr.Substring(0, _codestr.Length - 1);
            }

            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.SignInNoDeliverySheet(SupplierWareHouse, ClientWareHouse, ClientWareHouseCell, _codestr, SignInUser));
        }
Пример #2
0
        public static string GenerateSheetCode(int WareHouse)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GenerateSheetCode(WareHouse));
        }
Пример #3
0
 public ORD_DeliveryBLL(int id, bool bycache)
     : base(DALClassName)
 {
     _dal = (ORD_DeliveryDAL)_DAL;
     FillModel(id, bycache);
 }
Пример #4
0
 public ORD_DeliveryBLL(int id)
     : base(DALClassName)
 {
     _dal = (ORD_DeliveryDAL)_DAL;
     FillModel(id);
 }
Пример #5
0
 ///<summary>
 ///ORD_DeliveryBLL
 ///</summary>
 public ORD_DeliveryBLL()
     : base(DALClassName)
 {
     _dal = (ORD_DeliveryDAL)_DAL;
     _m   = new ORD_Delivery();
 }
Пример #6
0
        public static DataTable GetDeliveryErrorCodeLibList_ByActClient(int ActClient, DateTime BeginDate, DateTime EndDate)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetDeliveryErrorCodeLibList(0, ActClient, BeginDate, EndDate));
        }
Пример #7
0
        public static DataTable GetDeliveryErrorCodeLibList_BySupplier(int Supplier, DateTime BeginDate, DateTime EndDate)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetDeliveryErrorCodeLibList(Supplier, 0, BeginDate, EndDate));
        }
Пример #8
0
        /// <summary>
        /// 获取指定客户的发出退货明细
        /// </summary>
        /// <param name="Supplier">发出退货客户</param>
        /// <param name="BeginDate"></param>
        /// <param name="EndDate"></param>
        /// <param name="DeliveryClassify">货单类别</param>
        /// <param name="PDTBrand">产品品牌</param>
        /// <param name="PDTClassify">产品系列</param>
        /// <param name="Product">产品</param>
        /// <returns></returns>
        public static DataTable GetReturnOutList(int Supplier, DateTime BeginDate, DateTime EndDate, int PDTBrand, int PDTClassify, int Product)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetReturnOutList(Supplier, BeginDate, EndDate, PDTBrand, PDTClassify, Product));
        }
Пример #9
0
        /// <summary>
        /// 获取指定客户的收货明细
        /// </summary>
        /// <param name="Client">收货客户</param>
        /// <param name="BeginDate"></param>
        /// <param name="EndDate"></param>
        /// <param name="DeliveryClassify">货单类别</param>
        /// <param name="PDTBrand">产品品牌</param>
        /// <param name="PDTClassify">产品系列</param>
        /// <param name="Product">产品</param>
        /// <returns></returns>
        public static DataTable GetDeliveryInList(int Client, DateTime BeginDate, DateTime EndDate, int DeliveryClassify, int PDTBrand, int PDTClassify, int Product)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetDeliveryInList(Client, BeginDate, EndDate, DeliveryClassify, PDTBrand, PDTClassify, Product));
        }
Пример #10
0
        public static int GetWareHouseNeedDeliveryQuantityByProduct(int WareHouse, int Product)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetNeedDeliveryQuantityByProduct(0, Product, WareHouse));
        }
Пример #11
0
        /// <summary>
        /// 按单个物流码丢失
        /// </summary>
        /// <param name="DeliveryID"></param>
        /// <param name="Code"></param>
        /// <returns>-1:发货单ID不为在途状态 -2:物流码无效 >0:丢失产品数量</returns>
        public static int LostByOneCode(int DeliveryID, string Code)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.LostByOneCode(DeliveryID, Code));
        }
Пример #12
0
        /// <summary>
        /// 按单个物流码退货发货单
        /// </summary>
        /// <param name="DeliveryID"></param>
        /// <param name="Code"></param>
        /// <param name="WareHouseCell"></param>
        /// <returns>-1:发货单ID不为在途状态 -2:物流码无效 >0:退货产品数量</returns>
        public static int ReturnByOneCode(int DeliveryID, string Code, int WareHouseCell)
        {
            ORD_DeliveryDAL dal = (ORD_DeliveryDAL)DataAccess.CreateObject(DALClassName);

            return(dal.ReturnByOneCode(DeliveryID, Code, WareHouseCell));
        }