using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using Ajax; public partial class Common_cgfk_dy : System.Web.UI.Page { public string userinfo = ""; protected void Page_Load(object sender, EventArgs e) { DataTable dtuserinfo = DBHlper.Execute("select mingcheng,logourl from nr_sysuserinfo").Tables[0]; if (dtuserinfo.Rows.Count > 0) { userinfo = dtuserinfo.Rows[0]["mingcheng"].ToString(); img_logo.Src = "../UseFile/" + dtuserinfo.Rows[0]["logourl"].ToString(); } else { img_logo.Visible = false; } Utility.RegisterTypeForAjax(typeof(Common_cgfk_dy)); dyrq.Text = DateTime.Now.ToString("yyyy-MM-dd"); } [Ajax.AjaxMethod] public string[] getxinxi(int[] zu) { string[]code =new string[2]; string code1 = ""; string khname = ""; foreach (int i in zu) { DataSet ds = DBHlper.Execute("select *,(SELECT ISNULL(SUM(je), 0) FROM dbo.nr_z_cgrk WHERE (id=view_n_z_cgfk.mxid)) as zje from view_n_z_cgfk where id='" + i + "' order by id "); if (ds != null && ds.Tables[0].Rows.Count > 0) { //如果当前订单下存在明细就加载成tr行 foreach (DataRow r in ds.Tables[0].Rows) { khname = r["mingcheng"].ToString(); code1 += "