public TDPStandardPrice(PDT_StandardPrice m)
 {
     if (m != null) FillModel(m.ID);
 }
    protected void Page_Load(object sender, System.EventArgs e)
    {
        ddl_FitSalesArea = (DropDownList)pl_detail.FindControl("PDT_StandardPrice_FitSalesArea");
        ddl_FitRTChannel = (DropDownList)pl_detail.FindControl("PDT_StandardPrice_FitRTChannel");

        // 在此处放置用户代码以初始化页面
        if (!Page.IsPostBack)
        {
            #region 获取页面参数
            ViewState["ID"] = Request.QueryString["ID"] != null ? int.Parse(Request.QueryString["ID"]) : 0;
            #endregion

            BindDropDown();

            if ((int)ViewState["ID"] != 0)
            {
                //修改
                BindData();
            }
            else
            {
                //新增
                PDT_StandardPrice s = new PDT_StandardPrice();
                s.IsDefault = "N";
                s.IsEnabled = "Y";
                pl_detail.BindData(s);

                UpdatePanel2.Visible = false;
                tr_List.Visible = false;
                tr_NotInList.Visible = false;
            }

        }
    }