Пример #1
0
        public MachineAreaMaster()
        {
            InitializeComponent();

            this.lvInfo.Font = ControlSetting.ListFont;

            this._AreaMasterBL = new AreaMasterBL();
        }
Пример #2
0
 public override void GetConvertHash()
 {
     AreaMasterBL _areaMasterBL =new BLL.Impl.HBPMS.Master.AreaMasterBL();
     var areas = _areaMasterBL.SearchRecords(new AreaMaster_amr_Info());
     foreach (AreaMaster_amr_Info item in areas)
     {
         _hash.Add(item.amr_cRecordID.ToString(), item.amr_cAreaName);
     }
 }
Пример #3
0
        public DinnerSchedule()
        {
            InitializeComponent();
            mLog = Common.General.PPCLogger;
            this.lvInfo.Font = ControlSetting.ListFont;
            mDinnerScheduleMasterBL = new DinnerBL();

            mShiftTypeMasterBL = MasterBLLFactory.GetBLL<IShiftTypeMasterBL>(MasterBLLFactory.ShiftTypeMaster_stm);
            mAreaMasterBL = new AreaMasterBL();
        }
Пример #4
0
        private string _StaffNo; //工號

        #endregion Fields

        #region Constructors

        public MachineAreaAppSetting()
        {
            InitializeComponent();

            this._AreaMasterBL = new AreaMasterBL();

            //this._MachineMasterBL = MasterBLLFactory.GetBLL<IMachineMasterBL>(MasterBLLFactory.MachineMaster_mmt);
            //this._StaffInfoMasterBL = MasterBLLFactory.GetBLL<IStaffInfoMasterBL>(MasterBLLFactory.StaffInfoMaster_sim);
            //this._isChanged = false;

            //todo: 需初始化用戶信息
            if (base.UserInformation == null)
            {
                base.UserInformation = new Model.SysMaster.Sys_UserMaster_usm_Info();
                base.UserInformation.usm_cUserLoginID = "sys";
            }
        }
Пример #5
0
        public override void GetConvertHash()
        {
            AreaMasterBL areaMasterBL;

            try
            {
                areaMasterBL = new AreaMasterBL();
                var returnSource = areaMasterBL.SearchRecords(new AreaMaster_amr_Info());

                if (returnSource != null && returnSource.Count > 0)
                {
                    foreach (AreaMaster_amr_Info item in returnSource)
                    {
                        _hash.Add(item.amr_cRecordID.ToString(), item.amr_cAreaName);
                    }
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.Message);

            }
        }