// F5ボタン(参照) クリック
        public override void btnF5_Click(object sender, RoutedEventArgs e)
        {
            if (activeControl == null)
            {
                return;
            }

            switch (activeControl.Name)
            {
            case "utlPurchase":
            case "utlSummingUp":
                Utl_MstText mst = (Utl_MstText)activeControl;
                mst.ShowList();
                break;

            case "datPaymentYmd":
            case "datPaymentPlanDay":
                ExDatePicker dt = (ExDatePicker)activeControl;
                dt.ShowCalender();
                break;

            default:
                break;
            }
        }
        // F5ボタン(参照) クリック
        public override void btnF5_Click(object sender, RoutedEventArgs e)
        {
            if (activeControl == null)
            {
                return;
            }
            switch (activeControl.Name)
            {
            case "utlEstimateNo_F":
            case "utlEstimateNo_T":
                Utl_InpNoText inp = (Utl_InpNoText)activeControl;
                inp.ShowList();
                break;

            case "datOrderYmd_F":
            case "datOrderYmd_T":
            case "datNokiYmd_F":
            case "datNokiYmd_T":
                ExDatePicker dt = (ExDatePicker)activeControl;
                dt.ShowCalender();
                break;

            case "utlPerson_F":
            case "utlPerson_T":
            case "utlCustomer":
            case "utlSupply":
            case "utlCommodity":
                Utl_MstText mst = (Utl_MstText)activeControl;
                mst.ShowList();
                break;

            default:
                break;
            }
        }
예제 #3
0
        public static void InitDate(DataInitWhere.geDateKbn DateKbn, ref ExDatePicker dpFrom, ref ExDatePicker dpTo)
        {
            DateTime dtNow    = DateTime.Now;
            string   strNow   = DateTime.Now.ToString("yyyy/MM") + "/01";
            DateTime datStart = ExCast.zConvertToDate(strNow);

            dpFrom.SelectedDate = null;
            dpTo.SelectedDate   = null;

            switch (DateKbn)
            {
            case DataInitWhere.geDateKbn.Month:
                dpFrom.SelectedDate = datStart;
                dpFrom.Text         = datStart.ToString("yyyy/MM/dd");
                dpTo.SelectedDate   = datStart.AddMonths(1).AddDays(-1);
                dpTo.Text           = datStart.AddMonths(1).AddDays(-1).ToString("yyyy/MM/dd");
                break;

            case DataInitWhere.geDateKbn.Today:
                dpFrom.SelectedDate = dtNow;
                dpFrom.Text         = dtNow.ToString("yyyy/MM/dd");
                dpTo.SelectedDate   = dtNow;
                dpTo.Text           = dtNow.ToString("yyyy/MM/dd");
                break;
            }
        }
예제 #4
0
        // F5ボタン(参照) クリック
        public override void btnF5_Click(object sender, RoutedEventArgs e)
        {
            if (activeControl == null)
            {
                return;
            }
            switch (activeControl.Name)
            {
            case "datReceiptYmd_F":
            case "datReceiptYmd_T":
                ExDatePicker dt = (ExDatePicker)activeControl;
                dt.ShowCalender();
                break;

            case "utlPerson_F":
            case "utlPerson_T":
            case "utlInvoice":
                Utl_MstText mst = (Utl_MstText)activeControl;
                mst.ShowList();
                break;

            default:
                break;
            }
        }
예제 #5
0
        // F5ボタン(参照) クリック
        public override void btnF5_Click(object sender, RoutedEventArgs e)
        {
            if (activeControl == null)
            {
                return;
            }
            switch (activeControl.Name)
            {
            //case "utlInvoice_F":
            //case "utlEstimateNo_T":
            //    Utl_InpNoText inp = (Utl_InpNoText)activeControl;
            //    inp.ShowList();
            //    break;
            case "datPaymentCloseYmd_F":
            case "datPaymentCloseYmd_T":
            case "datIssueYmd":
                ExDatePicker dt = (ExDatePicker)activeControl;
                dt.ShowCalender();
                break;

            case "utlInvoice_F":
            case "utlInvoice_T":
            case "utlSummingUp":
                Utl_MstText mst = (Utl_MstText)activeControl;
                mst.ShowList();
                break;

            default:
                break;
            }
        }
예제 #6
0
        public static void InitDateYm(ref ExDatePicker dp)
        {
            DateTime dtNow = DateTime.Now;
            DateTime dt    = DateTime.Now.AddMonths(-1);

            dp.SelectedDate = null;
            dp.SelectedDate = dt;
            dp.Text         = dt.ToString("yyyy/MM");
        }
예제 #7
0
        private void InitControl()
        {
            this.IsFocusOn = false;

            this._txtNo = null;
            this._txtReceiptDivisionId = null;
            this._txtReceiptDivisionNm = null;
            this._txtBillSiteDay       = null;
            this._txtPrice             = null;
            this._txtDetailMemo        = null;

            SetControl();
        }
