protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { this.TemGID = Guid.NewGuid().ToString(); string text = this.Session["yhdm"].ToString(); DataTable dataTable = PersonnelAction.QueryPersonnelById(text); if (dataTable != null && dataTable.Rows.Count == 1) { this.Session["HumanName"] = dataTable.Rows[0]["v_xm"].ToString(); } this.Session["HumanCode"] = text; if (this._Action == "edit") { this.FileLink1.Type = 1; this.FileLink1.FID = this._Ic; this.ToInitialize(); return; } if (this._Action == "add") { this.FileLink1.Type = 2; this.FileLink1.FID = this.TemGID.ToString(); if (this._PrjCode != "" && this._PrjCode.Length == 36) { PMModel pMModel = new PMModel(); pMModel = PMAction.GetSingleInfoByPrjGuid(this._PrjCode); if (pMModel != null) { this.txtaccountNum.Value = pMModel.PrjCode; this.txtacountName.Value = pMModel.PrjName; return; } } } else { this.FileLink1.Type = 0; this.FileLink1.FID = this._Ic; this.ToInitialize(); this.initSate(); } } }