本文整理汇总了C#中SAPbouiCOM.EditText类的典型用法代码示例。如果您正苦于以下问题:C# EditText类的具体用法?C# EditText怎么用?C# EditText使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EditText类属于SAPbouiCOM命名空间,在下文中一共展示了EditText类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SubFormInit
public void SubFormInit(string KeyValue)
{
this.LoadForm();
oForm = B1Connections.theAppl.Forms.Item(formuid);
oForm.Freeze(true);
this.Act1_FormInit();
oForm.Freeze(false);
oForm.Visible = true;
oForm.Mode = BoFormMode.fm_FIND_MODE;
oEditText = (SAPbouiCOM.EditText)oForm.Items.Item("edtCODE").Specific;
oEditText.Value = KeyValue;
SAPbouiCOM.Item oItem = oForm.Items.Item("1");
oItem.Click();
oItem = null;
}
示例2: ET_edtDATE_AFKeyDown
public virtual void ET_edtDATE_AFKeyDown(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtDATE").Specific));
// ADD YOUR ACTION CODE HERE ...
if (oForm.Items.Item("edtDATE").Specific.value.Length > 4)
{
oForm.DataSources.UserDataSources.Item("edtDATE").ValueEx = oForm.Items.Item("edtDATE").Specific.value;
oForm.DataSources.UserDataSources.Item("edtDATE").ValueEx = FN.Left(oForm.DataSources.UserDataSources.Item("edtDATE").Value, 4);
B1Connections.theAppl.StatusBar.SetText("4자 이상 입력할수없습니다.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
}
}
示例3: ClearUnManagedObject
private void ClearUnManagedObject()
{
if (oComboBox != null) { Marshal.ReleaseComObject(oComboBox); } oComboBox = null;
if (oGrid != null) { Marshal.ReleaseComObject(oGrid); } oGrid = null;
if (oUDS != null) { Marshal.ReleaseComObject(oUDS); } oUDS = null;
//if (gDs.Tables[oForm.UniqueID + "_Deliver"] != null) gDs.Tables[oForm.UniqueID + "_Deliver"] = null;
//if (gDs.Tables[oForm.UniqueID + "_Call"] != null) gDs.Tables[oForm.UniqueID + "_Call"] = null;
if (gDs != null)
{
if(gDs.Tables.Contains(oForm.UniqueID + "_Deliver"))
{
gDs.Tables.Remove(oForm.UniqueID + "_Deliver");
}
if (gDs.Tables.Contains(oForm.UniqueID + "_Call"))
{
gDs.Tables.Remove(oForm.UniqueID + "_Call");
}
}
if (oDB_M != null) { Marshal.ReleaseComObject(oDB_M); } oDB_M = null;
if (oMatrix != null) { Marshal.ReleaseComObject(oMatrix); } oMatrix = null;
if (oDB1_O != null) { Marshal.ReleaseComObject(oDB1_O); } oDB1_O = null;
if (oDB1_Z != null) { Marshal.ReleaseComObject(oDB1_Z); } oDB1_Z = null;
if (oDB2_O != null) { Marshal.ReleaseComObject(oDB2_O); } oDB2_O = null;
if (oDB2_Z != null) { Marshal.ReleaseComObject(oDB2_Z); } oDB2_Z = null;
if (oRS != null) { Marshal.ReleaseComObject(oRS); } oRS = null;
if (oEditText != null) { Marshal.ReleaseComObject(oEditText); } oEditText = null;
if ((oForm != null))
{
Marshal.ReleaseComObject(oForm);
}
oForm = null;
// ADD YOUR ACTION CODE HERE ...
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
}
示例4: ET_edtCALLPER_AFValidate
public virtual void ET_edtCALLPER_AFValidate(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtCALLPER").Specific));
// ADD YOUR ACTION CODE HERE ....
if (pVal.ItemChanged == true)
{
if (oEditText.Value == "")
{
oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
oDB_M.SetValue("U_CALLNM", 0, "");
}
}
}
示例5: ClearUnManagedObject
private void ClearUnManagedObject()
{
if (oUDS != null) { Marshal.ReleaseComObject(oUDS); } oUDS = null;
if (oComboBox != null) { Marshal.ReleaseComObject(oComboBox); } oComboBox = null;
if (oEditText != null) { Marshal.ReleaseComObject(oEditText); } oEditText = null;
if (oGrid != null) { Marshal.ReleaseComObject(oGrid); } oGrid = null;
if (oButton != null) { Marshal.ReleaseComObject(oButton); } oButton = null;
if ((oForm != null)) { Marshal.ReleaseComObject(oForm); } oForm = null;
// ADD YOUR ACTION CODE HERE ...
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
}
示例6: ET_edtACCTCD_BFValidate
public virtual bool ET_edtACCTCD_BFValidate(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtACCTCD").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
if (oEditText.Value == "" && pVal.ItemChanged == true)
{
oForm.DataSources.UserDataSources.Item("edtACCOUNT").Value = "";
oForm.DataSources.UserDataSources.Item("edtACCTCD").Value = "";
oForm.DataSources.UserDataSources.Item("edtACCTNM").Value = "";
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
return true;
}
示例7: ClearUnManagedObject
private void ClearUnManagedObject() {
if ( oEditText != null ) { Marshal.ReleaseComObject(oEditText); } oEditText = null;
if ( oButtonCombo != null ) { Marshal.ReleaseComObject(oButtonCombo); } oButtonCombo = null;
if ( oButton != null ) { Marshal.ReleaseComObject(oButton); } oButton = null;
if ( oMatrix != null ) { Marshal.ReleaseComObject(oMatrix); } oMatrix = null;
if ((oForm != null)) {
Marshal.ReleaseComObject(oForm);
}
oForm = null;
// ADD YOUR ACTION CODE HERE ...
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
}
示例8: ET_edtORDERNM_BFValidate
public virtual bool ET_edtORDERNM_BFValidate(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtORDERNM").Specific));
// ADD YOUR ACTION CODE HERE ...
SAPbouiCOM.DBDataSource oKIS_SD0030T_HRD = oForm.DataSources.DBDataSources.Item("@KIS_SD0030T_HRD");
try
{
if (pVal.ItemChanged)
{
if (string.IsNullOrEmpty(oEditText.Value))
{
oKIS_SD0030T_HRD.SetValue("U_ORDERCD", 0, "");
oKIS_SD0030T_HRD.SetValue("U_ORDERNM", 0, "");
oKIS_SD0030T_HRD.SetValue("U_ORDERRAT", 0, "0");
this.SetMatrixRateColumn("U_ORDERRAT", "0");
}
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
}
finally
{
oKIS_SD0030T_HRD = null;
}
return true;
}
示例9: ClearUnManagedObject
private void ClearUnManagedObject() {
if ( oFolder != null ) { Marshal.ReleaseComObject(oFolder); } oFolder = null;
if (oEditText != null) { Marshal.ReleaseComObject(oEditText); } oEditText = null;
if (oButton != null) { Marshal.ReleaseComObject(oButton); } oButton = null;
if (oComboBox != null) { Marshal.ReleaseComObject(oComboBox); } oComboBox = null;
if ((oForm != null)) { Marshal.ReleaseComObject(oForm); } oForm = null;
if ((oGrid1 != null)) { Marshal.ReleaseComObject(oGrid1); } oForm = null;
if ((oGrid2 != null)) { Marshal.ReleaseComObject(oGrid2); } oForm = null;
if ((oGrid3 != null)) { Marshal.ReleaseComObject(oGrid3); } oForm = null;
if ((oGrid4 != null)) { Marshal.ReleaseComObject(oGrid4); } oForm = null;
if ((oRS != null)) { Marshal.ReleaseComObject(oRS); } oForm = null;
// ADD YOUR ACTION CODE HERE ...
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
GRIDCODE = "";
}
示例10: ET_edtCENT_T_AFChooseFromList
public virtual void ET_edtCENT_T_AFChooseFromList(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtCENT_T").Specific));
// ADD YOUR ACTION CODE HERE ...
SetChooseFromListValue(oForm, pVal);
}
示例11: ET_edtAC09_BFValidate
public virtual bool ET_edtAC09_BFValidate(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtAC09").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
if (oEditText.Value == "" && pVal.ItemChanged == true)
{
SAPbouiCOM.StaticText oStatic = (SAPbouiCOM.StaticText)oForm.Items.Item("sttAC09_1").Specific;
oStatic.Caption = "";
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
return true;
}
示例12: ET_edtAC09_AFChooseFromList
public virtual void ET_edtAC09_AFChooseFromList(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtAC09").Specific));
// ADD YOUR ACTION CODE HERE ...
SetChooseFromList_AfterAction(pVal, "AC09");
}
示例13: ET_edtCOAMCD_AFValidate
public virtual void ET_edtCOAMCD_AFValidate(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtCOAMCD").Specific));
// ADD YOUR ACTION CODE HERE ....
if (oEditText.Value == "")
{
oDB_M.SetValue("U_COAMCD", 0, "");
oDB_M.SetValue("U_COMAMT", 0, "");
oForm.Items.Item("edtCOMAMCD").Enabled = false;
oDB_M.SetValue("U_COMAMCD", 0, "");
oDB_M.SetValue("U_COMAMNM", 0, "");
}
else
oForm.Items.Item("edtCOMAMCD").Enabled = true;
}
示例14: ET_edtDISACCD_AFValidate
public virtual void ET_edtDISACCD_AFValidate(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtDISACCD").Specific));
// ADD YOUR ACTION CODE HERE ....
if (pVal.ItemChanged == true)
{
if (oEditText.Value == "")
{
oDB_M.SetValue("U_DISACCD", 0, "");
oDB_M.SetValue("U_DISACCT", 0, "");
//oForm.DataSources.UserDataSources.Item("edtDISACCD").Value = "";
//oForm.DataSources.UserDataSources.Item("edtDISACCT").Value = "";
}
}
}
示例15: ET_edtBPNM_AFChooseFromList
public virtual void ET_edtBPNM_AFChooseFromList(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oEditText = ((SAPbouiCOM.EditText)(oForm.Items.Item("edtBPNM").Specific));
// ADD YOUR ACTION CODE HERE ...
SAPbouiCOM.DataTable oDataTable = null;
oDataTable = FN.GetCFLSelectedObjects(pVal);
SAPbouiCOM.DBDataSource oKIS_SD0030T_HRD = oForm.DataSources.DBDataSources.Item("@KIS_SD0030T_HRD");
try
{
if (oDataTable != null)
{
oKIS_SD0030T_HRD.SetValue("U_BPCD", 0, oDataTable.GetValue("CardCode", 0).ToString());
oKIS_SD0030T_HRD.SetValue("U_BPNM", 0, oDataTable.GetValue("CardName", 0).ToString());
oKIS_SD0030T_HRD.SetValue("U_BPRATE", 0, _BPRATE.ToString());
gl_U_VATCDBP = oDataTable.GetValue("ECVatGroup", 0).ToString();
SetMatrixColumnVATGRP(gl_U_VATCD, gl_U_VATCDBP);
this.SetMatrixRateColumn("U_BPRATE", _BPRATE.ToString());
if (oForm.Mode == BoFormMode.fm_OK_MODE)
oForm.Mode = BoFormMode.fm_UPDATE_MODE;
}
else
{
if (string.IsNullOrEmpty(oEditText.Value) == false)
{
gl_U_VATCDBP = FN.GetRecordsetValue(string.Format("SELECT ECVatGroup FROM OCRD WHERE CardCode = '{0}'", oEditText.Value));
}
else
{
gl_U_VATCDBP = string.Empty;
}
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
}
finally
{
oKIS_SD0030T_HRD = null;
oDataTable = null;
}
}