CommonManage.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*******************************************************************************
  2. * Copyright(c) 2012 dongke All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:CommonManage.cs
  5. * 2.功能描述:本系统的数据库访问封装类,所有数据访问都调用
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 周兴 2012/09/14 1.00 新建
  9. *******************************************************************************/
  10. using System;
  11. using System.Data;
  12. using System.Data.SqlClient;
  13. namespace Dongke.IBOSS.PRD.Basics.DataAccess
  14. {
  15. /// <summary>
  16. /// 本系统的数据库访问封装类,所有数据访问都调用
  17. /// </summary>
  18. public sealed class CommonManage
  19. {
  20. #region 属性
  21. /// <summary>
  22. /// 客户公司编码
  23. /// </summary>
  24. public static string LicenseCode
  25. {
  26. get;
  27. set;
  28. }
  29. #endregion
  30. //#region 获取票据格式列表
  31. ///// <summary>
  32. ///// 根据票据类型获取当前用户的票据列表
  33. ///// </summary>
  34. ///// <param name="organizationID">当前组织机构ID</param>
  35. ///// <param name="beginLetterCode">票据类型</param>
  36. ///// <returns>该票据类型的数据集</returns>
  37. ///// <remarks>
  38. ///// 2012-12-07 欧阳涛 新建
  39. ///// </remarks>
  40. //public static DataSet GetInvoiceLayout(int organizationID, string beginLetterCode, WebUserInfo webUserInfo)
  41. //{
  42. // // 非法数据,返回null
  43. // if (0 > organizationID || string.IsNullOrEmpty(beginLetterCode))
  44. // {
  45. // return null;
  46. // }
  47. // if (6 != beginLetterCode.Length)
  48. // {
  49. // return null;
  50. // }
  51. // try
  52. // {
  53. // SqlParameter[] parameters = new SqlParameter[]
  54. // {
  55. // new SqlParameter("@OrganizationID", organizationID),
  56. // new SqlParameter("@BeginLetterCode", beginLetterCode)
  57. // };
  58. // DataSet returnDataSet = DataManager.ExecuteDataset("usp_cmn_GetInvoiceList",
  59. // CommandType.StoredProcedure,
  60. // parameters);
  61. // return returnDataSet;
  62. // }
  63. // catch (Exception ex)
  64. // {
  65. // throw ex;
  66. // }
  67. //}
  68. //#endregion
  69. }
  70. }