WebSRM/App_Data/MssqlReportData.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/xmlSRM_POInStockBill.aspx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/xmlSRM_POInStockBill.aspx.designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebSRM/App_Data/MssqlReportData.cs
@@ -14,9 +14,9 @@ //连接SQL Server数据库的连接串,应该修改为与实际一致。如果是运行Grid++Report本身的例子,应该首先附加例子数据库到 //SQL Server2000/2005数据库上。 //public const string SqlConnStr = "Data Source=(local);Initial Catalog=gridreport;Persist Security Info=True;User ID=sa;Password=;"; //public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; //夏宝 public const string SqlConnStr = "Data Source=192.168.1.239;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; //public const string SqlConnStr = "Data Source=192.168.1.239;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; //安瑞 //public const string SqlConnStr = "Data Source=.;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; @@ -165,11 +165,22 @@ SqlDataAdapter DataAdapter = new SqlDataAdapter(item.QuerySQL, ReportConn); DataAdapter.Fill(ReportDataSet, item.RecordsetName); } LogService.Write(ReportDataSet); ReportConn.Close(); XMLReportData.GenDataSet(DataPage, ReportDataSet, ReportDataBase.DefaultDataType); } public static void GenEntireData1(System.Web.UI.Page DataPage, System.Collections.Generic.List<ReportQueryItem> SqlList) { LogService.Write(SqlList); ArrayList QueryList = new ArrayList(); for (int i = 0; i < SqlList.Count; i++) { QueryList.Add(new ReportQueryItem(SqlList[i].QuerySQL.ToString(), "tb" + i)); } LogService.Write(QueryList); GenMultiRecordset(DataPage, QueryList); } //特别提示:以下函数为兼容以前版本而保留,请勿再用之,无须兼容考虑可删除之 //<<保留前面版本的函数,兼容以前版本所写程序 WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/xmlSRM_POInStockBill.aspx
@@ -4,26 +4,26 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script runat="server"> protected void Page_Load(object sender, EventArgs e) { //★特别提示★: //不同的数据库应该选用不同的报表XML数据生成类,SQL Server数据库用SqlXMLReportData,Oracle数据库用OracleXMLReportData //OledbXMLReportData适合于Access等本地数据库,为了演示方便,这里从Grid++Report的Access例子数据库中获取报表数据 //OledbXMLReportData.GenOneRecordset(this, "select * from Customers order by CustomerID"); //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_Kf_POStockInBillList_K3 where hmainid=1781"); SqlXMLReportData.GenOneRecordset(this, "select * from h_v_SRM_POInStockBillList where hmainid=" + Request.Params["linterid"]+ " order by 物料代码"); } </script> protected void Page_Load(object sender, EventArgs e) { List<ReportQueryItem> SqlList = new List<ReportQueryItem>(); for (int i = 0; i <2; i++) { SqlList.Add(new ReportQueryItem("select * from h_v_SRM_POInStockBillList where hmainid in(31690) order by 物料代码", "tb"+i)); } //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_Gy_EquipFileMainList where hmainid=" + Request.Params["linterid"]); SqlXMLReportData.GenEntireData1(this,SqlList); //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_SRM_POInStockBillList where hmainid in(31690) order by 物料代码"); } </script> </head> <body> <form id="form1" runat="server"> <div> </div> <div> </div> </form> </body> </html> WebSRM/layuiAdmin.std-v1.2.1/src/views/SRM/xmlSRM_POInStockBill.aspx.designer.cs
@@ -2,16 +2,18 @@ // <自动生成> // 此代码由工具生成。 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // 对此文件的更改可能导致不正确的行为,如果 // 重新生成代码,则所做更改将丢失。 // </自动生成> //------------------------------------------------------------------------------ namespace WebSRM.layuiAdmin.std_v1._2._1.src.views.SRM { public partial class xmlSRM_POInStockBill { namespace WebSRM.layuiAdmin.std_v1._2._1.src.views.SRM { public partial class xmlSRM_POInStockBill { /// <summary> /// form1 控件。 /// </summary>