protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Entities.ProjectTask_Cust_Contact c = BLL.ProjectTask_Cust_Contact.Instance.GetContactInfo(this.ContactID); this.txtAddress.Value = c.Address; this.txtBirthday.Value = c.Birthday; this.txtContactDepartment.Value = c.DepartMent; this.txtContactDuty.Value = c.Title; this.txtContactEmali.Value = c.Email; this.txtContactFax.Value = c.Fax; this.txtContactModel.Value = c.Phone; this.txtContactName.Value = c.CName; this.txtContactRemark.Value = c.Remarks; this.txtContactTele.Value = c.OfficeTel; this.txtMSN.Value = c.MSN; this.txtOfficeTypeCode.Value = c.OfficeTypeCode.ToString(); this.txtZipCode.Value = c.ZipCode; if (c.Sex == "1 ") { this.radioBoy.Checked = true; } else { this.radioGirl.Checked = true; } //this.PID = c.PID.ToString(); CC_Contact_Helper.BindParentContactToSelectEle(this.SelectPID, c.PTID, c.ID); this.SelectPID.SelectedIndex = this.SelectPID.Items.IndexOf(this.SelectPID.Items.FindByValue(c.PID.ToString())); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //得到客户的所有联系人,绑定到直接上级 CC_Contact_Helper.BindParentContactToSelectEle(this.SelectPID, TID, -1); } if (!IsPostBack) { FillPage(); _isShowMember = CheckShowMember(); } }