| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- using SiteCore;
- using System;
- public partial class EOrder_OrderList : BasePage
- {
- protected override void OnPreInit(EventArgs e)
- {
- _repTitle = "订单列表";
- PmTag = "orderlist";
- //_selfCheckPermission = true;
- _filterItem = "order,shop,wang,fukuan,moeny,memo,cus,des,state,oldcus,assign_time,addwechat,upload_time,finish_time,backreason,isNewSearch,overtime";
- _keyFilterVisible = false;
- _addVisible = false;
- }
- protected void Page_Load(object sender, EventArgs e)
- {
- if (_permissions.Contains("downfile"))
- {
- btnDownloadFile.Visible = true;
- }
- else
- {
- btnDownloadFile.Visible = false;
- }
- if (_permissions.Contains("distribute"))
- {
- btnDistribute.Visible = true;
- }
- else
- {
- btnDistribute.Visible = false;
- }
- if (_permissions.Contains("export"))
- {
- btnExport.Visible = true;
- }
- else
- {
- btnExport.Visible = false;
- }
- if (_permissions.Contains("orderreset"))
- {
- btnOrderReset.Visible = true;
- }
- else
- {
- btnOrderReset.Visible = false;
- }
- if (_permissions.Contains("orderdelete"))
- {
- btnOrderDelete.Visible = true;
- }
- else
- {
- btnOrderDelete.Visible = false;
- }
- if (_permissions.Contains("returncash"))
- {
- btnReturnCash.Visible = true;
- }
- else
- {
- btnReturnCash.Visible = false;
- }
- if (_permissions.Contains("addneworder"))
- {
- btnaddNewOrder.Visible = true;
- }
- else
- {
- btnaddNewOrder.Visible = false;
- }
- if (_permissions.Contains("clearrefund"))
- {
- btnClearRefund.Visible = true;
- }
- else
- {
- btnClearRefund.Visible = false;
- }
- if (_permissions.Contains("aftersale"))
- {
- btnAfterSale.Visible = true;
- }
- else
- {
- btnAfterSale.Visible = false;
- }
- if (_permissions.Contains("checked"))
- {
- btnChecked.Visible = true;
- }
- else
- {
- btnChecked.Visible = false;
- }
- if (!IsPostBack)
- {
- //downFrame.Text = "<iframe src=\"" + webConfig.ltDownLoadUrl + "\" style=\"width:0px;height:0px;display:none\" ></iframe>";
- string sData = GetString("sData");
- if (sData != "") AppendScript("openPageData=" + sData + ";");
- AppendScript("viewUrl='" + webConfig.ltFileSiteUrl + "/d/fx';uploadUrl ='" + webConfig.ltSimUploadUrl + "?ut=fx';");
- AppendScript("cdrImgUrl='" + webConfig.ltFileSiteUrl + "/d/ws';");
- AppendScript("downUrl='" + webConfig.ltDownLoadUrl + "';");
- AppendScript("userId='" + CurrentUser.UserID + "';");
- AppendScript("userPostCode='" + CurrentUser.UserPost.Post.Code + "';");
- //string ctid = GetString("ctid");
- //string tid = GetString("tid");
- //StringBuilder sql = new StringBuilder();
- //sql.AppendFormat("select * from view_erptradecell where ctid={0};",ctid);
- //sql.AppendFormat("select * from ce_erpBill where tid={0};",0);
- //sql.AppendFormat("select * from ce_ErpReturnCash where tid={0};",0);
- //sql.AppendFormat("select * from ce_erptradorder where tid={0};",0);
- //sql.AppendFormat("select * from ce_erptradeLog where AfterSaleState>=0 and ctid={0};",0);
- //DataSet ds = DbHelper.DbConn.ExecuteDataset(sql.ToString());
- //AppendScript("tradeData=" + JsonString.DataTable2AjaxJson(ds.Tables[0]) + ";");
- //AppendScript("billData=" + JsonString.DataTable2AjaxJson(ds.Tables[1]) + ";");
- //AppendScript("cashData=" + JsonString.DataTable2AjaxJson(ds.Tables[2]) + ";");
- //AppendScript("orderData=" + JsonString.DataTable2AjaxJson(ds.Tables[3]) + ";");
- //selType.DataSource = dt;
- //selType.DataValueField = "ID";
- //selType.DataTextField = "Name";
- //selType.DataBind();
- }
- //foreach (DataRow dr in dt.Rows)
- //{
- //}
- }
- }
|