private void DataForm_ContentLoaded(object sender, DataFormContentLoadEventArgs e)
        {
            if (this.DataForm.CurrentIndex >= 1)
            {
                this.txtBefore.Foreground = new SolidColorBrush(Colors.Black);
            }
            else
            {
                this.txtBefore.Foreground = new SolidColorBrush(Colors.DarkGray);
            }
            if (this.DataForm.CurrentIndex < _entityListD.Count - 1)
            {
                this.txtNext.Foreground = new SolidColorBrush(Colors.Black);
            }
            else
            {
                this.txtNext.Foreground = new SolidColorBrush(Colors.DarkGray);
            }

            switch (GetUserControlFKey().gFunctionKeyEnable)
            {
                case Utl_FunctionKey.geFunctionKeyEnable.New:
                    // 行番号設定
                    _entityListD[DataForm.CurrentIndex]._rec_no = DataForm.CurrentIndex + 1;
                    _entityListD[DataForm.CurrentIndex]._payment_cash_division_id = this._entityH._payment_division_id;
                    _entityListD[DataForm.CurrentIndex]._payment_cash_division_nm = this._entityH._payment_division_nm;
                    break;
            }

            InitControl();
        }
 private void dfContract_ContentLoaded(object sender, DataFormContentLoadEventArgs e)
 {
     new Utils().setToolTip(dfContract);
     accordionControl.SelectedItem = accordionChartItem;
 }
        private void DataForm_ContentLoaded(object sender, DataFormContentLoadEventArgs e)
        {
            if (this.DataForm.CurrentIndex >= 1)
            {
                this.txtBefore.Foreground = new SolidColorBrush(Colors.Black);
            }
            else
            {
                this.txtBefore.Foreground = new SolidColorBrush(Colors.DarkGray);
            }
            if (this.DataForm.CurrentIndex < _entityListD.Count - 1)
            {
                this.txtNext.Foreground = new SolidColorBrush(Colors.Black);
            }
            else
            {
                this.txtNext.Foreground = new SolidColorBrush(Colors.DarkGray);
            }

            switch (GetUserControlFKey().gFunctionKeyEnable)
            {
                case Utl_FunctionKey.geFunctionKeyEnable.New:
                    // 行番号設定
                    _entityListD[DataForm.CurrentIndex]._rec_no = DataForm.CurrentIndex + 1;

                    // コンボボックス初期選択
                    List<string> lst;
                    lst = MeiNameList.GetListMei(MeiNameList.geNameKbn.BREAKDOWN_ID);
                    _entityListD[DataForm.CurrentIndex]._breakdown_nm = lst[0];
                    _entityListD[DataForm.CurrentIndex]._breakdown_id = MeiNameList.GetID(MeiNameList.geNameKbn.BREAKDOWN_ID, lst[0]);

                    lst = MeiNameList.GetListMei(MeiNameList.geNameKbn.DELIVER_DIVISION_ID);
                    _entityListD[DataForm.CurrentIndex]._deliver_division_nm = lst[0];
                    _entityListD[DataForm.CurrentIndex]._deliver_division_id = MeiNameList.GetID(MeiNameList.geNameKbn.DELIVER_DIVISION_ID, lst[0]);

                    lst = MeiNameList.GetListMei(MeiNameList.geNameKbn.UNIT_ID);
                    _entityListD[DataForm.CurrentIndex]._unit_nm = lst[0];
                    _entityListD[DataForm.CurrentIndex]._unit_id = MeiNameList.GetID(MeiNameList.geNameKbn.UNIT_ID, lst[0]);

                    lst = MeiNameList.GetListMei(MeiNameList.geNameKbn.TAX_DIVISION_ID);
                    _entityListD[DataForm.CurrentIndex]._tax_division_nm = lst[0];
                    _entityListD[DataForm.CurrentIndex]._tax_division_id = MeiNameList.GetID(MeiNameList.geNameKbn.TAX_DIVISION_ID, lst[0]);

                    break;
            }

            InitControl();
        }
 /// <summary>
 /// Raises the ContentLoading event.
 /// </summary>
 /// <param name="e">The event args.</param>
 protected virtual void OnContentLoading(DataFormContentLoadEventArgs e)
 {
     EventHandler<DataFormContentLoadEventArgs> handler = this.ContentLoading;
     if (handler != null)
     {
         handler(this, e);
     }
 }
示例#5
0
 /// <summary>
 /// 把用户输入框设置为焦点
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void LoginForm_ContentLoaded(object sender, DataFormContentLoadEventArgs e)
 {
     if (!isDfFocused)
     {
         this.userNameTextBox.Focus();
         this.isDfFocused = true;
     }
 }
        private void RecordDataFormContentLoaded(object sender, DataFormContentLoadEventArgs e)
        {
            var cmbConsumer = RecordDataForm.FindNameInContent("CmbConsumer") as ComboBox;
            if (cmbConsumer != null)
            {
                cmbConsumer.IsEnabled = e.Mode != DataFormMode.ReadOnly;
            }

            var cmbAccountType = RecordDataForm.FindNameInContent("CmbAccountType") as ComboBox;
            if (cmbAccountType != null)
            {
                cmbAccountType.IsEnabled = e.Mode != DataFormMode.ReadOnly;
            }
        }