/// <summary> /// GET Registration Detail from AG_IAS_REGISTRATION_T /// </summary> private void GetRegistrationDetail() { RegistrationBiz biz = new RegistrationBiz(); //string personID = this.PersonID; var res = biz.GetByIdCard(this.PersonalIDCard); if (res != null) { string memberType = res.DataResponse.MEMBER_TYPE; this.MemberTypeSession = memberType; GetMembeTypeAfter(memberType); string compCode = res.DataResponse.COMP_CODE; GetCompanyByIdAfter(compCode); int title = Convert.ToInt32(res.DataResponse.PRE_NAME_CODE); GetTitleAfter(title); if (res.DataResponse.NAMES != null) { txtFirstNameAfterReg.Text = res.DataResponse.NAMES; } else { txtFirstNameAfterReg.Text = "-"; } if (res.DataResponse.LASTNAME != null) { txtLastNameAfterReg.Text = res.DataResponse.LASTNAME; } else { txtLastNameAfterReg.Text = "-"; } if (res.DataResponse.SEX != null) { rblSexAfterReg.SelectedValue = res.DataResponse.SEX; } else { rblSexAfterReg.SelectedIndex = 0; } if (res.DataResponse.ID_CARD_NO != null) { txtIDNumberAfterReg.Text = res.DataResponse.ID_CARD_NO; } else { txtIDNumberAfterReg.Text = "-"; } if (res.DataResponse.BIRTH_DATE != null) { txtBirthDayAfterReg.CssClass = "txt"; txtBirthDayAfterReg.Text = res.DataResponse.BIRTH_DATE.Value.ToString("dd MMMM yyyy"); } else { txtBirthDayAfterReg.CssClass = "txt"; txtBirthDayAfterReg.Text = "-"; } string education = res.DataResponse.EDUCATION_CODE; GetEducationAfter(education); string Nationality = res.DataResponse.NATIONALITY; GetNationalityAfter(Nationality); if (res.DataResponse.EMAIL != null) { txtEmailAfterReg.Text = res.DataResponse.EMAIL; } else { txtEmailAfterReg.Text = "-"; } if (res.DataResponse.LOCAL_TELEPHONE != null) { txtTelAfterReg.Text = res.DataResponse.LOCAL_TELEPHONE; } else { txtTelAfterReg.Text = "-"; } if (res.DataResponse.TELEPHONE != null) { txtMobilePhoneAfterReg.Text = res.DataResponse.TELEPHONE; } else { txtMobilePhoneAfterReg.Text = "-"; } //txtIDOicBeforeReg.Text = //txtIDMemberNumberAfterReg.Text = if (res.DataResponse.ADDRESS_1 != null) { txtCurrentAddressAfterReg.Text = res.DataResponse.ADDRESS_1; } else { txtCurrentAddressAfterReg.Text = "-"; } string province = this.NullableString(res.DataResponse.PROVINCE_CODE); string ampur = this.NullableString(res.DataResponse.AREA_CODE); string tumbon = this.NullableString(res.DataResponse.TUMBON_CODE); GetAddressByCriteria(DTO.ApproveAddressMode.Registration_regis.GetEnumValue().ToString(), province, ampur, tumbon); if (res.DataResponse.LOCAL_ADDRESS1 != null) { txtRegisterAddressAfterReg.Text = res.DataResponse.LOCAL_ADDRESS1; } else { txtRegisterAddressAfterReg.Text = "-"; } string localProvince = this.NullableString(res.DataResponse.LOCAL_PROVINCE_CODE); string localampur = this.NullableString(res.DataResponse.LOCAL_AREA_CODE); string localtumbon = this.NullableString(res.DataResponse.LOCAL_TUMBON_CODE); GetAddressByCriteria(DTO.ApproveAddressMode.Registration_local.GetEnumValue().ToString(), localProvince, localampur, localtumbon); if (res.DataResponse.ZIP_CODE != null) { txtZipCodeCurrentAddressAfterReg.Text = res.DataResponse.ZIP_CODE; } else //milk { txtZipCodeCurrentAddressAfterReg.Text = "-"; } if (res.DataResponse.LOCAL_ZIPCODE != null) { txtZipCodeRegisterAddressAfterReg.Text = res.DataResponse.LOCAL_ZIPCODE; } else//milk { txtZipCodeRegisterAddressAfterReg.Text = "-"; } //if ((res.DataResponse.AGENT_TYPE != "") && (res.DataResponse.AGENT_TYPE != null)) //{ // ddlAgentTypeAfter.SelectedValue = res.DataResponse.AGENT_TYPE; //} //else if ((res.DataResponse.AGENT_TYPE == "") || (res.DataResponse.AGENT_TYPE == null)) //{ // ListItem ddlList = new ListItem("", "", true); // ddlList.Selected = true; // ddlAgentTypeAfter.Items.Add(ddlList); //} } else { UCModalError.ShowMessageError = res.ErrorMsg; UCModalError.ShowModalError(); } }