Ejemplo n.º 1
0
 /// <summary>
 /// 清除库房盘点状态
 /// </summary>
 /// <param name="master"></param>
 /// <param name="_billQuery"></param>
 /// <param name="_billProcessor"></param>
 /// <param name="belongSystem"></param>
 public static void StopCheckStatus(YP_CheckMaster master, BillQuery _billQuery,
                                    BillProcessor _billProcessor, string belongSystem)
 {
     try
     {
         _billProcessor.DelBill(master);
         oleDb.BeginTransaction();
         if (!_billQuery.CheckBill_ExistsNotAudit(master.MasterCheckID, belongSystem))
         {
             EndCheck(master.DeptID);
         }
         oleDb.CommitTransaction();
     }
     catch (Exception error)
     {
         oleDb.RollbackTransaction();
         throw error;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 创建业务单据处理器
        /// </summary>
        /// <param name="opType">业务类型</param>
        /// <returns>新创建的单据处理器</returns>
        static public BillProcessor GetProcessor(string opType)
        {
            switch (opType)
            {
            case ConfigManager.OP_YF_ADJPRICE:
                newProcessor = new AdjpriceProcessor();
                break;

            case ConfigManager.OP_YF_APPLYIN:
                newProcessor = new ApplyInProcessor();
                break;

            case ConfigManager.OP_YF_PJDB:
                newProcessor = new ApplyInProcessor();
                break;

            case ConfigManager.OP_YF_CHECK:
                newProcessor = new YF_CheckPorcessor();
                break;

            case ConfigManager.OP_YF_DEPTDRAW:
                newProcessor = new YF_OutstoreProcessor();
                break;

            case ConfigManager.OP_YF_DISPENSE + "MZ":
                newProcessor = new MZ_DispProcessor();
                break;

            case ConfigManager.OP_YF_DISPENSE + "ZY":
                newProcessor = new ZY_DispProcessor();
                break;

            case ConfigManager.OP_YF_DISPENSE + "ZY_ECONOMY":
                newProcessor = new ZY_DispEconomy();
                break;

            case ConfigManager.OP_YF_INSTORE:
                newProcessor = new YF_InstoreProcessor();
                break;

            case ConfigManager.OP_YF_REPORTLOSS:
                newProcessor = new YF_OutstoreProcessor();
                break;

            case ConfigManager.OP_YF_REFUND + "MZ":
                newProcessor = new MZ_Refund();
                break;

            case ConfigManager.OP_YF_REFUND + "ZY":
                newProcessor = new ZY_Refund();
                break;

            case ConfigManager.OP_YK_ADJPRICE:
                newProcessor = new AdjpriceProcessor();
                break;

            case ConfigManager.OP_YK_CHECK:
                newProcessor = new YK_CheckPorcessor();
                break;

            case ConfigManager.OP_YK_DEPTDRAW:
                newProcessor = new YK_OutstoreProcessor();
                break;

            case ConfigManager.OP_YK_INOPTYPE:
                newProcessor = new YK_InstoreProcessor();
                break;

            case ConfigManager.OP_YK_FIRSTIN:
                newProcessor = new YK_InstoreProcessor();
                break;

            case ConfigManager.OP_YK_BACKSTORE:
                newProcessor = new YK_BackStoreProcessor();
                break;

            case ConfigManager.OP_YK_OUTTOYF:
                newProcessor = new YK_OutstoreProcessor();
                break;

            case ConfigManager.OP_YK_REPORTLOSS:
                newProcessor = new YK_OutstoreProcessor();
                break;

            case ConfigManager.OP_YK_STOCKPLAN:
                newProcessor = new StockPlanProcessor();
                break;

            default:
                return(null);
            }
            return(newProcessor);
        }