protected void ProjectID_SelectedIndexChanged(object sender, EventArgs e)
 {
     //绑定合同ID
     ContractID.DataSource     = WebBLL.Tbl_ProjectContractManager.GetTbl_ProjectContractProjectID(Convert.ToInt32(this.ProjectID.SelectedValue));
     ContractID.DataTextField  = "PC_Name";
     ContractID.DataValueField = "ID";
     ContractID.DataBind();
     ContractID.Items.Insert(0, new ListItem("选择合同", ""));
 }
 protected void ProjectID_SelectedIndexChanged(object sender, EventArgs e)
 {
     //根据不同类型绑定合同ID
     ContractID.DataSource     = WebBLL.Tbl_ProjectOuterManager.GetDataTableByPage(100, 1, "projectid=" + ProjectID.SelectedValue + " and po_type='" + Title + "'", "");;
     ContractID.DataTextField  = "PO_Name";
     ContractID.DataValueField = "ID";
     ContractID.DataBind();
     ContractID.Items.Insert(0, new ListItem("选择合同", ""));
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //设置只读权限
         if (Request.QueryString["type"] == "read")
         {
             btn_submit.Visible = false;
             ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "$(function(){$('input').attr('readonly', 'readonly');$('select').attr('disabled', 'true');$('textarea').attr('readonly', 'readonly');});", true);
         }
         //绑定合同ID
         ContractID.DataSource     = WebBLL.Tbl_ProjectContractManager.GetTbl_ProjectContractAll();
         ContractID.DataTextField  = "PC_Name";
         ContractID.DataValueField = "ID";
         ContractID.DataBind();
         Bind();
     }
 }