Exemple #1
0
        /// <summary>
        /// 创建数据库对象
        /// </summary>
        /// <param name="lstArgs"></param>
        /// 1:数据库类型
        /// 2:数据库对象名
        /// 3:数据库对象类型
        /// <returns></returns>
        public ReturnResult OperationA10(List <string> lstArgs)
        {
            ReturnResult result = new ReturnResult();

            switch (lstArgs[0])
            {
            case "3":       //Oracle
                result = DBConnectInOracle.GetAllDBObjects();
                break;
            }
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// 尝试连接到数据库服务器
        /// </summary>
        /// <param name="lstArgs"></param>
        /// <returns></returns>
        public ReturnResult OperationA08(List <string> lstArgs)
        {
            ReturnResult result = new ReturnResult();

            switch (lstArgs[0])
            {
            case "3":       //Oracle
                result = DBConnectInOracle.ConnectToServer(lstArgs[1], lstArgs[2], lstArgs[3], lstArgs[4], lstArgs[5]);
                break;
            }
            return(result);
        }
Exemple #3
0
        public ReturnResult OperationA11(List <string> lstArgs)
        {
            ReturnResult result = new ReturnResult();

            switch (lstArgs[0])
            {
            case "3":       //Oracle
                result = DBConnectInOracle.GetSingleLanguage(lstArgs[1], lstArgs[2], lstArgs[3], lstArgs[4], lstArgs[5], lstArgs[6]);
                break;

            case "2":
                result = DBConnectInMsSql.GetSingleLanguage(lstArgs[1], lstArgs[2], lstArgs[3], lstArgs[4], lstArgs[5], lstArgs[6]);
                break;
            }
            return(result);
        }
Exemple #4
0
        /// <summary>
        /// 设置languagecode为已经支持的语种
        /// <param name="lstArgs">list中的顺序如下</param>
        /// 0:数据库类型
        /// 1:serverhost
        /// 2:serverport
        /// 3:servicename/dbname
        /// 4:loginname
        /// 5:loginpwd
        /// </summary>
        /// <param name="lstArgs"></param>
        /// <returns></returns>
        private ReturnResult OperationA07(List <string> lstArgs)
        {
            ReturnResult result = new ReturnResult();

            switch (lstArgs[0])
            {
            case "3":       //Oracle
                result = DBConnectInOracle.SupportLanguage(lstArgs[1], lstArgs[2], lstArgs[3], lstArgs[4], lstArgs[5], lstArgs[6]);
                break;

            case "2":
                result = DBConnectInMsSql.SupportLanguage(lstArgs[1], lstArgs[2], lstArgs[3], lstArgs[4], lstArgs[5], lstArgs[6]);
                break;
            }
            return(result);
        }
Exemple #5
0
        /// <summary>
        /// 插入一行记录
        /// 0:数据库类型
        /// 1:serverhost
        /// 2:serverport
        /// 3:servicename/dbname
        /// 4:loginname
        /// 5:loginpwd
        /// 6: LanguageCode
        /// 7: MessageID
        /// 8: Dis1
        /// 9: Dis2
        /// 10: Tip1
        /// 11: Tip2
        /// 12: ModuleID
        /// 13: ChildModuleID
        /// 14: Frame
        /// </summary>
        /// <param name="lstArgs"></param>
        /// <returns></returns>
        private ReturnResult OperationA05(List <string> lstArgs)
        {
            ReturnResult result = new ReturnResult();

            switch (lstArgs[0])
            {
            case "3":       //Oracle
                result = DBConnectInOracle.Insert(lstArgs[1], lstArgs[2], lstArgs[3], lstArgs[4], lstArgs[5],
                                                  lstArgs[6], lstArgs[7], lstArgs[8], lstArgs[9], lstArgs[10], lstArgs[11], lstArgs[12], lstArgs[13], lstArgs[14]);
                break;

            case "2":
                result = DBConnectInMsSql.Insert(lstArgs[1], lstArgs[2], lstArgs[3], lstArgs[4], lstArgs[5],
                                                 lstArgs[6], lstArgs[7], lstArgs[8], lstArgs[9], lstArgs[10], lstArgs[11], lstArgs[12], lstArgs[13], lstArgs[14]);
                break;
            }
            return(result);
        }