예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //设置左边菜单
     var mst = this.Master as Member_Manage_MasterPage;
     mst.SetMenuTitle("交易管理", "已卖出的货品");
     
     string act=Request["action"];
     if (!string.IsNullOrEmpty(act))
     {
         switch (act)
         {
             case "pager":
                 BindData();
                 break;
             case "od_det":
                 var bl = new DS_Orders_Br();
                 var js = new System.Web.Script.Serialization.JavaScriptSerializer();
                 var md = bl.GetSingle(int.Parse(Request["id"]));
                 Response.Write(js.Serialize(md));
                 Response.End();
                 break;
             case "del":
                 var oddbl = new DS_OrderDetail_Br();
                 oddbl.Delete(int.Parse(Request.Form["id"]));
                 Response.End();
                 break;
         }
         return;
     }
     if (IsPostBack) return;
     BindData();
 }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //设置左边菜单
        var mst = this.Master as Member_Manage_MasterPage;

        mst.SetMenuTitle("交易管理", "已卖出的货品");

        string act = Request["action"];

        if (!string.IsNullOrEmpty(act))
        {
            switch (act)
            {
            case "pager":
                BindData();
                break;

            case "od_det":
                var bl = new DS_Orders_Br();
                var js = new System.Web.Script.Serialization.JavaScriptSerializer();
                var md = bl.GetSingle(int.Parse(Request["id"]));
                Response.Write(js.Serialize(md));
                Response.End();
                break;

            case "del":
                var oddbl = new DS_OrderDetail_Br();
                oddbl.Delete(int.Parse(Request.Form["id"]));
                Response.End();
                break;
            }
            return;
        }
        if (IsPostBack)
        {
            return;
        }
        BindData();
    }