//Edit Mode private void GetLoadTempDataToControl(DTO.PersonTemp company) { MasterPage.PersonId = company.ID; if (!company.MEMBER_TYPE.Equals(DTO.MemberType.Insurance.GetEnumValue().ToString())) { MasterPage.ModelError.ShowMessageError = SysMessage.UserMissMatchRegitrationData; MasterPage.ModelError.ShowModalError(); } txtCompanyRegister.Text = company.COMP_CODE; ddlTitle.SelectedValue = company.PRE_NAME_CODE; txtFirstName.Text = company.NAMES; txtLastName.Text = company.LASTNAME; txtIDCard.Text = company.ID_CARD_NO; txtIDCard.Enabled = false; rblSex.SelectedValue = company.SEX; txtCompanyTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(company.LOCAL_TELEPHONE); txtCompanyTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(company.LOCAL_TELEPHONE); txtTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(company.TELEPHONE); txtTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(company.TELEPHONE); txtEmail.Text = company.EMAIL; txtEmail.Enabled = false; UcAddress.TextBoxAddress.Text = company.ADDRESS_1; UcAddress.SelectDropDownStep(company.PROVINCE_CODE, company.AREA_CODE, company.TUMBON_CODE); UcAddress.TextBoxPostCode.Text = company.ZIP_CODE; txtCompany.Text = new BLL.DataCenterBiz().GetCompanyNameById(company.COMP_CODE); UcAddress.DropdownParish.SelectedValue = company.TUMBON_CODE; if (company.STATUS != null) { Session["Status"] = company.STATUS.ToString(); //Set status after approve } }
private void GetLoadDataToControl(DTO.Registration asscoent) { BLL.DataCenterBiz dcbiz = new BLL.DataCenterBiz(); BLL.PersonBiz biz = new BLL.PersonBiz(); BLL.DataCenterBiz dataCenter = new BLL.DataCenterBiz(); var res = biz.GetUserProfileById(this.MasterPage.UserProfile.Id); this.MasterPage.AttachFileControl.RegisterationId = this.MasterPage.UserProfile.Id; this.MasterPage.AttachFileControl.CurrentUser = this.UserProfile.LoginName; this.MasterPage.RegistrationId = asscoent.ID; if (!asscoent.MEMBER_TYPE.Equals(DTO.MemberType.Association.GetEnumValue().ToString())) { MasterPage.ModelError.ShowMessageError = SysMessage.UserMissMatchRegitrationData; MasterPage.ModelError.ShowModalError(); } txtAssociationRegister.Text = asscoent.COMP_CODE; ddlTitle.SelectedValue = asscoent.PRE_NAME_CODE; txtFirstName.Text = asscoent.NAMES; txtLastName.Text = asscoent.LASTNAME; txtIDCard.Text = asscoent.ID_CARD_NO; txtIDCard.Enabled = false; rblSex.Text = asscoent.SEX; txtAssociationTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(asscoent.LOCAL_TELEPHONE); txtAssociationTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(asscoent.LOCAL_TELEPHONE); txtTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(asscoent.TELEPHONE); txtTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(asscoent.TELEPHONE); txtEmail.Text = asscoent.EMAIL; txtEmail.Enabled = false; UcAddress.TextBoxAddress.Text = asscoent.ADDRESS_1; UcAddress.TextBoxPostCode.Text = asscoent.ZIP_CODE; //var strName = dcbiz.GetAssociateNameById(asscoent.COMP_CODE); DTO.ResponseService <DTO.ASSOCIATION> strName = dcbiz.GetInsuranceAssociateNameByID(asscoent.COMP_CODE); if (strName.DataResponse != null) { txtAssociation.Text = strName.DataResponse.ASSOCIATION_NAME + " " + "[" + asscoent.COMP_CODE + "]"; } else { txtAssociation.Text = "Name[Null]" + " " + "[" + asscoent.COMP_CODE + "]"; } this.MasterPage.TextBoxResultReg.Text = asscoent.APPROVE_RESULT; UcAddress.SelectDropDownStep(asscoent.PROVINCE_CODE, asscoent.AREA_CODE, asscoent.TUMBON_CODE); }
private void GetLoadDataToControl(DTO.Registration companyent) { BLL.DataCenterBiz dcbiz = new BLL.DataCenterBiz(); BLL.PersonBiz biz = new BLL.PersonBiz(); BLL.DataCenterBiz dataCenter = new BLL.DataCenterBiz(); var res = biz.GetUserProfileById(this.MasterPage.UserProfile.Id); this.MasterPage.AttachFileControl.RegisterationId = this.MasterPage.UserProfile.Id; this.MasterPage.AttachFileControl.CurrentUser = this.UserProfile.LoginName; this.MasterPage.RegistrationId = companyent.ID; if (!companyent.MEMBER_TYPE.Equals(DTO.MemberType.Insurance.GetEnumValue().ToString())) { MasterPage.ModelError.ShowMessageError = SysMessage.UserMissMatchRegitrationData; MasterPage.ModelError.ShowModalError(); } rblSex.SelectedValue = companyent.SEX;//milk txtCompanyRegister.Text = companyent.COMP_CODE; ddlTitle.SelectedValue = companyent.PRE_NAME_CODE; txtFirstName.Text = companyent.NAMES; txtLastName.Text = companyent.LASTNAME; txtIDNumber.Text = companyent.ID_CARD_NO; txtIDNumber.Enabled = false; txtCompanyTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(companyent.LOCAL_TELEPHONE); txtCompanyTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(companyent.LOCAL_TELEPHONE); txtTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(companyent.TELEPHONE); txtTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(companyent.TELEPHONE); txtEmail.Text = companyent.EMAIL; txtEmail.Enabled = false; UcAddress.TextBoxAddress.Text = companyent.ADDRESS_1; UcAddress.TextBoxPostCode.Text = companyent.ZIP_CODE; var strName = dcbiz.GetCompanyNameById(companyent.COMP_CODE); txtCompany.Text = strName; this.MasterPage.TextBoxResultReg.Text = companyent.APPROVE_RESULT; UcAddress.SelectDropDownStep(companyent.PROVINCE_CODE, companyent.AREA_CODE, companyent.TUMBON_CODE); }
//View Mode protected void GetLoadDataToControl(DTO.Person insurance) { BLL.DataCenterBiz dcbiz = new BLL.DataCenterBiz(); MasterPage.PersonId = insurance.ID; if (!insurance.MEMBER_TYPE.Equals(DTO.MemberType.Association.GetEnumValue().ToString())) { MasterPage.ModelError.ShowMessageError = SysMessage.UserMissMatchRegitrationData; MasterPage.ModelError.ShowModalError(); } txtAssociationRegister.Text = insurance.COMP_CODE; ddlTitle.SelectedValue = insurance.PRE_NAME_CODE; txtFirstName.Text = insurance.NAMES; txtLastName.Text = insurance.LASTNAME; txtIDCard.Text = insurance.ID_CARD_NO; txtIDCard.Enabled = false; rblSex.SelectedValue = insurance.SEX; rblSex.Enabled = false; txtAssociationTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(insurance.LOCAL_TELEPHONE); txtAssociationTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(insurance.LOCAL_TELEPHONE); txtTel.Text = LocalTelephoneNumberHelper.GetPhoneNumber(insurance.TELEPHONE); txtTelExt.Text = LocalTelephoneNumberHelper.GetExtenNumber(insurance.TELEPHONE); txtEmail.Text = insurance.EMAIL; txtEmail.Enabled = false; UcAddress.TextBoxAddress.Text = insurance.ADDRESS_1; UcAddress.SelectDropDownStep(insurance.PROVINCE_CODE, insurance.AREA_CODE, insurance.TUMBON_CODE); UcAddress.TextBoxPostCode.Text = insurance.ZIP_CODE; txtAssociation.Text = new BLL.DataCenterBiz().GetInsuranceAssociateNameByID(insurance.COMP_CODE).DataResponse.ASSOCIATION_NAME + " " + "[" + insurance.COMP_CODE + "]"; UcAddress.DropdownParish.SelectedValue = insurance.TUMBON_CODE; if (insurance.STATUS != null) { Session["Status"] = insurance.STATUS.ToString(); //Set status after approve } if (insurance.STATUS != Convert.ToString((int)DTO.PersonDataStatus.WaitForApprove)) { MasterPage.ResultRegister = insurance.APPROVE_RESULT; } }