예제 #8
0
        private void txtBillSiteDay_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            beforeValueDlg = "";
            if (_entityListD.Count >= DataForm.CurrentIndex)
            {
                beforeValueDlg = _entityListD[DataForm.CurrentIndex]._bill_site_day;
            }

            if (_txtBillSiteDay == null)
            {
                _txtBillSiteDay = ExVisualTreeHelper.FindDatePicker(this.DataForm, "txtBillSiteDay");
            }

            _txtBillSiteDay.ShowCalender();

            //Dlg_Calender calenderDlg = new Dlg_Calender();
            //calenderDlg = new Dlg_Calender();
            //calenderDlg.Show();
            //calenderDlg.Closed += calenderDlg_Closed;
        }
예제 #9
0
        private void calenderDlg_Closed(object sender, EventArgs e)
        {
            Dlg_Calender dlg = (Dlg_Calender)sender;

            if (dlg.DialogResult == true)
            {
                if (_entityListD.Count > DataForm.CurrentIndex && DataForm.CurrentIndex != -1)
                {
                    _entityListD[DataForm.CurrentIndex]._receipt_division_id = Dlg_MstSearch.this_id;
                    _entityListD[DataForm.CurrentIndex]._receipt_division_nm = Dlg_MstSearch.this_name;
                }
            }
            if (_entityListD.Count > DataForm.CurrentIndex && DataForm.CurrentIndex != -1)
            {
                if (beforeValueDlg != _entityListD[DataForm.CurrentIndex]._receipt_division_id)
                {
                    MstData _mstData = new MstData();
                    _mstData.GetMData(MstData.geMDataKbn.RecieptDivision, new string[] { _entityListD[DataForm.CurrentIndex]._receipt_division_id }, this);
                    _txtBillSiteDay.Focus();
                    _txtBillSiteDay = null;
                }
            }
        }
예제 #10
0
        private void txt_LostFocus(object sender, RoutedEventArgs e)
        {
            Control      ctl = (Control)sender;
            ExTextBox    txt = null;
            ExDatePicker dap = null;
            ComboBox     cmb = null;
            int          i   = beforeSelectedIndex;

            switch (ctl.Name)
            {
            case "txtReceiptDivisionId":
                txt = (ExTextBox)sender;
                if (beforeValue == ExCast.zCStr(txt.Text))
                {
                    return;
                }
                MstData _mstData = new MstData();
                _mstData.GetMData(MstData.geMDataKbn.RecieptDivision, new string[] { ExCast.zCStr(txt.Text), ExCast.zCStr(i) }, this);
                break;

            default:
                break;
            }
        }
예제 #11
0
        // フォーカス・IME制御の為のフォーカス用コントロール設定
        private void SetControl()
        {
            if (this._txtNo != null &&
                this._txtReceiptDivisionId != null &&
                this._txtReceiptDivisionNm != null &&
                this._txtBillSiteDay != null &&
                this._txtPrice != null &&
                this._txtDetailMemo != null)
            {
                SetFocusOn();
            }

            string[] _name = new string[6];
            _name[0] = "txtNo";
            _name[1] = "txtReceiptDivisionId";
            _name[2] = "txtReceiptDivisionNm";
            _name[3] = "txtPrice";
            _name[4] = "txtBillSiteDay";
            _name[5] = "txtDetailMemo";
            List <SlvHanbaiClient.Class.UI.ListControl> lst = ExVisualTreeHelper.FindControlList(this.DataForm, _name);

            for (int i = 0; i < lst.Count; i++)
            {
                switch (lst[i].ctlName)
                {
                case "txtNo":
                    if (this._txtNo == null)
                    {
                        this._txtNo = (ExTextBox)lst[i].ctl;
                    }
                    break;

                case "txtReceiptDivisionId":
                    if (this._txtReceiptDivisionId == null)
                    {
                        this._txtReceiptDivisionId = (ExTextBox)lst[i].ctl;
                    }
                    break;

                case "txtReceiptDivisionNm":
                    if (this._txtReceiptDivisionNm == null)
                    {
                        this._txtReceiptDivisionNm = (ExTextBox)lst[i].ctl;
                    }
                    break;

                case "txtBillSiteDay":
                    if (this._txtBillSiteDay == null)
                    {
                        this._txtBillSiteDay = (ExDatePicker)lst[i].ctl;
                    }
                    break;

                case "txtPrice":
                    if (this._txtPrice == null)
                    {
                        this._txtPrice = (ExTextBox)lst[i].ctl;
                    }
                    break;

                case "txtDetailMemo":
                    if (this._txtDetailMemo == null)
                    {
                        this._txtDetailMemo = (ExTextBox)lst[i].ctl;
                    }
                    break;
                }
            }

            SetFocusOn();
        }