using SiteCore; using SQLData; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Utils.Serialization; public partial class EDesign_DesignList : BasePage { protected override void OnPreInit(EventArgs e) { _repTitle = "设计列表"; PmTag = "designlist"; //_selfCheckPermission = true; _keyFilterVisible = false; _addVisible = false; if (CurrentUser.UserPost.Post.Code.IndexOf("Place") != -1) { _filterItem = "order,shop,wang,fukuan,memo,cus,des,state,assign_time,designerhd,designtime"; } else { _filterItem = "order,shop,wang,fukuan,memo,cus,des,state,assign_time,designerhd"; } } protected void Page_Load(object sender, EventArgs e) { if (_permissions.Contains("transdesign")) { btnTransDesign.Visible = true; } else { btnTransDesign.Visible = false; } if (!IsPostBack) { string sData = GetString("sData"); if (sData != "") AppendScript("openPageData=" + sData + ";"); AppendScript("userPostCode='" + CurrentUser.UserPost.Post.Code + "';");//外协设计师填设计费 AppendScript("userOrgId=" + CurrentUser.UserPost.OrgID + ";"); //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) //{ //} } }