Example #1
0
 public UserCardPairBL()
 {
     this._IUserCardPairDA = MasterDAFactory.GetDAL<IUserCardPairDA>(MasterDAFactory.UserCardPair);
     this._ICardUserMasterDA = MasterDAFactory.GetDAL<ICardUserMasterDA>(MasterDAFactory.CardUserMaster);
     this._IConsumeCardMasterDA = MasterDAFactory.GetDAL<IConsumeCardMasterDA>(MasterDAFactory.ConsumeCardMaster);
     this._IGradeMasterDA = MasterDAFactory.GetDAL<IGradeMasterDA>(MasterDAFactory.GradeMaster);
     this._IClassMasterDA = MasterDAFactory.GetDAL<IClassMasterDA>(MasterDAFactory.ClassMaster);
     this._ICardUserAccountDA = MasterDAFactory.GetDAL<ICardUserAccountDA>(MasterDAFactory.CardUserAccount);
     this._IDepartmentMasterDA = MasterDAFactory.GetDAL<IDepartmentMasterDA>(MasterDAFactory.DepartmentMaster);
     this._IBlacklistChangeRecordBL = MasterBLLFactory.GetBLL<IBlacklistChangeRecordBL>(MasterBLLFactory.BlacklistChangeRecord);
 }
Example #2
0
        public frmCardReplace()
        {
            InitializeComponent();
            initReader();
            this._IUserCardPairBL = MasterBLLFactory.GetBLL<IUserCardPairBL>(MasterBLLFactory.UserCardPair);
            this._IConsumeCardMasterBL = MasterBLLFactory.GetBLL<IConsumeCardMasterBL>(MasterBLLFactory.ConsumeCardMaster);
            this._ICardUserMasterBL = MasterBLLFactory.GetBLL<ICardUserMasterBL>(MasterBLLFactory.CardUserMaster);
            this._ICardUserAccountBL = MasterBLLFactory.GetBLL<ICardUserAccountBL>(MasterBLLFactory.CardUserAccount);
            this._ICodeMasterBL = BLL.Factory.SysMaster.MasterBLLFactory.GetBLL<ICodeMasterBL>(BLL.Factory.SysMaster.MasterBLLFactory.CodeMaster_cmt);
            this._IConsumeMachineBL = MasterBLLFactory.GetBLL<IConsumeMachineBL>(MasterBLLFactory.ConsumeMachine);
            this.m_IBlacklistChangeRecordBL = MasterBLLFactory.GetBLL<IBlacklistChangeRecordBL>(MasterBLLFactory.BlacklistChangeRecord);

            initCost();

            //btnSelectUser_Click(null, null);
        }
 /// <summary>
 /// 数据逻辑类初始化
 /// </summary>
 private void InitBLL()
 {
     this.m_ICodeMasterBL = sysFac.MasterBLLFactory.GetBLL<sysBL.ICodeMasterBL>(sysFac.MasterBLLFactory.CodeMaster_cmt);
     this.m_IConsumeMachineBL = MasterBLLFactory.GetBLL<IConsumeMachineBL>(MasterBLLFactory.ConsumeMachine);
     this.m_IMealBookingHistoryBL = MasterBLLFactory.GetBLL<IMealBookingHistoryBL>(MasterBLLFactory.MealBookingHistory);
     this.m_IPaymentUDGeneralSettingBL = MasterBLLFactory.GetBLL<IPaymentUDGeneralSettingBL>(MasterBLLFactory.PaymentUDGeneralSetting);
     this.m_IPaymentUDMealStateBL = MasterBLLFactory.GetBLL<IPaymentUDMealStateBL>(MasterBLLFactory.PaymentUDMealState);
     this.m_ICardUserMasterBL = MasterBLLFactory.GetBLL<ICardUserMasterBL>(MasterBLLFactory.CardUserMaster);
     this.m_IUserCardPairBL = MasterBLLFactory.GetBLL<IUserCardPairBL>(MasterBLLFactory.UserCardPair);
     this.m_ICardUserAccountBL = MasterBLLFactory.GetBLL<ICardUserAccountBL>(MasterBLLFactory.CardUserAccount);
     this.m_IRechargeRecordBL = MasterBLLFactory.GetBLL<RechargeRecordBL>(MasterBLLFactory.RechargeRecord);
     this.m_IPreConsumeRecordBL = MasterBLLFactory.GetBLL<IPreConsumeRecordBL>(MasterBLLFactory.PreConsumeRecord);
     this.m_IBlacklistChangeRecordBL = BLL.Factory.HHZX.MasterBLLFactory.GetBLL<IBlacklistChangeRecordBL>(BLL.Factory.HHZX.MasterBLLFactory.BlacklistChangeRecord);
     this.m_IPreRechargeRecordBL = MasterBLLFactory.GetBLL<IPreRechargeRecordBL>(MasterBLLFactory.PreRechargeRecord);
 }
Example #4
0
        public MainForm()
        {
            InitializeComponent();

            this._systemMessageText = new DefineConstantValue.SystemMessage(string.Empty);
            this._isLogin = false;

            this._tmrDisplayTime = new Timer();
            this._tmrDisplayTime.Interval = 1000;
            this._tmrDisplayTime.Tick += new EventHandler(_tmrDisplayTime_Tick);
            this._tmrDisplayTime.Enabled = true;

            this._IBlacklistChangeRecordBL = BLL.Factory.HHZX.MasterBLLFactory.GetBLL<IBlacklistChangeRecordBL>(BLL.Factory.HHZX.MasterBLLFactory.BlacklistChangeRecord);
            this._IConsumeMachineBL = BLL.Factory.HHZX.MasterBLLFactory.GetBLL<IConsumeMachineBL>(BLL.Factory.HHZX.MasterBLLFactory.ConsumeMachine);

            OnStatusBarChanged += new StatusBarRefresh(MainForm_OnStatusBarChanged);

            this.BaseDockPanel = this.dpnlContainer;

            this._LoginForm = new LoginForm();

            Cursor.Current = Cursors.WaitCursor;

            Cursor.Current = Cursors.Arrow;
        }