当前位置: 首页>>代码示例>>C#>>正文


C# DBDataSource.GetValue方法代码示例

本文整理汇总了C#中SAPbouiCOM.DBDataSource.GetValue方法的典型用法代码示例。如果您正苦于以下问题:C# DBDataSource.GetValue方法的具体用法?C# DBDataSource.GetValue怎么用?C# DBDataSource.GetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SAPbouiCOM.DBDataSource的用法示例。


在下文中一共展示了DBDataSource.GetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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 ...
     if (oForm.Mode == BoFormMode.fm_ADD_MODE)
     {
         if (BeforModifyData_CheckAuthority(oForm))
         {
             if (BeforeExecute_ValidationCheck(oForm))
             {
                 string strDocEntry = CreateData(oForm);
                 if (!string.IsNullOrEmpty(strDocEntry))
                 {
                     gDocEntry = strDocEntry;
                     oForm.Mode = BoFormMode.fm_OK_MODE;
                     GetDataLoad(oForm, strDocEntry);
                     SetItemEnabled(oForm);
                 }
             }
         }
         return false;
     }
     else if (oForm.Mode == BoFormMode.fm_UPDATE_MODE)
     {
         if (BeforModifyData_CheckAuthority(oForm))
         {
             oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0400T_HRD");
             string strRtnValue = FN.GetRecordsetValue(string.Format(" SELECT COUNT (1)  FROM [@KIS_SO0310T_HRD] WHERE U_YYYYMM = '{0}' AND ISNULL (U_RJDTDOC, '') = '' ", oDB_M.GetValue("U_YYYYMM", 0).Trim()));
             if (int.Parse(strRtnValue) > 0)
             {
                 B1Connections.theAppl.StatusBar.SetText("지대청구가 생성되면 수정 할 수 없습니다.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                 return false;
             }
         }
     }
     oForm.Freeze(true);
     UpDateDate(oForm);
     FindData(oForm);
     oForm.Freeze(false);
     return false;
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:42,代码来源:KIS_SO0400A_HRD.cs

示例2: GetAdvanceAmt

        private void GetAdvanceAmt(SAPbouiCOM.Form oForm)
        {           
            string strREADCD = string.Empty;
            try
            {
                oForm.Freeze(true);
                oUDS = oForm.DataSources.UserDataSources;
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
                strREADCD = oDB_M.GetValue("Code", 0).Trim();

               string strRtnValue =  FN.GetRecordsetValue(string.Format( " SELECT ISNULL(U_AMT,0) FROM KIS_VW_SO02401_HRD WHERE U_READCD = '{0}' " , strREADCD));
               oUDS.Item("edtADVANCE").Value = strRtnValue;

            }
            catch (Exception ex)
            {
                B1Connections.theAppl.StatusBar.SetText("GetAdvanceAmt " + ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
            }
            finally
            {
                oForm.Freeze(false);
                oForm.Refresh();
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:24,代码来源:KIS_SO0030A_HRD.cs

示例3: SetCreditKey_ItemAttribute

 /// <summary>
 /// 데이터 있을때 패드워드타입, 없을때 일반 EditText 타입으로 변환
 /// </summary>
 /// <param name="oForm"></param>
 private void SetCreditKey_ItemAttribute(SAPbouiCOM.Form oForm)
 {
     try
     {
         SAPbouiCOM.EditText oEditText = oForm.Items.Item("edtCREDKEY").Specific;
         string strCreditKey = string.Empty;
         oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
         if (oDB_M.Size > 0)
         {
             strCreditKey = oDB_M.GetValue("U_CREDKEY", 0).Trim();
             if (string.IsNullOrEmpty(strCreditKey))
                 oEditText.IsPassword = false;
             else
                 oEditText.IsPassword = true;
         }
         else
         {
             oEditText.IsPassword = false;
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
开发者ID:wldyd0210,项目名称:TEST,代码行数:29,代码来源:KIS_SO0030A_HRD.cs

示例4: GetMaxDelivCode

        /// <summary>
        /// 배송코드 채번
        /// </summary>
        /// <param name="oForm"></param>
        /// <returns></returns>
        private string GetMaxDelivCode(SAPbouiCOM.Form oForm)
        {
            string strCode = string.Empty;
            string strRtnValue = string.Empty;
            int iMaxIdx = 0;
            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
                strCode = oDB_M.GetValue("Code", 0).ToString();

                // 
                if (gDs.Tables[oForm.UniqueID + "_Deliver"].Rows.Count > 0 && gDs.Tables[oForm.UniqueID + "_Deliver"] != null)
                    iMaxIdx = int.Parse(gDs.Tables[oForm.UniqueID + "_Deliver"].Compute(" MAX(LINEID) ", "").ToString());

                strRtnValue = strCode.Substring(0, 10) + "_" + (iMaxIdx + 1).ToString().PadLeft(4, '0');
            }
            catch (Exception)
            {
                throw;
            }
            return strRtnValue;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:27,代码来源:KIS_SO0030A_HRD.cs

示例5: GetCodeExists

        /// <summary>
        /// 독자코드 존재여부 : 저장된 코드가 있으면 True 없으면 False
        /// </summary>
        /// <param name="oForm"></param>
        /// <returns></returns>
        private bool GetCodeExists(SAPbouiCOM.Form oForm)
        {
            bool rtnValue = false;
            string strSQL = string.Empty;
            string strCode = string.Empty;
            string strValue = string.Empty;
            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0030M_HRD");
                strCode = oDB_M.GetValue("Code", 0);
                strSQL = string.Format(" SELECT COUNT(1) FROM [@KIS_SO0030M_HRD] WHERE Code = '{0}' ", strCode);

                strValue = FN.GetRecordsetValue(strSQL);
                if (strValue != "0")
                    rtnValue = true;
            }
            catch (Exception)
            {
                throw;
            }
            return rtnValue;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:27,代码来源:KIS_SO0030A_HRD.cs

示例6: SetButtonEnabled

        private void SetButtonEnabled(SAPbouiCOM.Form oForm)
        {
            string strTransID = string.Empty;
            string strRejTran = string.Empty;
            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0280T_HRD");
                strTransID = oDB_M.GetValue("U_JDTDOC", 0).Trim();
                strRejTran = oDB_M.GetValue("U_RJDTDOC", 0).Trim();


                if (string.IsNullOrEmpty(strTransID))
                {
                    FN.SetItemEnable(oForm, "btnJDT", true);
                    FN.SetItemEnable(oForm, "cboDEPYM", true);
                    FN.SetItemEnable(oForm, "edtDEPDT", true);
                    FN.SetItemEnable(oForm, "extREMARK", true);
                    FN.SetItemEnable(oForm, "edtBNKCD", true);
                    FN.SetItemEnable(oForm, "edtCMMAMT", true);
                }
                else
                {
                    FN.SetItemEnable(oForm, "btnJDT", false);
                    FN.SetItemEnable(oForm, "cboDEPYM", false);
                    FN.SetItemEnable(oForm, "edtDEPDT", false);
                    FN.SetItemEnable(oForm, "extREMARK", false);
                    FN.SetItemEnable(oForm, "edtBNKCD", false);
                    FN.SetItemEnable(oForm, "edtCMMAMT", false);
                }

                if (string.IsNullOrEmpty(strTransID) == false && string.IsNullOrEmpty(strRejTran))
                    FN.SetItemEnable(oForm, "btnREJDT", true);
                else
                    FN.SetItemEnable(oForm, "btnREJDT", false);

                if (oForm.Mode == BoFormMode.fm_ADD_MODE)
                    FN.SetItemEnable(oForm, "btnFIND", true);
                else
                    FN.SetItemEnable(oForm, "btnFIND", false);

            }
            catch (Exception)
            {
                throw;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:46,代码来源:KIS_SO0280A_HRD.cs

示例7: DI_JournalEntries

        /// <summary>
        /// 분개 저장 TR_COMMON.JournalType 에 따라 분개, 분개취소 전표를 발행한다.
        /// </summary>
        private bool DI_JournalEntries(SAPbouiCOM.Form oForm, SO.SO_COMMON_HRD.JournalType pJournalType)
        {
            bool boolReturn = true;

            int? retValue = null;
            int nError;
            string strError = string.Empty;

            string strJournalEntry = string.Empty;
            string xSQL = string.Empty;

            //string U_RELDT = B1Connections.diCompany.GetCompanyDate().ToString("yyyy-MM-dd");//임포트 실행일              
            //string U_RELDT = B1Connections.diCompany.GetCompanyDate().ToString("yyyyMMdd");//임포트 실행일
            //string U_RELUSER = B1Connections.diCompany.UserName;//임포트 실행 사용자

            string strDate = string.Empty;
            string strMEMO = string.Empty;
            string strDocEntry = string.Empty;

            SAPbobsCOM.JournalEntries oJournalEntries = null;

            SAPbobsCOM.Recordset oRS = (SAPbobsCOM.Recordset)B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
            oJournalEntries = (SAPbobsCOM.JournalEntries)B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries);

            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0280T_HRD");
                oDB_1 = oForm.DataSources.DBDataSources.Item("@KIS_SO02801_HRD");

                strDocEntry = oDB_M.GetValue("DocEntry", 0).Trim();

                B1Connections.diCompany.StartTransaction();

                switch (pJournalType)
                {
                    //분개
                    case SO_COMMON_HRD.JournalType.A01:
                        if (string.IsNullOrEmpty(oDB_M.GetValue("U_JDTDOC", 0).Trim()))
                        {
                            // 차변 - 보통예금
                            string strDebitAmt = string.Empty;
                            string[] arrDebit = { "U102" };
                            string[,] strAccount_Debit = new string[arrDebit.Length, 4];

                            for (int i = 0; i < arrDebit.Length; i++)
                            {
                                strAccount_Debit[i, 0] = arrDebit[i];
                                strAccount_Debit[i, 1] = "";
                            }

                            // 차변 수수료(U503) -> 미지급금-거래처로 변경 
                            string strDebitCMMAmt = string.Empty;
                            string[] arrDebitCMM = { "U205" };
                            string[,] strAccount_DebitCMM = new string[arrDebitCMM.Length, 4];

                            for (int i = 0; i < arrDebitCMM.Length; i++)
                            {
                                strAccount_DebitCMM[i, 0] = arrDebitCMM[i];
                                strAccount_DebitCMM[i, 1] = "";
                            }

                            // 대변 - 외상매출계정-헤경지대, 외상매출계정-KH지대
                            string strCreditAmt = string.Empty;
                            string[] arrCredit = { "U103", "U104" };
                            string[,] strAccount_Credit = new string[arrCredit.Length, 4];

                            for (int i = 0; i < arrCredit.Length; i++)
                            {
                                strAccount_Credit[i, 0] = arrCredit[i];
                                strAccount_Credit[i, 1] = "";
                            }



                            strMEMO = oDB_M.GetValue("U_DEPDT", 0).Trim() + " 신용카드 입금";

                            //DateTime dateDoc = Convert.ToDateTime(FN.SetDateFormatToDB(FN.GetItemValue(ref oForm, "edtTAKEDT"))); //B1Connections.diCompany.GetCompanyDate(); //DateTime.Today;
                            DateTime dateDoc = Convert.ToDateTime(FN.SetDateFormatToDB(FN.GetItemValue(ref oForm, "edtDEPDT")));

                            // 헤더셋팅
                            oJournalEntries.ReferenceDate = dateDoc;    //전기일
                            oJournalEntries.DueDate = dateDoc;          //만기일
                            oJournalEntries.TaxDate = dateDoc;          //증빙일
                            oJournalEntries.Memo = strMEMO;
                            oJournalEntries.UserFields.Fields.Item("U_ADDOCTP").Value = "KIS_SO0280_HRD";
                            oJournalEntries.UserFields.Fields.Item("U_BPLID").Value = "1";

                            //arrTemp[0] : 계정코드
                            //arrTemp[1] : 지종
                            //arrTemp[2] : 계정종류 - 1이면 관리계정
                            string[] arrTemp = new string[4];
                            string shortName = string.Empty;
                            string costCenter = string.Empty;
                            string acct = string.Empty;

                            // 총 입금액
                            double tAmt = GetMatrixSumValue("U_DEPAMT", "");
//.........这里部分代码省略.........
开发者ID:wldyd0210,项目名称:TEST,代码行数:101,代码来源:KIS_SO0280A_HRD.cs

示例8: ET_AFFormDataLoad

        public virtual void ET_AFFormDataLoad(BusinessObjectInfo pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            // ADD YOUR ACTION CODE HERE ...

            SetItemEnabled(oForm);

            oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0320T_HRD");
            gDocEntry = oDB_M.GetValue("DocEntry", 0).Trim();
  
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:11,代码来源:KIS_SO0320A_HRD.cs

示例9: SetItemEnabled

        private void SetItemEnabled(SAPbouiCOM.Form oForm)
        {
            string strTransID = string.Empty;
            string strRejTran = string.Empty;
            string strStatus = string.Empty;
            string strAcctCd = string.Empty;
            string strTYPE = string.Empty;
            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0320T_HRD");
                strTransID = oDB_M.GetValue("U_JDTDOC", 0).Trim();
                strRejTran = oDB_M.GetValue("U_RJDTDOC", 0).Trim();
                strTYPE = oDB_M.GetValue("U_TYPE", 0).Trim();

                oCheckBox = (SAPbouiCOM.CheckBox)oForm.Items.Item("chkACCTIN").Specific;
                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx").Specific;

                FN.SetAutoManagedAttribute(ref oForm, "edtDOCNUM,cboTYPE,edtCENTCD,edtCENTNM,cboSTATUS,edtDOCDT,cboMETHOD,cboACCTCD,edtBNKACCT,edtBNKBRCH,edtBNKHOLD,edtAMT,edtJDTDOC,edtRJDTDOC,btnTRAN,btnCANCTR,btnPOPUP,chkACCTIN,mtx", BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_All, BoModeVisualBehavior.mvb_False);
                FN.SetAutoManagedAttribute(ref oForm, "edtDOCNUM,cboTYPE,edtCENTCD,edtCENTNM,cboSTATUS,edtDOCDT,cboMETHOD,cboACCTCD,edtBNKACCT,edtBNKBRCH,edtBNKHOLD,edtAMT,chkACCTIN", BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Find, BoModeVisualBehavior.mvb_True);


                // 분개처리 상태
                if (string.IsNullOrEmpty(strTransID) == false && string.IsNullOrEmpty(strRejTran))
                {
                    FN.SetAutoManagedAttribute(ref oForm, "btnCANCTR", BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Ok, BoModeVisualBehavior.mvb_True);
                }
                // 일반문서상태
                else if (string.IsNullOrEmpty(strTransID))
                {
                    //FN.SetItemEnable(oForm, "btnCANCTR", false);

                    if (oCheckBox.Checked || strTYPE == "O")
                    {
                        //strAcctCd = FN.GetRecordsetValue(" SELECT U_RMK1 FROM [@KIS_AD00201] WHERE Code = 'SO19' AND U_SMLCD = 'U204' ");
                        //oDB_M.SetValue("U_ACCTCD", 0, strAcctCd);

                        FN.SetAutoManagedAttribute(ref oForm, "edtDOCDT,cboMETHOD,cboACCTCD,edtBNKACCT,edtBNKHOLD,edtAMT,btnTRAN,chkACCTIN,cboACCTCD", BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Ok, BoModeVisualBehavior.mvb_True);
                        FN.SetAutoManagedAttribute(ref oForm, "cboTYPE,edtCENTCD,edtCENTNM,edtDOCDT,cboMETHOD,edtBNKACCT,edtBNKHOLD,edtAMT,chkACCTIN,cboACCTCD", BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Add, BoModeVisualBehavior.mvb_True);

                        oMatrix.Clear();
                        oMatrix.FlushToDataSource();
                    }
                    else
                    {
                        //oDB_M.SetValue("U_ACCTCD", 0, "");
                        FN.SetAutoManagedAttribute(ref oForm, "edtDOCDT,cboMETHOD,cboACCTCD,edtBNKACCT,edtBNKHOLD,mtx,btnPOPUP,btnTRAN,chkACCTIN", BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Ok, BoModeVisualBehavior.mvb_True);
                        FN.SetAutoManagedAttribute(ref oForm, "cboTYPE,edtCENTCD,edtCENTNM,edtDOCDT,cboMETHOD,edtBNKACCT,edtBNKHOLD,btnPOPUP,chkACCTIN,mtx", BoAutoManagedAttr.ama_Editable, BoAutoFormMode.afm_Add, BoModeVisualBehavior.mvb_True);
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:55,代码来源:KIS_SO0320A_HRD.cs

示例10: SetComboBox_Method

        private void SetComboBox_Method(SAPbouiCOM.Form oForm)
        {
            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0320T_HRD");
                string strTYPE = oDB_M.GetValue("U_TYPE", 0).Trim();
                string strACCTYN = oDB_M.GetValue("U_ACCTYN", 0).Trim();
                string strLIST = string.Empty;
                if (strTYPE == "I")
                {
                    if (strACCTYN == "Y")
                    {
                        strLIST = "'S04','S05'";
                    }
                    else
                    {
                        strLIST = "'S04','S05','S11'";// 현금, 무통장, 보증금대체
                    }
                }
                else
                {
                    strLIST = "'S04','S05','S12'";// 현금, 무통장, 미지급금대체

                }

                if (String.IsNullOrEmpty(strLIST))
                {
                    oComboBox = oForm.Items.Item("cboMETHOD").Specific;
                    FN.SetComboClear(ref oComboBox);
                    oDB_M.SetValue("U_METHOD", 0, "");
                }
                else
                {
                    oComboBox = oForm.Items.Item("cboMETHOD").Specific;
                    FN.SetComboClear(ref oComboBox);
                    oDB_M.SetValue("U_METHOD", 0, "");
                    FN.SetComboBoxValidValues(oForm, string.Format(" SELECT  U_SMLCD, U_SMLNM FROM [@KIS_AD00201] WHERE Code = 'SO51' AND U_SMLCD IN ({0}) ", strLIST), "cboMETHOD", FN.Enum_WholeTp.m_Space, "");
                }



            }
            catch (Exception)
            {

                throw;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:48,代码来源:KIS_SO0320A_HRD.cs

示例11: SetComboBox_AcctCode

        private void SetComboBox_AcctCode(SAPbouiCOM.Form oForm)
        {
            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0320T_HRD");
                string strTYPE = oDB_M.GetValue("U_TYPE", 0).Trim();
                string strMETHOD = oDB_M.GetValue("U_METHOD", 0).Trim();
                string strACCTYN = oDB_M.GetValue("U_ACCTYN", 0).Trim();
                string strLIST = string.Empty;

                if (strACCTYN == "Y")
                {

                    if (strMETHOD == "S04" || strMETHOD == "S05") // 현금,무통장
                    {
                        if (strTYPE == "I") // 수금(입금)
                        {
                            strLIST = "'U201','U204'"; // 선수금, 보증금
                        }
                        else
                        {
                            strLIST = "'U204'"; // 보증금
                        }
                    }

                    else if (strMETHOD == "S11") //보증금대체
                    {
                        strLIST = "'U204'";
                    }
                    else if (strMETHOD == "S12") // 미지급금대체
                    {
                        strLIST = "'U204'";
                    }
                }


                if (String.IsNullOrEmpty(strLIST))
                {
                    oComboBox = oForm.Items.Item("cboACCTCD").Specific;
                    FN.SetComboClear(ref oComboBox);
                    oDB_M.SetValue("U_ACCTCD", 0, "");
                }
                else
                {
                    oComboBox = oForm.Items.Item("cboACCTCD").Specific;
                    FN.SetComboClear(ref oComboBox);
                    oDB_M.SetValue("U_ACCTCD", 0, "");

                    FN.SetComboBoxValidValues(oForm, string.Format(" SELECT  U_RMK1, U_SMLNM FROM [@KIS_AD00201] WHERE Code = 'SO19' AND U_SMLCD IN ({0}) ", strLIST), "cboACCTCD", FN.Enum_WholeTp.m_Space, "");
                }

            }
            catch (Exception)
            {

                throw;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:58,代码来源:KIS_SO0320A_HRD.cs

示例12: PopUpOpenBefore_Validation

        private bool PopUpOpenBefore_Validation(SAPbouiCOM.Form oForm)
        {
            bool rtnValue = true;
            try
            {
                oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0320T_HRD");
                if (oDB_M.GetValue("U_TYPE", 0).Trim() == "")
                {
                    B1Connections.theAppl.StatusBar.SetText("수급/지급 구분이 선택되지 않았습니다.", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
                    oForm.Items.Item("cboTYPE").Click(BoCellClickType.ct_Regular);
                    rtnValue = false;
                }

                if (oDB_M.GetValue("U_CENTCD", 0).Trim() == "")
                {
                    B1Connections.theAppl.StatusBar.SetText("지국이 입력되지 않았습니다.", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
                    oForm.Items.Item("edtCENTCD").Click(BoCellClickType.ct_Regular);
                    rtnValue = false;
                }
            }
            catch (Exception)
            {
                throw;
            }
            return rtnValue;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:26,代码来源:KIS_SO0320A_HRD.cs

示例13: ET_BFRightClick

        public virtual bool ET_BFRightClick(ContextMenuInfo pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            // ADD YOUR ACTION CODE HERE ...

            oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0400T_HRD");
            if (SO.SO_COMMON_HRD.Authority == SO.SO_COMMON_HRD.AuthorityType.None && oDB_M.GetValue("U_STATUS", 0).Trim() == "R")
                oForm.EnableMenu("1283", false); //제거
            return true;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:10,代码来源:KIS_SO0400A_HRD.cs

示例14: ET_grd_BFValidate

        public virtual bool ET_grd_BFValidate(ItemEvent pVal)
        {
            oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID);
            oGrid = ((SAPbouiCOM.Grid)(oForm.Items.Item("grd").Specific));
            // ADD YOUR ACTION CODE HERE ...

            oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0400T_HRD");
            //if (pVal.InnerEvent == false && pVal.ItemChanged == true)
            //{
            if (string.IsNullOrEmpty(oDB_M.GetValue("U_JDTDOC", 0).Trim()) == false)
            {
                B1Connections.theAppl.StatusBar.SetText("분개전기가된 문서는 수정할 수 없습니다.", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
                return false;
            }
            //}
            return true;
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:17,代码来源:KIS_SO0400A_HRD.cs

示例15: GetDataLoad

        private void GetDataLoad(SAPbouiCOM.Form oForm)
        {
            string strYYYYMM = oForm.DataSources.UserDataSources.Item("U_YYYYMM").Value.Trim();
            string strCENTCD = oForm.DataSources.UserDataSources.Item("U_CENTCD").Value.Trim();
            string strCENTNM = oForm.DataSources.UserDataSources.Item("U_CENTNM").Value.Trim();
            string strBENTRY = oForm.DataSources.UserDataSources.Item("U_BENTRY").Value.Trim();

            oDB_M = oForm.DataSources.DBDataSources.Item("@KIS_SO0420T_HRD");
            oDB_1 = oForm.DataSources.DBDataSources.Item("@KIS_SO04201_HRD");

            //헤더데이터를 조회
            QueryWithConditions_MASTER(ref oDB_M, strYYYYMM, strCENTCD);
            if (oDB_M.Size > 0)
            {
                string strDocEntry = oDB_M.GetValue("DocEntry", 0).Trim();
                //헤더를 기준으로 라인데이터 조회
                QueryWithConditions(ref oDB_1, "DocEntry", strDocEntry);
                oForm.Mode = BoFormMode.fm_OK_MODE;

                oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx").Specific;
                oMatrix.LoadFromDataSource();
            }
            else
            {
                string strSTATUS = oForm.DataSources.UserDataSources.Item("U_STATUS").Value.Trim();
                if (strSTATUS == "P")
                {
                    // 아무것도 없는 마스터에 값을 입력할려고 하면 오류 발생 
                    // 폼 모드 Add모드로 강제로 전환 하고 데이터 입력해야함.
                    oForm.Mode = BoFormMode.fm_ADD_MODE;
                }
                oDB_M.SetValue("U_YYYYMM", 0, strYYYYMM);
                oDB_M.SetValue("U_CENTCD", 0, strCENTCD);
                oDB_M.SetValue("U_CENTNM", 0, strCENTNM);
                oDB_M.SetValue("U_BENTRY", 0, strBENTRY);
                oDB_M.SetValue("U_BTYPE", 0, "KIS_SO0310_HRD");
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:38,代码来源:KIS_SO0311A_HRD.cs


注:本文中的SAPbouiCOM.DBDataSource.GetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。