Beispiel #1
0
        /// <summary>
        /// 提交指定调度单数据
        /// </summary>
        /// <param name="nId"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public bool SubmitDispatchBill(long nId, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            DispatchRule rule = new DispatchRule();

            return(rule.SubmitDispatchBill(nId, nOpStaffId, strOpStaffName, out strErrText));
        }
Beispiel #2
0
        /// <summary>
        /// 删除指定调度单编码和计划编码的已调度计划数据
        /// </summary>
        /// <param name="nDispatchBillId"></param>
        /// <param name="nPlanId"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public bool DeleteDispatchedPlan(long nDispatchBillId, long nPlanId, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            DispatchRule rule = new DispatchRule();

            return(rule.DeleteDispatchedPlan(nDispatchBillId, nPlanId, nOpStaffId, strOpStaffName, out strErrText));
        }
Beispiel #3
0
        /// <summary>
        /// 修改调度单
        /// </summary>
        /// <param name="bill"></param>
        /// <param name="listDeliverPlan"></param>
        /// <param name="listGoods"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public bool UpdateDispatchBill(DispatchBill bill, List <DispatchBillDeliverPlan> listDeliverPlan, List <DispatchBillGoods> listGoods, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            DispatchRule rule = new DispatchRule();

            return(rule.UpdateDispatchBill(bill, listDeliverPlan, listGoods, nOpStaffId, strOpStaffName, out strErrText));
        }
Beispiel #4
0
        /// <summary>
        /// 修改调度单
        /// </summary>
        /// <param name="data"></param>
        /// <param name="listPlan"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public bool UpdateDispatchBill(DispatchBill data, List <DispatchBillDeliverPlan> listPlan, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            DispatchRule rule = new DispatchRule();

            return(rule.UpdateDispatchBill(data, listPlan, nOpStaffId, strOpStaffName, out strErrText));
        }
Beispiel #5
0
        private readonly int[] mLatePriorityJobs; // counter for late jobs considering the priority

        #region "Constructor"
        /// <summary>
        /// Initializes a new instance of the <see cref="Jobs" /> class.
        /// </summary>
        /// <param name="disptchRule">The dispatch rule.</param>
        /// <param name="maxCapacity">The maximum capacity.</param>
        public Jobs(DispatchRule disptchRule = DispatchRule.FIFO, int maxCapacity = int.MaxValue)
        {
            DispatchRule      = disptchRule;
            MaxCapacity       = maxCapacity;
            mLatePriorityJobs = new int[3];
        }