using SiteCore; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class EDelivery_YieldList : BasePage { protected override void OnPreInit(EventArgs e) { _repTitle = "生产列表"; PmTag = "YieldList"; //_selfCheckPermission = true; _keyFilterVisible = false; _addVisible = false; _filterDateBtn = false; _filterItem = "order,memo,order_area,place_time,shouhuo,unusualcon"; } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string sData = GetString("sData"); if (sData != "") AppendScript("openPageData=" + sData + ";"); AppendScript("printPageUrl='" + webConfig.SiteUrl + "';"); AppendScript("userPostCode='" + CurrentUser.UserPost.Post.Code + "';"); AppendScript("cdrImgUrl='" + webConfig.ltFileSiteUrl + "/d/ws';"); //StringBuilder sql = new StringBuilder(); //sql.AppendFormat("select * from s_runinfotype"); //DataSet ds = DbHelper.DbConn.ExecuteDataset(sql.ToString()); //DataTable dt = ds.Tables[0]; //AppendScript("tData=" + JsonString.DataTable2Json(dt) + ";"); //selType.DataSource = dt; //selType.DataValueField = "ID"; //selType.DataTextField = "Name"; //selType.DataBind(); } //foreach (DataRow dr in dt.Rows) //{ //} } }