/******************************************************************************* * Copyright(c) 2012 dongke All rights reserved. / Confidential * 类的信息: * 1.程序名称:CommonManage.cs * 2.功能描述:本系统的数据库访问封装类,所有数据访问都调用 * 编辑履历: * 作者 日期 版本 修改内容 * 周兴 2012/09/14 1.00 新建 *******************************************************************************/ using System; using System.Data; using System.Data.SqlClient; namespace Dongke.IBOSS.PRD.Basics.DataAccess { /// /// 本系统的数据库访问封装类,所有数据访问都调用 /// public sealed class CommonManage { #region 属性 /// /// 客户公司编码 /// public static string LicenseCode { get; set; } #endregion //#region 获取票据格式列表 ///// ///// 根据票据类型获取当前用户的票据列表 ///// ///// 当前组织机构ID ///// 票据类型 ///// 该票据类型的数据集 ///// ///// 2012-12-07 欧阳涛 新建 ///// //public static DataSet GetInvoiceLayout(int organizationID, string beginLetterCode, WebUserInfo webUserInfo) //{ // // 非法数据,返回null // if (0 > organizationID || string.IsNullOrEmpty(beginLetterCode)) // { // return null; // } // if (6 != beginLetterCode.Length) // { // return null; // } // try // { // SqlParameter[] parameters = new SqlParameter[] // { // new SqlParameter("@OrganizationID", organizationID), // new SqlParameter("@BeginLetterCode", beginLetterCode) // }; // DataSet returnDataSet = DataManager.ExecuteDataset("usp_cmn_GetInvoiceList", // CommandType.StoredProcedure, // parameters); // return returnDataSet; // } // catch (Exception ex) // { // throw ex; // } //} //#endregion } }