using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL.EC; using CY.Model; using CY.Infrastructure.Common; using CY.BLL.Integrity; using CY.BLL; using System.Threading.Tasks; using System.Transactions; using CY.BLL.OA; using System.Net; using System.IO; using System.Web.Script.Serialization; namespace CY.WebForm.Pages.Property { //吴辉 //卖家评价 public partial class ShebeiWeixiuDetail : BasePage { EC_OrderBasicBLL bll_EC_OrderBasicBLL = null; OA_FukuanshenqingBLL _oA_FukuanshenqingBLL = null; OA_SubjectSetBLL _OA_SubjectSetBLL = null; OA_StaffBLL bll_OA_StaffBLL = null; OA_WorkPlanBll oA_WorkReminderBll = null; OA_ShebeiManageBLL oA_ShebeiManageBLL = null; OA_ShebeiWeixiuBLL oA_ShebeiWeixiuBLL = null; public OA_ShebeiWeixiu oA_ShebeiWeixiu = new OA_ShebeiWeixiu(); public OA_ShebeiManage oA_ShebeiManage = new OA_ShebeiManage(); //初始化 public ShebeiWeixiuDetail() { bll_EC_OrderBasicBLL = new EC_OrderBasicBLL(); _oA_FukuanshenqingBLL = new OA_FukuanshenqingBLL(); bll_OA_StaffBLL = new OA_StaffBLL(); oA_WorkReminderBll = new OA_WorkPlanBll(); oA_ShebeiManageBLL = new OA_ShebeiManageBLL(); oA_ShebeiWeixiuBLL = new OA_ShebeiWeixiuBLL(); _OA_SubjectSetBLL = new OA_SubjectSetBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { try { switch (Request["Target"]) { case "change": Response.Write(reLoadAccountName(Request["TypeName"].ToString2())); break; case "GetSuplier": LoadCommunication(); break; default: if (!IsPostBack) { InitData(); } return; } } catch (Exception ex) { PAGEHandleException(ex); Response.Clear(); //Response.Write("-1"); Response.Write(ex.Message); } Response.End(); } //绑定数据 public void InitData() { var keyid = Request["Keyid"].ToInt32(); oA_ShebeiWeixiu = oA_ShebeiWeixiuBLL.GetModelByKeyid(keyid); oA_ShebeiManage = oA_ShebeiManageBLL.GetModelByKeyid(oA_ShebeiWeixiu.ShebeiId); this.txtPlanRemark.Value = oA_ShebeiWeixiu.Remark; } protected string reLoadAccountName(string selAcoountType) { var query = new Infrastructure.Query.Query(); if (!string.IsNullOrEmpty(selAcoountType)) { return JsonHelper.GetJsonStringByObject(oA_ShebeiManageBLL.SelectAllModel(query).Where(x => x.Status != 1 && x.Zerenren == selAcoountType.ToInt32())); } else { return JsonHelper.GetJsonStringByObject(oA_ShebeiManageBLL.SelectAllModel(query).Where(x => x.Status != 1)); } } /// /// 加载供应商 /// private void LoadCommunication() { //Response.Clear(); //string id = Request["id"]; //if (string.IsNullOrEmpty(id)) //{ // Response.Write("-2"); // return; //} //var oA_Suppliers = _OA_SuppliersBLL.getSingleSupplier(id); //Response.Write(null == oA_Suppliers ? "" : JsonHelper.GetJsonStringByObject(oA_Suppliers)); } } }