本文整理汇总了C#中SAPbouiCOM.ComboBox类的典型用法代码示例。如果您正苦于以下问题:C# ComboBox类的具体用法?C# ComboBox怎么用?C# ComboBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ComboBox类属于SAPbouiCOM命名空间,在下文中一共展示了ComboBox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ET_BFFormDataLoad
public virtual bool ET_BFFormDataLoad(BusinessObjectInfo pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
// ADD YOUR ACTION CODE HERE ...
try
{
SetComboBox_Method(oForm);
oComboBox = oForm.Items.Item("cboACCTCD").Specific;
FN.SetComboClear(ref oComboBox);
oDB_M.SetValue("U_ACCTCD", 0, "");
FN.SetComboBoxValidValues(oForm, " SELECT U_RMK1, U_SMLNM FROM [@KIS_AD00201] WHERE Code = 'SO19' AND U_SMLCD IN ('U201', 'U204', 'U205') ", "cboACCTCD", FN.Enum_WholeTp.m_Space, "");
}
catch (Exception)
{
throw;
}
return true;
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:21,代码来源:KIS_SO0320A_HRD.cs
示例2: 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();
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:13,代码来源:KIS_SO0390B_HRD.cs
示例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();
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:37,代码来源:KIS_SO0030A_HRD.cs
示例4: StatusChange
//고과상태변경
public virtual bool StatusChange(string Status)
{
oRS = (SAPbobsCOM.Recordset)B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
StringBuilder pQuery = new StringBuilder();
string sQry = string.Empty;
EXAMCD = oForm.Items.Item("cboYEAR").Specific.Value;
try
{
oComboBox = ((SAPbouiCOM.ComboBox)(oForm.Items.Item("cboSTATUS").Specific));
if (B1Connections.theAppl.MessageBox(oComboBox.Selected.Description + "로 저장하시겠습니까?", 1, "OK", "NO") == 2)
{
return false;
}
if (Status == "U01")
{
#region 고과상태변경
pQuery.Clear();
pQuery.AppendLine(" UPDATE [@KIS_AD00201] SET U_RMK2 = 'U01' ");
pQuery.AppendLine(" WHERE CODE = 'HR01' AND U_USEYN = 'Y' ");
pQuery.AppendLine(" AND U_SMLCD = '{0}' ");
sQry = string.Format(pQuery.ToString(), EXAMCD);
oRS.DoQuery(sQry);
#endregion
}
else if (Status == "U02")
{
string Cnt = FN.GetRecordsetValue(string.Format("SELECT * FROM [@KIS_HR0020M_HRD] WHERE U_EXAMCD = '{0}'", EXAMCD));
if (Cnt != "")
{
if (B1Connections.theAppl.MessageBox("고과마스터가 이미 생성되었습니다로 새로 저장하시겠습니까?", 1, "OK", "NO") == 2)
{
#region 고과상태변경
pQuery.Clear();
pQuery.AppendLine(" UPDATE [@KIS_AD00201] SET U_RMK2 = 'U02' ");
pQuery.AppendLine(" WHERE CODE = 'HR01' AND U_USEYN = 'Y' ");
pQuery.AppendLine(" AND U_SMLCD = '{0}' ");
sQry = string.Format(pQuery.ToString(), EXAMCD);
oRS.DoQuery(sQry);
#endregion
return false;
}
}
pQuery.Clear();
pQuery.AppendLine(" DELETE FROM [@KIS_HR0020M_HRD] WHERE U_EXAMCD = '{0}' ");
pQuery.AppendLine(" DELETE FROM [@KIS_HR00201_HRD] WHERE U_EXAMCD = '{0}' ");
pQuery.AppendLine(" DELETE FROM [@KIS_HR00202_HRD] WHERE U_EXAMCD = '{0}' ");
pQuery.AppendLine(" DELETE FROM [@KIS_HR00203_HRD] WHERE U_EXAMCD = '{0}' ");
pQuery.AppendLine(" DELETE FROM [@KIS_HR00204_HRD] WHERE U_EXAMCD = '{0}' ");
sQry = string.Format(pQuery.ToString(), EXAMCD);
oRS.DoQuery(sQry);
// 고과 마스터 생성
UDO_Add_Data();
#region 고과상태변경
pQuery.Clear();
pQuery.AppendLine(" UPDATE [@KIS_AD00201] SET U_RMK2 = 'U02' ");
pQuery.AppendLine(" WHERE CODE = 'HR01' AND U_USEYN = 'Y' ");
pQuery.AppendLine(" AND U_SMLCD = '{0}' ");
sQry = string.Format(pQuery.ToString(), EXAMCD);
oRS.DoQuery(sQry);
#endregion
if (B1Connections.theAppl.MessageBox("고과마스터생성완료", 1, "확인", "", "") == 1)
{
oForm.Items.Item("btnFIND").Click(BoCellClickType.ct_Regular);
}
}
else if (Status == "U03")
{
#region 고과상태변경
pQuery.Clear();
pQuery.AppendLine(" UPDATE [@KIS_AD00201] SET U_RMK2 = 'U03' ");
pQuery.AppendLine(" WHERE CODE = 'HR01' AND U_USEYN = 'Y' ");
pQuery.AppendLine(" AND U_SMLCD = '{0}' ");
sQry = string.Format(pQuery.ToString(), EXAMCD);
oRS.DoQuery(sQry);
#endregion
B1Connections.theAppl.MessageBox("고과상태 고과시작으로 변경", 1, "확인", "", "");
}
else if (Status == "U08")
{
//점수,등급 계산및 업데이트
oRS.DoQuery("EXEC KIS_SP_HR0010B1_HRD '1',0,0");
#region 고과상태변경
pQuery.Clear();
pQuery.AppendLine(" UPDATE [@KIS_AD00201] SET U_RMK2 = 'U08' ");
pQuery.AppendLine(" WHERE CODE = 'HR01' AND U_USEYN = 'Y' ");
pQuery.AppendLine(" AND U_SMLCD = '{0}' ");
//.........这里部分代码省略.........
开发者ID:wldyd0210,项目名称:TEST,代码行数:101,代码来源:KIS_HR0020B_HRD.cs
示例5: Act2_DataSourcesBinding
/// <summary>
/// 폼(Form)의 아이템들(Items)에 연결이 필요한 데이타소스(DataSource) 형식을 정의합니다.
/// </summary>
private void Act2_DataSourcesBinding() {
// '// ADD YOUR ACTION CODE HERE ...
#region EditText
string ItemUID = "";
ItemUID = "edtEMPNO"; oForm.DataSources.UserDataSources.Add(ItemUID, BoDataType.dt_SHORT_TEXT, 30); FN.SetUserDataBind(oForm, ItemUID);//사원코드
ItemUID = "edtEMPNM"; oForm.DataSources.UserDataSources.Add(ItemUID, BoDataType.dt_SHORT_TEXT, 30); FN.SetUserDataBind(oForm, ItemUID);//사원코드
#endregion
#region ComboBox
string sql = string.Empty;
//string sql = FN.GetSQL("KIS_SF0360A_001");
oRS = (SAPbobsCOM.Recordset)B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
// 기수
oComboBox = (SAPbouiCOM.ComboBox)oForm.Items.Item("cboYEAR").Specific;
sql = string.Format(" SELECT U_SMLCD, U_SMLNM FROM [@KIS_AD00201] WHERE CODE = 'HR01' AND U_USEYN = 'Y'");
FN.QComboBind(ref oComboBox, sql, FN.Enum_WholeTp.m_Nothing, null);
sql = string.Format(" SELECT LEFT(U_SMLNM,4) AS YEAR FROM [@KIS_AD00201] WHERE CODE = 'HR01' AND U_USEYN = 'Y' AND LEFT(U_SMLNM,4) = '" + DateTime.Now.Year.ToString() + "'");
oRS.DoQuery(sql);
oComboBox.Select(oRS.Fields.Item("YEAR").Value.ToString(), BoSearchKey.psk_ByValue);
// 부서
oComboBox = (SAPbouiCOM.ComboBox)oForm.Items.Item("cboDEPT").Specific;
sql = string.Format(" SELECT U_DEPTCD,U_DEPTNM FROM [@KIS_HR00401] WHERE U_USEYN = 'Y'");
oComboBox.ValidValues.Add("", "");
FN.QComboBind(ref oComboBox, sql, FN.Enum_WholeTp.m_Nothing, null);
#endregion
#region ChooseFromList
SAPbouiCOM.Conditions oCons = new SAPbouiCOM.Conditions();
//oCons = FN.GetConditionsWithQuery("CARDTYPE == S");
oCons = null;
FN.SetChooseFromListAdd(oForm, "KIS_HR0120", "edtEMPNO", "U_EMPNO", BoFormItemTypes.it_EXTEDIT, oCons);
#endregion
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:48,代码来源:KIS_HR0060B_HRD.cs
示例6: ET_cboSTATUS_AFComboSelect
public virtual void ET_cboSTATUS_AFComboSelect(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oComboBox = ((SAPbouiCOM.ComboBox)(oForm.Items.Item("cboSTATUS").Specific));
// ADD YOUR ACTION CODE HERE ...
//if (oComboBox.Selected.Value == "U09")
//{
// STATE = false;
//}
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:10,代码来源:KIS_HR0020B_HRD.cs
示例7: Act2_DataSourcesBinding
/// <summary>
/// 폼(Form)의 아이템들(Items)에 연결이 필요한 데이타소스(DataSource) 형식을 정의합니다.
/// </summary>
private void Act2_DataSourcesBinding() {
// '// ADD YOUR ACTION CODE HERE ...
#region ComboBox
string sql = string.Empty;
//string sql = FN.GetSQL("KIS_SF0360A_001");
oRS = (SAPbobsCOM.Recordset)B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
oRS1 = (SAPbobsCOM.Recordset)B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
// 기수
oComboBox = (SAPbouiCOM.ComboBox)oForm.Items.Item("cboYEAR").Specific;
sql = string.Format(" SELECT U_SMLCD, U_SMLNM FROM [@KIS_AD00201] WHERE CODE = 'HR01' AND U_USEYN = 'Y'");
FN.QComboBind(ref oComboBox, sql, FN.Enum_WholeTp.m_Nothing, null);
sql = string.Format(" SELECT LEFT(U_SMLNM,4) AS YEAR FROM [@KIS_AD00201] WHERE CODE = 'HR01' AND U_USEYN = 'Y' AND LEFT(U_SMLNM,4) = '{0}'",DateTime.Now.Year.ToString());
oRS.DoQuery(sql);
oComboBox.Select(oRS.Fields.Item("YEAR").Value.ToString(), BoSearchKey.psk_ByValue);
// 상태
oComboBox = (SAPbouiCOM.ComboBox)oForm.Items.Item("cboSTATUS").Specific;
sql = string.Format(" SELECT U_SMLCD, U_SMLNM FROM [@KIS_AD00201] WHERE CODE = 'HR10' AND U_USEYN = 'Y'");
FN.QComboBind(ref oComboBox, sql, FN.Enum_WholeTp.m_Nothing, null);
sql = string.Format(" SELECT U_RMK2 FROM [@KIS_AD00201] WHERE CODE = 'HR01' AND U_USEYN = 'Y' AND U_SMLCD = '{0}'",oForm.Items.Item("cboYEAR").Specific.Value);
oRS.DoQuery(sql);
oComboBox.Select(oRS.Fields.Item("U_RMK2").Value.ToString(), BoSearchKey.psk_ByValue);
#endregion
// 고과대상자
sql = string.Format(" select COUNT(*) from [@KIS_HR0120M]");
oRS.DoQuery(sql);
oForm.Items.Item("edtPERSON").Specific.Value = oRS.Fields.Item(0).Value.ToString();
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:41,代码来源:KIS_HR0020B_HRD.cs
示例8: Act3_DefualtSetting
/// <summary>
/// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
/// </summary>
private void Act3_DefualtSetting() {
// '// ADD YOUR ACTION CODE HERE ...
#region Form Setting
oForm.DataBrowser.BrowseBy = "Code";
oForm.SupportedModes = -1;
oForm.Settings.EnableRowFormat = false;
oForm.Settings.Enabled = false;
oForm.AutoManaged = true;
oForm.PaneLevel = 1;
#endregion
oForm.Mode = BoFormMode.fm_FIND_MODE;
string strNowDate = B1Connections.diCompany.GetCompanyDate().ToShortDateString();
strNowDate = FN.SetDateFormatToDB(strNowDate, FN.eDateType.p_YYYYMMDD);
oComboBox = oForm.Items.Item("Code").Specific;
FN.SetComboBoxValidValues(oForm, " SELECT YEAR AS CODE, YEAR AS NAME FROM OACP ", "Code", FN.Enum_WholeTp.m_Nothing);
oComboBox.Select(FN.Left(strNowDate,4), BoSearchKey.psk_ByValue);
oForm.Items.Item("btnTR").Enabled = false;
oForm.Items.Item("btnCAN").Enabled = false;
#region Matrix
oMatrix = oForm.Items.Item("mtx").Specific;
oMatrix.SelectionMode = BoMatrixSelect.ms_Single;
// 메트릭스
//FN.SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB_1, FN.RowSelectMode.SelectedLine, "U_YYYYMM");
#endregion
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:40,代码来源:KIS_FI0020A_HRD.cs
示例9: ET_AFDataMenu_Add
public virtual void ET_AFDataMenu_Add(MenuEvent pVal) {
oForm = B1Connections.theAppl.Forms.ActiveForm;
// ADD YOUR ACTION CODE HERE ...
oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_FI0010M_HRD");
oDB_1 = oForm.DataSources.DBDataSources.Item("@KIS_FI00101_HRD");
string strNowDate = B1Connections.diCompany.GetCompanyDate().ToShortDateString();
strNowDate = FN.SetDateFormatToDB(strNowDate, FN.eDateType.p_YYYYMMDD);
oDB_M.SetValue("U_DOCDATE", 0, strNowDate.Replace(".", ""));
oDB_M.SetValue("U_USERID", 0, B1Connections.theAppl.Company.UserName);
oComboBox = oForm.Items.Item("cboYYYY").Specific;
oComboBox.Select(FN.Left(strNowDate, 4), BoSearchKey.psk_ByValue);
oComboBox = oForm.Items.Item("cboTYPE").Specific;
oComboBox.Select(0, BoSearchKey.psk_Index);
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:18,代码来源:KIS_FI0010A_HRD.cs
示例10: Act3_DefualtSetting
/// <summary>
/// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
/// </summary>
private void Act3_DefualtSetting()
{
// '// ADD YOUR ACTION CODE HERE ...
#region Form Setting
oForm.DataBrowser.BrowseBy = "edtDOCNO";
oForm.SupportedModes = -1;
oForm.Settings.EnableRowFormat = false;
oForm.Settings.Enabled = false;
oForm.AutoManaged = true;
//oForm.PaneLevel = 1;
#endregion
oForm.Mode = BoFormMode.fm_ADD_MODE;
SetItemCaption(oForm, "1", "생성");
//SetDefault(oForm);
oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0160T_HRD");
oDB_1 = oForm.DataSources.DBDataSources.Item("@KIS_SO01601_HRD");
oComboBox = oForm.Items.Item("cboREQYM").Specific;
SO.SO_COMMON_HRD.SetComboValue_YearMonth(ref oComboBox, FN.Enum_WholeTp.m_Nothing, "");
#region Matrix
oMatrix = oForm.Items.Item("mtx").Specific;
oMatrix.SelectionMode = BoMatrixSelect.ms_Auto;
// 납부방법
FN.SetComboBoxValidValues(oMatrix, "U_PMETHOD", "SELECT U_SMLCD AS CODE, U_SMLNM AS NAME FROM [@KIS_AD00201] WHERE Code = 'SO09' AND U_USEYN = 'Y'");
// 요금제
FN.SetComboBoxValidValues(oMatrix, "U_PAYCD", "SELECT CODE, NAME FROM [@KIS_SO0050M_HRD]");
// 지국
//FN.SetComboBoxValidValues(oMatrix, "U_BRCCD", "SELECT CODE, NAME FROM [@KIS_SO0040M_HRD]");
FN.SetComboBoxValidValues(oMatrix, "U_CENTGBN", "SELECT U_SMLCD AS CODE, U_SMLNM AS NAME FROM [@KIS_AD00201] WHERE Code = 'SO17' AND U_USEYN = 'Y'"); // 분국구분(직배/지방)
// 지종
FN.SetComboBoxValidValues(oMatrix, "U_PAPERTP", "SELECT U_SMLCD AS CODE, U_SMLNM AS NAME FROM [@KIS_AD00201] WHERE Code = 'SO01' AND U_USEYN = 'Y'");
// 독자코드
//FN.SetChooseFromListAdd(oForm, "KIS_SO0030_HRD", "mtx", "Code", BoFormItemTypes.it_MATRIX, null, "U_RDCD");
// 지국
//FN.SetChooseFromListAdd(oForm, "KIS_SO0040_HRD", "mtx", "Code", BoFormItemTypes.it_MATRIX, null, "U_BRCCD");
// 외주처
//FN.SetChooseFromListbyItem(ref oForm, BoLinkedObject.lf_BusinessPartner, "mtx1.U_CARDCD(CardCode):CARDTYPE(=S)");//":FrozenFor(=Y) :LocManTran(-N) :Postable(Y)");
FN.SetMatrixColumnLinkedObject(ref oMatrix, "U_RDCD", BoLinkedObject.lf_None);
//FN.SetMatrixColumnLinkedObject(ref oMatrix, "U_BRCCD", BoLinkedObject.lf_GoodsIssue);
FN.SetSumField(ref oMatrix, "U_REQAMT,U_CNT");
#endregion
string AllString = "edtDOCNO,cboREQYM,edtREQDT,edtAPPDT,btnEXCEL";
string AddString = "cboREQYM,edtREQDT,edtAPPDT";
string OKString = "btnEXCEL";//string.Empty;
string FindString = "edtDOCNO,cboREQYM,edtREQDT";
FN.SetAutoManagedAttribute(ref oForm, AllString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_All, BoModeVisualBehavior.mvb_False);
FN.SetAutoManagedAttribute(ref oForm, AddString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Add, BoModeVisualBehavior.mvb_True);
FN.SetAutoManagedAttribute(ref oForm, OKString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Ok, BoModeVisualBehavior.mvb_True);
FN.SetAutoManagedAttribute(ref oForm, FindString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Find, BoModeVisualBehavior.mvb_True);
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:75,代码来源:KIS_SO0160A_HRD.cs
示例11: Act3_DefualtSetting
/// <summary>
/// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
/// </summary>
private void Act3_DefualtSetting() {
// '// ADD YOUR ACTION CODE HERE ...
try
{
#region Form Setting
oForm.SupportedModes = 1;
oForm.Settings.EnableRowFormat = false;
oForm.Settings.Enabled = false;
oForm.AutoManaged = true;
#endregion
#region ComboBox
// 고객그룹1
oComboBox = (SAPbouiCOM.ComboBox)oForm.Items.Item("cboGROUP").Specific;
FN.SetComboBoxValidValues(oForm, "SELECT U_CD,U_NM FROM [@KIS_CO00601] WHERE Code = '110' ", "cboGROUP", FN.Enum_WholeTp.m_TotalTxt);
#endregion
#region Grid
oForm.DataSources.DataTables.Add("grd");
oGrid = (SAPbouiCOM.Grid)oForm.Items.Item("grd").Specific;
oGrid.SelectionMode = BoMatrixSelect.ms_NotSupported;
oGrid.DataTable = oForm.DataSources.DataTables.Item("grd"); //데이터 그리드에 Display
SetGridTitle(oForm);
#endregion
#region Defalut Setting
oForm.DataSources.UserDataSources.Item("edtDATE").ValueEx = FN.GetNowDate(Enum_Date.m_Yyyy);
#endregion
foreach (SAPbouiCOM.Item item in oForm.Items)
{
item.AffectsFormMode = false;
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:51,代码来源:KIS_SD0180F_HRD.cs
示例12: ET_cboBPLID_AFComboSelect
public virtual void ET_cboBPLID_AFComboSelect(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oComboBox = ((SAPbouiCOM.ComboBox)(oForm.Items.Item("cboBPLID").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
if (pVal.ItemChanged)
{
string cboBPLID = oForm.DataSources.UserDataSources.Item("cboBPLID").Value;
oForm.DataSources.UserDataSources.Item("edtVATRNUM").Value = FN.GetRecordsetValue(string.Format("SELECT VATRegNum FROM dbo.[OBPL] WHERE BPLId = '{0}'", cboBPLID));
}
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:18,代码来源:KIS_SD0191F_HRD.cs
示例13: Act3_DefualtSetting
/// <summary>
/// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
/// </summary>
private void Act3_DefualtSetting()
{
// '// ADD YOUR ACTION CODE HERE ...
StringBuilder sb = new StringBuilder();
try
{
#region Form
oForm.SupportedModes = 1;
oForm.Settings.EnableRowFormat = false;
oForm.Settings.Enabled = false;
oForm.AutoManaged = true;
foreach (SAPbouiCOM.Item item in oForm.Items)
{
item.AffectsFormMode = false;
}
#endregion
#region ComboBox
// 기수
FN.SetComboBoxValidValues(oForm, "SELECT U_SMLCD, U_SMLNM FROM [@KIS_AD00201] WHERE CODE = 'HR01' AND U_USEYN = 'Y' ", "cboYEAR", FN.Enum_WholeTp.m_Nothing);
oCombo = oForm.Items.Item("cboYEAR").Specific;
if (oCombo.ValidValues.Count > 0)
{
oForm.DataSources.UserDataSources.Item("cboYEAR").Value = oCombo.ValidValues.Item(0).Value;
}
// 부서
FN.SetComboBoxValidValues(oForm, "SELECT U_DEPTCD,U_DEPTNM FROM [@KIS_HR00401] WHERE U_USEYN = 'Y' ", "cboDEPTCD", FN.Enum_WholeTp.m_TotalTxt);
oCombo = oForm.Items.Item("cboDEPTCD").Specific;
if (oCombo.ValidValues.Count > 0)
{
oForm.DataSources.UserDataSources.Item("cboDEPTCD").Value = oCombo.ValidValues.Item(0).Value;
}
#endregion
oForm.DataSources.DataTables.Add("grd");
SetGridTitle(oForm);
}
catch (Exception ex)
{
B1Connections.theAppl.StatusBar.SetText(ex.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
}
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:52,代码来源:KIS_HR0120F_HRD.cs
示例14: ET_cboFINDTY_AFComboSelect
public virtual void ET_cboFINDTY_AFComboSelect(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oComboBox = ((SAPbouiCOM.ComboBox)(oForm.Items.Item("cboFINDTY").Specific));
// ADD YOUR ACTION CODE HERE ...
SetHeaderEnable(oForm);
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:7,代码来源:KIS_SD0110F_HRD.cs
示例15: Act3_DefualtSetting
/// <summary>
/// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
/// </summary>
private void Act3_DefualtSetting(SAPbouiCOM.Form oForm)
{
// '// ADD YOUR ACTION CODE HERE ...
oForm.Settings.EnableRowFormat = false;
// UDO, 네비게이션 사용하지 않음
oForm.SupportedModes = (int)BoAutoFormMode.afm_Ok;
// 작엽년월
string strYYYYMM = FN.SetDateFormatToDB(DateTimeLibrary.FirstDayOfCurrentMonth(), FN.eDateType.n_YYYYMMDD).Substring(0, 6);
oComboBox = oForm.Items.Item("cboYYYYMM1").Specific;
SO.SO_COMMON_HRD.SetComboValue_YearMonth(ref oComboBox, FN.Enum_WholeTp.m_Nothing, strYYYYMM);
oComboBox = oForm.Items.Item("cboYYYYMM2").Specific;
SO.SO_COMMON_HRD.SetComboValue_YearMonth(ref oComboBox, FN.Enum_WholeTp.m_Nothing, strYYYYMM);
SetGridTitle(oForm);
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:20,代码来源:KIS_SO0360F_HRD.cs
示例16: Act3_DefualtSetting
/// <summary>
/// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
/// </summary>
private void Act3_DefualtSetting() {
// '// ADD YOUR ACTION CODE HERE ...
#region Form Setting
oForm.DataBrowser.BrowseBy = "DocEntry";
oForm.SupportedModes = -1;
oForm.Settings.EnableRowFormat = false;
oForm.Settings.Enabled = false;
oForm.AutoManaged = true;
oForm.PaneLevel = 1;
#endregion
oForm.Mode = BoFormMode.fm_ADD_MODE;
oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_FI0010M_HRD");
oDB_1 = oForm.DataSources.DBDataSources.Item("@KIS_FI00101_HRD");
string strNowDate = B1Connections.diCompany.GetCompanyDate().ToShortDateString();
strNowDate = FN.SetDateFormatToDB(strNowDate, FN.eDateType.p_YYYYMMDD);
oDB_M.SetValue("U_DOCDATE", 0, strNowDate.Replace(".", ""));
oDB_M.SetValue("U_USERID", 0, B1Connections.theAppl.Company.UserName);
oComboBox = oForm.Items.Item("cboYYYY").Specific;
FN.SetComboBoxValidValues(oForm, " SELECT YEAR AS CODE, YEAR AS NAME FROM OACP ", "cboYYYY", FN.Enum_WholeTp.m_Nothing);
oComboBox.Select(FN.Left(strNowDate,4) , BoSearchKey.psk_ByValue);
oComboBox = oForm.Items.Item("cboTYPE").Specific;
FN.SetComboBoxValidValues(oForm, " SELECT U_SMLCD,U_SMLNM FROM [@KIS_AD00201] WHERE Code = 'FI01' AND U_USEYN = 'Y' ", "cboTYPE", FN.Enum_WholeTp.m_Nothing);
oComboBox.Select(0, BoSearchKey.psk_Index);
#region EditText
// 코스트센터그룹
SAPbouiCOM.Conditions oCons = new Conditions();
FN.SetChooseFromListAdd(oForm, "KIS_CO0110", "edtCOSTFR", "Code", BoFormItemTypes.it_EDIT, oCons);
FN.SetChooseFromListAdd(oForm, "KIS_CO0110", "edtCOSTTO", "Code", BoFormItemTypes.it_EDIT, oCons);
// 공통비 코스트센터 그룹
FN.SetChooseFromListAdd(oForm, "KIS_CO0110", "edtCOMGPCD", "Code", BoFormItemTypes.it_EDIT, oCons);
// 원가그룹
FN.SetChooseFromListAdd(oForm, "KIS_CO0100", "edtDISACCD", "Code", BoFormItemTypes.it_EDIT, oCons);
FN.SetChooseFromListAdd(oForm, "KIS_CO0100", "edtCOPECD", "Code", BoFormItemTypes.it_EDIT, oCons);
FN.SetChooseFromListAdd(oForm, "KIS_CO0100", "edtCOAMCD", "Code", BoFormItemTypes.it_EDIT, oCons);
// 계정코드
#region GLAccounts Conditions
oCons = new Conditions();
SAPbouiCOM.Condition oCon = oCons.Add();
oCon.Alias = "U_CATEGORY";
oCon.Operation = BoConditionOperation.co_EQUAL;
oCon.CondVal = "S09";
#endregion
FN.SetChooseFromListAdd(oForm, ((int)BoLinkedObject.lf_GLAccounts).ToString(), "edtCOMPECD", "AcctCode", BoFormItemTypes.it_EDIT, oCons);
FN.SetChooseFromListAdd(oForm, ((int)BoLinkedObject.lf_GLAccounts).ToString(), "edtCOMAMCD", "AcctCode", BoFormItemTypes.it_EDIT, oCons);
#endregion
#region Matrix
oMatrix = oForm.Items.Item("mtx").Specific;
oMatrix.SelectionMode = BoMatrixSelect.ms_None;
// 메트릭스
FN.SetChooseFromListAdd(oForm, "KIS_CO0110", "mtx", "Code", BoFormItemTypes.it_MATRIX, null, "U_PRCCD");
FN.SetSumField(ref oMatrix, "U_1MON,U_2MON,U_3MON,U_4MON,U_5MON,U_6MON,U_7MON,U_8MON,U_9MON,U_10MON,U_11MON,U_12MON");
//FN.SetMatrixAddRow(ref oForm, ref oMatrix, ref oDB_1, FN.RowSelectMode.SelectedLine, "U_PRCCD");
#endregion
#region SetAutoManagedAttribute
string AllString = "cboYYYY,cboTYPE,edtCOMGPCD,edtDISACCD,edtCOPECD,edtCOAMCD,edtCOMPECD,edtCOMAMCD,mtx,btnFIND";
string AddString = "cboYYYY,cboTYPE,edtCOMGPCD,edtDISACCD,edtCOPECD,edtCOAMCD,mtx,btnFIND";
string OKString = "edtCOMGPCD,edtDISACCD,edtCOPECD,edtCOAMCD,mtx,btnFIND";
string FindString = "cboYYYY,cboTYPE";
FN.SetAutoManagedAttribute(ref oForm, AllString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_All, BoModeVisualBehavior.mvb_False);
FN.SetAutoManagedAttribute(ref oForm, AddString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Add, BoModeVisualBehavior.mvb_True);
FN.SetAutoManagedAttribute(ref oForm, OKString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Ok, BoModeVisualBehavior.mvb_True);
FN.SetAutoManagedAttribute(ref oForm, FindString, BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Find, BoModeVisualBehavior.mvb_True);
#endregion
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:95,代码来源:KIS_FI0010A_HRD.cs
示例17: ET_cboBPLID_AFComboSelect
public virtual void ET_cboBPLID_AFComboSelect(ItemEvent pVal) {
oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
oComboBox = ((SAPbouiCOM.ComboBox)(oForm.Items.Item("cboBPLID").Specific));
// ADD YOUR ACTION CODE HERE ...
try
{
if (pVal.ItemChanged)
{
string cboBPLID = oForm.DataSources.UserDataSources.Item("cboBPLID").Value;
oForm.DataSources.UserDataSources.Item("edtVATRNUM").Value = FN.GetRecordsetValue(string.Format("SELECT VATRegNum FROM dbo.[OBPL] WHERE BPLId = '{0}'", cboBPLID));
}
}
catch (Exception)
{
throw;
}
}
开发者ID:wldyd0210,项目名称:TEST,代码行数:18,代码来源:KIS_TR0071F_HRD.cs
示例18: Act3_DefualtSetting
/// <summary>
/// 폼(Form) 및 아이템들(Items)의 기본값으로 설정되야하는 항목들을 정의합니다.
/// </summary>
private void Act3_DefualtSetting() {
// '// ADD YOUR ACTION CODE HERE ...
StringBuilder sb = new StringBuilder();
try
{
#region Form
oForm.SupportedModes = 1;
oForm.Settings.EnableRowFormat = false;
oForm.Settings.Enabled = false;
oForm.AutoManaged = true;
foreach (SAPbouiCOM.Item item in oForm.Items)
{
item.AffectsFormMode = false;
}
#endregion
oForm.DataSources.UserDataSources.Item("edtDOCDTF").Value = Convert.ToDateTime(B1Connections.theAppl.Company.ServerDate).ToString("yyyyMM01");
oForm.DataSources.UserDataSources.Item("edtDOCDTT").Value = Convert.ToDateTime(B1Connections.theAppl.Company.ServerDate).ToString("yyyyMMdd");
#region EditText
//매출처
#region BusinessPartner Conditions
SAPbouiCOM.Conditions oCons = new Conditions(); ;
SAPbouiCOM.Condition oCon = oCons.Add();
oCons = new Conditions(); ;
oCon = oCons.Add();
oCon.Alias = "CardType";
oCon.Operation = BoConditionOperation.co_EQUAL;
oCon.CondVal = "C";
oCon.Relationship = BoConditionRelationship.cr_AND;
oCon = oCons.Add();
oCon.Alias = "frozenFor";
oCon.Operation = BoConditionOperation.co_EQUAL;
oCon.CondVal = "N";
#endregion
FN.SetChooseFromListAdd(oForm, ((int)BoLinkedObject.lf_BusinessPartner).ToString(), "edtCARDCDF", "CardCode", BoFormItemTypes.it_EDIT, oCons);
FN.SetChooseFromListAdd(oForm, ((int)BoLinkedObject.lf_BusinessPartner).ToString(), "edtCARDNMF", "CardName", BoFormItemTypes.it_EDIT, oCons);
//대행사
#region BusinessPartner Conditions
oCons = new Conditions(); ;
oCon = oCons.Add();
oCon.Alias = "CardType";
oCon.Operation = BoConditionOperation.co_EQUAL;
oCon.CondVal = "S";//공급업체
oCon.Relationship = BoConditionRelationship.cr_AND;
oCon = oCons.Add();
oCon.Alias = "frozenFor";
oCon.Operation = BoConditionOperation.co_EQUAL;
oCon.CondVal = "N";
#endregion
FN.SetChooseFromListAdd(oForm, ((int)BoLinkedObject.lf_BusinessPartner).ToString(), "edtBPCDF", "CardCode", BoFormItemTypes.it_EDIT, oCons);
FN.SetChooseFromListAdd(oForm, ((int)BoLinkedObject.lf_BusinessPartner).ToString(), "edtBPNMF", "CardName", BoFormItemTypes.it_EDIT, oCons);
#endregion
#region ComboBox
//매출부서
FN.SetComboBoxValidValues(oForm, "SELECT PrcCode,PrcName FROM OPRC WHERE DimCode = '1' AND Locked = 'N' ORDER BY PrcCode ", "cboPRCCD", FN.Enum_WholeTp.m_TotalTxt);
oCombo = oForm.Items.Item("cboPRCCD").Specific;
if (oCombo.ValidValues.Count > 0)
{
oForm.DataSources.UserDataSources.Item("cboPRCCD").Value = oCombo.ValidValues.Item(0).Value;
}
//영업사원
FN.SetComboBoxValidValues(oForm, "SELECT SlpCode,SlpName FROM OSLP WHERE Active = 'Y' AND Locked = 'N' ORDER BY SlpCode ", "cboSLPCD", FN.Enum_WholeTp.m_TotalTxt);
oCombo = oForm.Items.Item("cboSLPCD").Specific;
if (oCombo.ValidValues.Count > 0)
{
oForm.DataSources.UserDataSources.Item("cboSLPCD").Value = oCombo.ValidValues.Item(0).Value;
}
//간행물
FN.SetComboBoxValidValues(oForm, "SELECT U_SMLCD,U_SMLNM FROM [@KIS_AD00201] WHERE Code = 'SD01' AND U_USEYN = 'Y' ", "cboPUBLICA", FN.Enum_WholeTp.m_TotalTxt);
oCombo = oForm.Items.Item("cboPUBLICA").Specific;
if (oCombo.ValidValues.Count > 0)
{
oForm.DataSources.UserDataSources.Item("cboPUBLICA").Value = oCombo.ValidValues.Item(0).Value;
}
#endregion
oForm.DataSources.DataTables.Add("grd");
//.........这里部分代码省略.........
开发者ID:wldyd0210,项目名称:TEST,代码行数:101,代码来源:KIS_SD0150F_HRD.cs
示例19: ET_cboYEAR_AFComboSelect
public virtual void ET_cboYEAR_AFComboSelect(ItemEvent pVal)
{
oForm = B1Connections.theAppl.Forms.Item(pVal.
|
请发表评论