public void bindPagedata(string typecode) { PrjInfoModel pIM = new PrjInfoModel(); pIM = PrjInfoAction.GetSingleInfo(typecode.ToString()); this.TextBind(pIM); }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { this.txt_StartDate.Attributes["onactivate"] = "getBeginDate();"; this.txt_EndDate.Attributes["onactivate"] = "getEndDate();"; this.hdnSeeType.Value = base.Request.QueryString["SeeType"]; this.Drop_QualityClass_Bind(); this.Drop_PrjKindClass_Bind(); this.ddt_stateBind(); this.ddt_Area_Bind(); this.Drop_zzGrade_Bind(); this.Drop_ysType_Bind(); this.Drop_cbType_Bind(); this.Drop_Payment_Bind(); this.Drop_zbType_Bind(); this.Drop_jsType_Bind(); this.Drop_PrimaryGrade_Bind(); this.Drop_jzType_Bind(); this.fatherPrj_Bind(); if (base.Request.QueryString["OpType"] != "ADD") { this.ViewState["INFOCODE"] = base.Request.QueryString["Code"]; PrjInfoModel pIM = new PrjInfoModel(); pIM = PrjInfoAction.GetSingleInfo(this.ViewState["INFOCODE"].ToString()); this.TextBind(pIM); } else { this.txt_StartDate.Text = DateTime.Now.ToString("yyyy-M-dd"); this.txt_EndDate.Text = DateTime.Now.ToString("yyyy-M-dd"); this.ViewState["INFOCODE"] = Guid.NewGuid(); } if (base.Request.QueryString["OpType"] == "SEE") { this.btnSave.Visible = false; } this.HdnPrjCode.Value = this.ViewState["INFOCODE"].ToString(); } this.FilesBind(18); }