本文整理汇总了C#中SAPbouiCOM.Button类的典型用法代码示例。如果您正苦于以下问题:C# Button类的具体用法?C# Button怎么用?C# Button使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Button类属于SAPbouiCOM命名空间,在下文中一共展示了Button类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ClearUnManagedObject
private void ClearUnManagedObject() {
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();
}
示例2: ET_1_BFItemPressed
public virtual bool ET_1_BFItemPressed(ItemEvent pVal) {
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
switch (oForm.Mode)
{
case BoFormMode.fm_ADD_MODE:
if (CheckValues() == false)
{
return false;
}
break;
case BoFormMode.fm_EDIT_MODE:
break;
case BoFormMode.fm_FIND_MODE:
break;
case BoFormMode.fm_OK_MODE:
break;
case BoFormMode.fm_PRINT_MODE:
break;
case BoFormMode.fm_UPDATE_MODE:
if (CheckValues() == false)
{
return false;
}
break;
case BoFormMode.fm_VIEW_MODE:
break;
default:
break;
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
return true;
}
示例3: ET_btnFIND_AFItemPressed
public virtual void ET_btnFIND_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnFIND").Specific));
// ADD YOUR ACTION CODE HERE ...
// 추가중인 행 삭제
DataTableDeleteRows("I");
// 조회
FindData(oForm);
// 상담이력 조회
FindSubData(oForm, 0);
}
示例4: ET_btnSTOP_BFClick
public virtual bool ET_btnSTOP_BFClick(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnSTOP").Specific));
// ADD YOUR ACTION CODE HERE ...
string strNowDate = oForm.Items.Item("edtSTOPDT").Specific.Value; //oForm.DataSources.UserDataSources.Item("edtSTOPDT").ValueEx;
if (String.IsNullOrEmpty(strNowDate))
{
B1Connections.theAppl.StatusBar.SetText("중지 일자가 입력되지 않았습니다.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
//oForm.Items.Item("btnSTOP").Click(0);
return false;
}
return true;
}
示例5: ET_btnADDR2_AFItemPressed
public virtual void ET_btnADDR2_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnADDR2").Specific));
// ADD YOUR ACTION CODE HERE ...
OpenPopup_Address(oForm, "MST_거리주소", SO.SO_COMMON_HRD.ZipCodeTypes.Road);
}
示例6: ET_1_BFClick
public virtual bool ET_1_BFClick(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
// ADD YOUR ACTION CODE HERE ...
if (oForm.Mode == BoFormMode.fm_ADD_MODE || oForm.Mode == BoFormMode.fm_UPDATE_MODE)
{
if (!BeforSaveData_MasterValidation(oForm))
return false;
if (!BeforSaveData_LineValidation(oForm))
return false;
if (oForm.Mode == BoFormMode.fm_ADD_MODE)
{
// 저장전 독자코드가 존재하면 새로운 독자코드를 채번하고 라인데이터에 배송코드에도 적용하도록 한다.
if (GetCodeExists(oForm))
SeNewCodeApply(oForm);
}
}
return true;
}
示例7: ET_btnCREATE_AFItemPressed
public virtual void ET_btnCREATE_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnCREATE").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
string strChildFormID = oForm.DataSources.UserDataSources.Item("cFORMUID").Value;
if (!FN.GetFormExistsChk(strChildFormID))
{
KIS_SO0032F_HRD SO0032F_HRD = new KIS_SO0032F_HRD();
SO0032F_HRD.A00_SubFormInit(oForm.UniqueID);
SO0032F_HRD = null;
}
}
catch (Exception)
{
throw;
}
}
示例8: ET_1_AFItemPressed
public virtual void ET_1_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
// ADD YOUR ACTION CODE HERE ...
if (oForm.Mode == BoFormMode.fm_ADD_MODE)
{
SetDefultMasterData(oForm);
}
else if (oForm.Mode == BoFormMode.fm_OK_MODE)
{
oForm.Freeze(true);
// 1. 저장후 선택된 행 초기화 되기때문에 다시 선택
LastSelectedMatrixRow_Select(oForm);
// 2. 배송리스트 선택하고 상담이력 다시 조회
//FindSubData(oForm, gDeliverySelect);(데이터 로드에서 처리)
oForm.Freeze(false);
}
}
示例9: ET_1_BFItemPressed
public virtual bool ET_1_BFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("1").Specific));
// ADD YOUR ACTION CODE HERE ...
FN.SetUserDateSource_Clear(ref oForm);
return true;
}
示例10: ET_btnUPDATE_AFItemPressed
public virtual void ET_btnUPDATE_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnUPDATE").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
if (CFL.COMMON_MESSAGE("?", "독자마스터에 배송처를 반영하시겠습니까?") != 1)
{
return;
}
StringBuilder sb = new StringBuilder();
string query = string.Empty;
string DocEntry = string.Empty;
string U_STATUS = string.Empty;
DocEntry = FN.GetItemValue(ref oForm, "edtDOCNO");
try
{
B1Connections.diCompany.StartTransaction();
string U_RELDT = B1Connections.diCompany.GetCompanyDate().ToString("yyyy-MM-dd");//임포트 실행일
string U_RELTIME = B1Connections.diCompany.GetCompanyTime().Replace(":","");//임포트 실행시간
string U_RELUSER = B1Connections.diCompany.UserName;//임포트 실행 사용자
query = string.Format(" EXEC KIS_SP_SO0060A_HRD @DocEntry='{0}', @U_RELDT='{1}', @U_RELTIME='{2}', @U_RELUSER='{3}' ", DocEntry, U_RELDT, U_RELTIME, U_RELUSER);
string[] rError = FN.GetRecordsetArrayValue(query);
if (B1Connections.diCompany.InTransaction)
{
B1Connections.diCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit);
}
// 재조회
SetFormLoadFromDBDatasource(DocEntry);
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
if (B1Connections.diCompany.InTransaction == true)
{
B1Connections.diCompany.EndTransaction(BoWfTransOpt.wf_RollBack);
}
}
finally
{
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
}
示例11: ET_btnUPDATE_BFItemPressed
public virtual bool ET_btnUPDATE_BFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnUPDATE").Specific));
// ADD YOUR ACTION CODE HERE ...
string cboSTATUS = FN.GetItemValue(ref oForm, "cboSTATUS");
string edtDOCNO = FN.GetItemValue(ref oForm, "edtDOCNO");
if (oForm.Mode == BoFormMode.fm_ADD_MODE)
{
return false;
}
if (edtDOCNO == "")
{
FN.Trace("문서번호를 먼저 생성해 주세요!..", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
return false;
}
if (cboSTATUS == "S")
{
FN.Trace("이미 처리된 자료입니다.", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
return false;
}
oMatrix = oForm.Items.Item("mtx").Specific;
if (oMatrix.RowCount == 0)
{
FN.Trace("자료가 존재하지 않습니다.", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
return false;
}
return true;
}
示例12: ET_btnPATH_AFItemPressed
public virtual void ET_btnPATH_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnPATH").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
string strFileName = CFL.FileDialog(AddOnBase.eFileDialog.en_OpenFile, "Excel 97 - 2003 통합 문서 (*.xls)|*.xls|Excel 통합 문서 (*.xlsx)|*.xlsx|텍스트 파일 (*.csv)|*.csv", true);
if (strFileName != "")
{
oForm.DataSources.UserDataSources.Item("edtPATH").ValueEx = strFileName;
this.ImportData(oForm);
// U_STATUS
//FN.SetDataSourceValue(oForm, "@KIS_SO0060T_HRD.U_STATUS", "F");
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
}
示例13: ET_btnDOWN_AFItemPressed
public virtual void ET_btnDOWN_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnDOWN").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
//string strFileName = CFL.FolderDialog();
//ExcelSave(strFileName);
//템플릿 폴더열기
string strAppPath = System.IO.Directory.GetCurrentDirectory();
strAppPath = strAppPath + @"\Templates\KIS_SO0060A_HRD";
FN.FolrderOpen(strAppPath);
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
}
示例14: ClearUnManagedObject
private void ClearUnManagedObject()
{
if (oMatrix != null) { Marshal.ReleaseComObject(oMatrix); } oMatrix = null;
if (oButton != null) { Marshal.ReleaseComObject(oButton); } oButton = null;
if (oDB_M != null) { Marshal.ReleaseComObject(oDB_M); } oDB_M = null;
if (oDB_1 != null) { Marshal.ReleaseComObject(oDB_1); } oDB_1 = null;
//if (uploadDataTable != null) { Marshal.ReleaseComObject(uploadDataTable); } uploadDataTable = null;
if ((oForm != null)) { Marshal.ReleaseComObject(oForm); } oForm = null;
// ADD YOUR ACTION CODE HERE ...
System.GC.Collect();
System.GC.WaitForPendingFinalizers();
}
示例15: ET_btnSAVE_AFItemPressed
public virtual void ET_btnSAVE_AFItemPressed(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oButton = ((SAPbouiCOM.Button)(oForm.Items.Item("btnSAVE").Specific));
// ADD YOUR ACTION CODE HERE ...
UDO_Add_Data();
}