コード例 #1
0
        private void InitializeScreen()
        {
            InitializeSpread();
            InitialFormat();

            //txt.KeyPress += CommonLib.CtrlUtil.SetRestrictKeyInput;
            //txtSearch.KeyPress += CommonLib.CtrlUtil.SetRestrictKeyInput;
            //txtSearch.TextChanged += CommonLib.CtrlUtil.FilterRestrictChar;

            dtPeriodBegin.KeyPress += CtrlUtil.SetNextControl;
            dtPeriodEnd.KeyPress   += CtrlUtil.SetNextControl;

            dtPeriodBegin.Format = Common.CurrentUserInfomation.DateFormatString;
            dtPeriodEnd.Format   = Common.CurrentUserInfomation.DateFormatString;

            CtrlUtil.EnabledControl(false, txtAmount, txtAmountTHB, txtQty);

            InventoryPeriodBIZ biz = new InventoryPeriodBIZ();
            InventoryPeriodDTO dto = biz.LoadCurrentPeriodWithQueryRange();

            if (dto != null)
            {
                dtPeriodBegin.Value = dto.PERIOD_BEGIN_DATE.StrongValue;
                dtPeriodEnd.Value   = dto.PERIOD_END_DATE.StrongValue;
            }
        }
コード例 #2
0
        private void LoadDefaultPeriod()
        {
            InventoryPeriodBIZ biz = new InventoryPeriodBIZ();
            InventoryPeriodDTO dto = biz.LoadCurrentPeriodWithQueryRange();

            dtPeriodBegin.NZValue = dto.PERIOD_BEGIN_DATE;
            dtPeriodEnd.NZValue   = dto.PERIOD_END_DATE;
        }
コード例 #3
0
        private void TRN010_Load(object sender, EventArgs e)
        {
            InitializeScreen();

            InventoryPeriodBIZ biz = new InventoryPeriodBIZ();
            InventoryPeriodDTO dto = biz.LoadCurrentPeriodWithQueryRange();

            dtPeriodBegin.NZValue = dto.PERIOD_BEGIN_DATE;
            dtPeriodEnd.NZValue   = dto.PERIOD_END_DATE;

            LoadData(dto.PERIOD_BEGIN_DATE, dto.PERIOD_END_DATE);
        }
コード例 #4
0
        private void PUR010_Load(object sender, EventArgs e)
        {
            InventoryPeriodBIZ biz = new InventoryPeriodBIZ();
            InventoryPeriodDTO dto = biz.LoadCurrentPeriodWithQueryRange();

            dtPeriodBegin.NZValue = dto.PERIOD_BEGIN_DATE;
            dtPeriodEnd.NZValue   = dto.PERIOD_END_DATE;
            dtPeriodBegin.Format  = Common.CurrentUserInfomation.DateFormatString;
            dtPeriodEnd.Format    = Common.CurrentUserInfomation.DateFormatString;

            shtView.Columns[(int)eColumn.DUE_DATE].CellType = CtrlUtil.CreateDateTimeCellType();
            shtView.Columns[(int)eColumn.PO_DATE].CellType  = CtrlUtil.CreateDateTimeCellType();

            this.m_dtShown = m_BizPurchaseOrder.LoadPurchaseOrderDByPONo(Convert.ToDateTime(dtPeriodBegin.Value), Convert.ToDateTime(dtPeriodEnd.Value));
            ShowSheet(this.m_dtShown);

            SetSpreadBGColor();
            SetContextMenu();
        }
コード例 #5
0
        private void InitializeScreen()
        {
            InitializeSpread();

            //txtSearch.KeyPress += CommonLib.CtrlUtil.SetRestrictKeyInput;
            //txtSearch.KeyUp += CommonLib.CtrlUtil.FilterRestrictChar;

            dtPeriodBegin.KeyPress += CtrlUtil.SetNextControl;
            dtPeriodEnd.KeyPress   += CtrlUtil.SetNextControl;

            dtPeriodBegin.Format = Common.CurrentUserInfomation.DateFormatString;
            dtPeriodEnd.Format   = Common.CurrentUserInfomation.DateFormatString;

            InventoryPeriodBIZ biz = new InventoryPeriodBIZ();
            InventoryPeriodDTO dto = biz.LoadCurrentPeriodWithQueryRange();

            dtPeriodBegin.NZValue = dto.PERIOD_BEGIN_DATE;
            dtPeriodEnd.NZValue   = dto.PERIOD_END_DATE;
            LoadData(dto.PERIOD_BEGIN_DATE, dto.PERIOD_END_DATE);
        }
コード例 #6
0
        private void InitialScreen()
        {
            InitailSpread();
            InitialComboBox();

            //NZString YearMonth = new NZString(null, CommonLib.Common.GetDatabaseDateTime().ToString("yyyyMM"));
            //txtSearch.KeyPress += CommonLib.CtrlUtil.SetRestrictKeyInput;
            //txtSearch.KeyUp += CommonLib.CtrlUtil.FilterRestrictChar;

            dtPeriodBegin.Format = CommonLib.Common.CurrentUserInfomation.DateFormatString;
            dtPeriodEnd.Format   = CommonLib.Common.CurrentUserInfomation.DateFormatString;

            InventoryPeriodBIZ biz = new InventoryPeriodBIZ();
            InventoryPeriodDTO dto = biz.LoadCurrentPeriodWithQueryRange();

            if (dto != null)
            {
                dtPeriodBegin.Value = dto.PERIOD_BEGIN_DATE.StrongValue;
                dtPeriodEnd.Value   = dto.PERIOD_END_DATE.StrongValue;
            }
            LoadData();
        }
コード例 #7
0
        private void InitialScreen()
        {
            InitailSpread();
            InitialComboBox();
            InitialFormat();

            CtrlUtil.EnabledControl(false, txtAmount, txtQty);

            dtPeriodBegin.KeyPress += CtrlUtil.SetNextControl;
            dtPeriodEnd.KeyPress   += CtrlUtil.SetNextControl;

            //txtSearch.KeyPress += CommonLib.CtrlUtil.SetRestrictKeyInput;
            //txtSearch.KeyUp += CommonLib.CtrlUtil.FilterRestrictChar;

            InventoryPeriodBIZ biz = new InventoryPeriodBIZ();
            InventoryPeriodDTO dto = biz.LoadCurrentPeriodWithQueryRange();

            if (dto != null)
            {
                dtPeriodBegin.Value = dto.PERIOD_BEGIN_DATE.StrongValue;
                dtPeriodEnd.Value   = dto.PERIOD_END_DATE.StrongValue;
            }
            LoadData();
        }