private void BindDiscalimerValues() { Membership objMember = DesclaimerController.GetDisclaimerByRFIDNo(RFIDNumber); Disclaimer objDis = DesclaimerController.GetDisclaimerByMemberId(MemberId); txtRFIDCardNumber.Text = objDis.RFIDNo; objDis.date = UtillController.ConvertDateTime(Convert.ToDateTime(txtDate.Text).ToString().Substring(0, 10)); txtHeight.Text = objDis.height; txtWeight.Text = objDis.weight; txtFrameSize.Text = objDis.frameSize; txtName1.Text = objDis.emergencyRefName1; txtRelation1.Text = objDis.emergencyRefRelationship1; txtMobileno1.Text = objDis.emergencyRefMobNo1; txtLandline1.Text = objDis.emergencyRefLandLineNo1; txtArea1.Text = objDis.emeregencyArea1; txtName2.Text = objDis.emergencyRefName2; txtRelation2.Text = objDis.emergencyRefRelationship2; txtMobileno2.Text = objDis.emergencyRefMobNo2; txtLandline2.Text = objDis.emergencyRefLandLineNo2; txtArea2.Text = objDis.emeregencyArea2; txtName3.Text = objDis.emergencyRefName3; txtRelation3.Text = objDis.emergencyRefRelationship3; txtMobileno3.Text = objDis.emergencyRefMobNo3; txtLandline3.Text = objDis.emergencyRefLandLineNo3; txtArea3.Text = objDis.emeregencyArea3; txtFamDocName.Text = objDis.familyDoctorName; txtFamDocNo.Text = objDis.familyDoctorMobileNumber; new DesclaimerController().UpdateDisclaimer(objDis); }
//protected void btnNext1_Click(object sender, EventArgs e) protected void Details() { Membership objMember = DesclaimerController.GetDisclaimerByRFIDNo(MemberId); Lead objLead = LeadController.GetLeadById(objMember.LeadId); DateTime dob; int age = 0; txtRFIDCardNumber.Text = objMember.RFIDCardNumber; dob = (DateTime)objLead.dateOfBirth; age = DateTime.Now.Year; age = age - dob.Year; txtAge.Text = Convert.ToString(age); txtDate.Text = Convert.ToString(objLead.insertDate).Substring(0, 10); txtName.Text = objLead.firstName; txtRegNumber.Text = Convert.ToString(objMember.AgreementNo); txtAddress.Text = objLead.address; txtCity.Text = objLead.city; txtEmail.Text = objLead.Email; txtMobileNumber.Text = objLead.mobileNumber; txtSex.Text = objLead.gender; lblAgreeNum.Text = objMember.AgreementNo; lblTitle.Text = objMember.Title + " " + objLead.firstName + " " + objLead.lastName + " "; pnlLeadsDetails.Visible = true; updtpnl1.Visible = true; MeasurementPanelVisibility(true, false); pnlOffice.Visible = true; pnlLeadsDetails.Visible = true; updtpnl1.Visible = true; Pnlnext1.Visible = false; pnlSave.Visible = true; Disclaimer objDis = DesclaimerController.GetDisclaimerByMemberId(MemberId); txtRFIDCardNumber.Text = objMember.RFIDCardNumber; txtDate.Text = Convert.ToString(DateTime.Now).Substring(0, 10); if (objDis == null) { txtHeight.Text = ""; txtWeight.Text = ""; txtFrameSize.Text = ""; txtName1.Text = ""; txtRelation1.Text = ""; txtMobileno1.Text = ""; txtLandline1.Text = ""; txtArea1.Text = ""; txtName2.Text = ""; txtRelation2.Text = ""; txtMobileno2.Text = ""; txtLandline2.Text = ""; txtArea2.Text = ""; txtName3.Text = ""; txtRelation3.Text = ""; txtMobileno3.Text = ""; txtLandline3.Text = ""; txtArea3.Text = ""; txtFamDocName.Text = ""; txtFamDocNo.Text = ""; } else { txtHeight.Text = objDis.height; txtWeight.Text = objDis.weight; txtFrameSize.Text = objDis.frameSize; txtName1.Text = objDis.emergencyRefName1; txtRelation1.Text = objDis.emergencyRefRelationship1; txtMobileno1.Text = objDis.emergencyRefMobNo1; txtLandline1.Text = objDis.emergencyRefLandLineNo1; txtArea1.Text = objDis.emeregencyArea1; txtName2.Text = objDis.emergencyRefName2; txtRelation2.Text = objDis.emergencyRefRelationship2; txtMobileno2.Text = objDis.emergencyRefMobNo2; txtLandline2.Text = objDis.emergencyRefLandLineNo2; txtArea2.Text = objDis.emeregencyArea2; txtName3.Text = objDis.emergencyRefName3; txtRelation3.Text = objDis.emergencyRefRelationship3; txtMobileno3.Text = objDis.emergencyRefMobNo3; txtLandline3.Text = objDis.emergencyRefLandLineNo3; txtArea3.Text = objDis.emeregencyArea3; txtFamDocName.Text = objDis.familyDoctorName; txtFamDocNo.Text = objDis.familyDoctorMobileNumber; // new DesclaimerController().UpdateDisclaimer(objDis); //BindQuestions(); } }