// フォーカス・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(); }
// フォーカス・IME制御の為のフォーカス用コントロール設定 private void SetControl() { if (this._txtNo != null && this._cmbBreakdown != null && this._txtDeliverDivision != null && this._txtGoodsId != null && this._txtGoodsNm != null && this._cboUnit != null && this._txtEnterNum != null && this._txtCaseNum != null && this._txtNumber != null && this._txtUnitPrice != null && this._txtPrice != null && this._cboTaxDivision != null && this._txtDetailMemo != null) { SetFocusOn(); } string[] _name = new string[13]; _name[0] = "txtNo"; _name[1] = "cmbBreakdown"; _name[2] = "txtDeliverDivision"; _name[3] = "txtGoodsId"; _name[4] = "txtGoodsNm"; _name[5] = "cboUnit"; _name[6] = "txtCaseNum"; _name[7] = "txtEnterNum"; _name[8] = "txtNumber"; _name[9] = "txtUnitPrice"; _name[10] = "txtPrice"; _name[11] = "cboTaxDivision"; _name[12] = "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 "cmbBreakdown": if (this._cmbBreakdown == null) { this._cmbBreakdown = (ComboBox)lst[i].ctl; } break; case "txtDeliverDivision": if (this._txtDeliverDivision == null) { this._txtDeliverDivision = (ExTextBox)lst[i].ctl; } break; case "txtGoodsId": if (this._txtGoodsId == null) { this._txtGoodsId = (ExTextBox)lst[i].ctl; } break; case "txtGoodsNm": if (this._txtGoodsNm == null) { this._txtGoodsNm = (ExTextBox)lst[i].ctl; } break; case "cboUnit": if (this._cboUnit == null) { this._cboUnit = (ComboBox)lst[i].ctl; } break; case "txtCaseNum": if (this._txtCaseNum == null) { this._txtCaseNum = (ExTextBox)lst[i].ctl; } break; case "txtEnterNum": if (this._txtEnterNum == null) { this._txtEnterNum = (ExTextBox)lst[i].ctl; } break; case "txtNumber": if (this._txtNumber == null) { this._txtNumber = (ExTextBox)lst[i].ctl; } break; case "txtUnitPrice": if (this._txtUnitPrice == null) { this._txtUnitPrice = (ExTextBox)lst[i].ctl; } break; case "txtPrice": if (this._txtPrice == null) { this._txtPrice = (ExTextBox)lst[i].ctl; } break; case "cboTaxDivision": if (this._cboTaxDivision == null) { this._cboTaxDivision = (ComboBox)lst[i].ctl; } break; case "txtDetailMemo": if (this._txtDetailMemo == null) { this._txtDetailMemo = (ExTextBox)lst[i].ctl; } break; } } SetFocusOn(); }