Exemplo n.º 1
0
        private void InitData()
        {
            BLL.PersonBiz biz = new BLL.PersonBiz();
            var           res = biz.GetById(this.UserProfile.Id);

            if (!res.IsError)
            {
                var person = res.DataResponse;

                ddlTitle.SelectedValue       = person.PRE_NAME_CODE;
                txtFirstName.Text            = person.NAMES;
                txtLastName.Text             = person.LASTNAME;
                txtIDNumber.Text             = person.ID_CARD_NO;
                txtBirthDay.Text             = person.BIRTH_DATE.Value.ToString("dd MMMM yyyy");
                rblSex.SelectedValue         = person.SEX;
                ddlNationality.SelectedValue = person.NATIONALITY;
                ddlEducation.SelectedValue   = person.EDUCATION_CODE;
                txtEmail.Text          = person.EMAIL;
                txtTel.Text            = person.LOCAL_TELEPHONE;
                txtMobilePhone.Text    = person.TELEPHONE;
                txtCurrentAddress.Text = person.ADDRESS_1;

                var message = SysMessage.DefaultSelecting;

                BLL.DataCenterBiz dataCenter = new BLL.DataCenterBiz();
                ddlProvinceCurrentAddress.SelectedValue = person.PROVINCE_CODE;
                var lsPC = dataCenter.GetAmpur(message, ddlProvinceCurrentAddress.SelectedValue);
                BindToDDL(ddlDistrictCurrentAddress, lsPC);

                ddlDistrictCurrentAddress.SelectedValue = person.AREA_CODE;
                var lsTC = dataCenter.GetTumbon(message, ddlProvinceCurrentAddress.SelectedValue, ddlDistrictCurrentAddress.SelectedValue);
                BindToDDL(ddlParishCurrentAddress, lsTC);

                ddlParishCurrentAddress.SelectedValue = person.TUMBON_CODE;

                txtPostcodeCurrentAddress.Text = person.ZIP_CODE;
                txtRegisterAddress.Text        = person.LOCAL_ADDRESS1;

                ddlProvinceRegisterAddress.SelectedValue = person.LOCAL_PROVINCE_CODE;
                var lsPR = dataCenter.GetAmpur(message, ddlProvinceRegisterAddress.SelectedValue);
                BindToDDL(ddlDistrictRegisterAddress, lsPR);

                ddlDistrictRegisterAddress.SelectedValue = person.LOCAL_AREA_CODE;
                var lsTR = dataCenter.GetTumbon(message, ddlProvinceRegisterAddress.SelectedValue, ddlDistrictRegisterAddress.SelectedValue);
                BindToDDL(ddlParishRegisterAddress, lsTR);

                ddlParishRegisterAddress.SelectedValue = person.TUMBON_CODE;

                txtPostcodeRegisterAddress.Text = person.LOCAL_ZIPCODE;
            }
            else
            {
                var errorMsg = res.ErrorMsg;

                AlertMessage.ShowAlertMessage(string.Empty, errorMsg);
            }
        }
Exemplo n.º 2
0
        protected void ddlProvince_SelectedIndexChanged(object sender, EventArgs e)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetAmpur(SysMessage.DefaultSelecting, ddlProvince.SelectedValue);

            BindToDDL(ddlDistrict, ls);
            ddlParish.SelectedIndex = 0;
        }
Exemplo n.º 3
0
        protected void ddlProvince_SelectedIndexChanged(object sender, EventArgs e)
        {
            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetAmpur(SysMessage.DefaultSelecting, UcAddress.DropdownProvince.SelectedValue);

            BindToDDL(UcAddress.DropdownDistrict, ls);

            UcAddress.DropdownParish.SelectedValue = "";
        }
Exemplo n.º 4
0
        protected void ddlProvinceRegisterAddress_SelectedIndexChanged(object sender, EventArgs e)
        {
            var message = SysMessage.DefaultSelecting;

            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetAmpur(message, UcRegisAdd.DropdownProvince.SelectedValue);

            BindToDDL(UcRegisAdd.DropdownDistrict, ls);
        }
Exemplo n.º 5
0
        protected void ddlProvinceCurrentAddress_SelectedIndexChanged(object sender, EventArgs e)
        {
            var message = SysMessage.DefaultSelecting;

            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetAmpur(message, ddlProvinceCurrentAddress.SelectedValue);

            BindToDDL(ddlDistrictCurrentAddress, ls);
        }
Exemplo n.º 6
0
        private void GetDistrict()
        {
            var message = SysMessage.DefaultSelecting;

            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetAmpur(message, ddlProvinceAddress.SelectedValue);

            BindToDDL(ddlDistrictAddress, ls);
            ddlParishAddress.Items.Clear();
        }
Exemplo n.º 7
0
        private void InitData()
        {
            BLL.PersonBiz biz = new BLL.PersonBiz();
            var           res = biz.GetUserProfileById(this.UserProfile.Id);

            BLL.DataCenterBiz dtbiz = new BLL.DataCenterBiz();

            if (!res.IsError)
            {
                var person = res.DataResponse;

                ddlPlaceGroup.SelectedValue = person.COMP_CODE;
                ddlTitle.SelectedValue      = person.PRE_NAME_CODE;
                txtFirstName.Text           = person.NAMES;
                txtLastName.Text            = person.LASTNAME;
                txtIDNumber.Text            = person.ID_CARD_NO;
                txtIDNumber.Enabled         = false;
                rblSex.Text           = person.SEX;
                txtTel.Text           = person.TELEPHONE;
                txtPlaceGroupTel.Text = person.LOCAL_TELEPHONE;
                txtEmail.Text         = person.EMAIL;
                txtEmail.Enabled      = false;
                txtAddress.Text       = person.ADDRESS_1;
                txtPostcode.Text      = person.ZIP_CODE;

                var message = SysMessage.DefaultSelecting;

                BLL.DataCenterBiz dataCenter = new BLL.DataCenterBiz();
                ddlProvince.SelectedValue = person.PROVINCE_CODE;
                var lsPC = dataCenter.GetAmpur(message, ddlProvince.SelectedValue);
                BindToDDL(ddlDistrict, lsPC);

                ddlDistrict.SelectedValue = person.AREA_CODE;
                var lsTC = dataCenter.GetTumbon(message, ddlProvince.SelectedValue, ddlDistrict.SelectedValue);
                BindToDDL(ddlParish, lsTC);

                ddlParish.SelectedValue = person.TUMBON_CODE;
            }
            else
            {
                UCModalError.ShowMessageError = res.ErrorMsg;
                UCModalError.ShowModalError();
            }
        }
Exemplo n.º 8
0
        private void InitData()
        {
            ResponseService <Registration> res;

            using (BLL.RegistrationBiz biz = new BLL.RegistrationBiz())
            {
                res = biz.GetById(this.UserProfile.Id);
            }


            if (!res.IsError)
            {
                var registeration = res.DataResponse;

                if (registeration.STATUS == "3")
                {
                    PnlAddButton.Visible = true;
                }
                else
                {
                    PnlAddButton.Visible = false;
                }

                Session["UserID"] = this.UserProfile.Id;

                Session["RegisterationID"] = registeration.ID;

                ucAttachFileControl1.RegisterationId = this.RegisterationID;
                ucAttachFileControl1.CurrentUser     = this.UserProfile.Id;

                ddlTitle.SelectedValue = registeration.PRE_NAME_CODE;
                txtFirstName.Text      = registeration.NAMES;
                txtLastName.Text       = registeration.LASTNAME;
                txtIDNumber.Text       = registeration.ID_CARD_NO;
                txtIDNumber.Enabled    = false;
                //Added By Nattapong @23/8/56
                if (registeration.BIRTH_DATE != null)
                {
                    txtBirthDay.CssClass = "txt";
                    txtBirthDay.Text     = registeration.BIRTH_DATE.Value.ToString("dd/MM/yyyy");
                }
                else
                {
                    txtBirthDay.CssClass = "txt";
                    txtBirthDay.Text     = "-";
                }

                rblSex.SelectedValue = registeration.SEX;
                if (registeration.NATIONALITY != null)
                {
                    ddlNationality.SelectedValue = registeration.NATIONALITY;
                }

                ddlEducation.SelectedValue = registeration.EDUCATION_CODE;
                txtEmail.Text       = registeration.EMAIL;
                txtTel.Text         = registeration.LOCAL_TELEPHONE;
                txtMobilePhone.Text = registeration.TELEPHONE;
                UcCurrentAdd.TextBoxAddress.Text = registeration.ADDRESS_1;

                var message = SysMessage.DefaultSelecting;

                BLL.DataCenterBiz dataCenter = new BLL.DataCenterBiz();
                UcCurrentAdd.DropdownProvince.SelectedValue = registeration.PROVINCE_CODE;
                var lsPC = dataCenter.GetAmpur(message, UcCurrentAdd.DropdownProvince.SelectedValue);
                BindToDDL(UcCurrentAdd.DropdownDistrict, lsPC);

                UcCurrentAdd.DropdownDistrict.SelectedValue = registeration.AREA_CODE;
                var lsTC = dataCenter.GetTumbon(message, UcCurrentAdd.DropdownProvince.SelectedValue, UcCurrentAdd.DropdownDistrict.SelectedValue);
                BindToDDL(UcCurrentAdd.DropdownParish, lsTC);

                UcCurrentAdd.DropdownParish.SelectedValue = registeration.TUMBON_CODE;

                UcCurrentAdd.TextBoxAddress.Text = registeration.ZIP_CODE;
                UcRegisAdd.TextBoxAddress.Text   = registeration.LOCAL_ADDRESS1;

                UcRegisAdd.DropdownProvince.SelectedValue = registeration.LOCAL_PROVINCE_CODE;
                var lsPR = dataCenter.GetAmpur(message, UcRegisAdd.DropdownProvince.SelectedValue);
                BindToDDL(UcRegisAdd.DropdownDistrict, lsPR);

                UcRegisAdd.DropdownDistrict.SelectedValue = registeration.LOCAL_AREA_CODE;
                var lsTR = dataCenter.GetTumbon(message, UcRegisAdd.DropdownProvince.SelectedValue, UcRegisAdd.DropdownDistrict.SelectedValue);
                BindToDDL(UcRegisAdd.DropdownParish, lsTR);

                UcRegisAdd.DropdownParish.SelectedValue = registeration.LOCAL_TUMBON_CODE;

                UcRegisAdd.TextBoxAddress.Text = registeration.LOCAL_ZIPCODE;

                txtResultReg.Text = registeration.APPROVE_RESULT;
            }
            else
            {
                UCModalError.ShowMessageError = res.ErrorMsg;
                UCModalError.ShowModalError();
            }
        }
Exemplo n.º 9
0
        protected void hplViewDoc_Click(object sender, EventArgs e)
        {
            pnlAttach.Visible = false;
            var gv             = (GridViewRow)((LinkButton)sender).NamingContainer;
            var strNumber      = (Label)gv.FindControl("lblIDNumberGv");
            var strGroupNumber = (Label)gv.FindControl("lblGroupIDNumberGv");
            var status         = (Label)gv.FindControl("lblStatus");

            hdfNumber.Value      = strNumber.Text;
            hdfGroupNumber.Value = strGroupNumber.Text;
            var biz = new BLL.LicenseBiz();
            var res = biz.GetLicenseVerifyDetail(strGroupNumber.Text, strNumber.Text);

            pnlDetail.Visible = true;

            txtFirstName.Text       = res.DataResponse.NAMES == "" ? "" : res.DataResponse.NAMES;
            txtLastName.Text        = res.DataResponse.LASTNAME == "" ? "" : res.DataResponse.LASTNAME;
            txtIDNumber.Text        = res.DataResponse.ID_CARD_NO == "" ? "" : res.DataResponse.ID_CARD_NO;
            txtTitle.Text           = res.DataResponse.TITLE_NAME == "" ? "" : res.DataResponse.TITLE_NAME;
            txtDateLicense.Text     = Convert.ToString(res.DataResponse.LICENSE_DATE) == "" ? "" : string.Format("{0:dd/MM/yyyy}", res.DataResponse.LICENSE_DATE);
            txtExpireDate.Text      = Convert.ToString(res.DataResponse.LICENSE_EXPIRE_DATE) == "" ? "" : string.Format("{0:dd/MM/yyyy}", res.DataResponse.LICENSE_EXPIRE_DATE);
            txtNumberLicense.Text   = res.DataResponse.LICENSE_NO == "" ? "" : res.DataResponse.LICENSE_NO;
            txtEmail.Text           = res.DataResponse.EMAIL == "" ? "" : res.DataResponse.EMAIL;
            txtTimeMove.Text        = res.DataResponse.RENEW_TIMES == "" ? "" : res.DataResponse.RENEW_TIMES;
            txtCompCode.Text        = res.DataResponse.OLD_COMP_CODE == "" ? "" : res.DataResponse.OLD_COMP_CODE;
            txtFee.Text             = Convert.ToString(res.DataResponse.FEES) == "" ? "" : Convert.ToString(res.DataResponse.FEES);
            txtCurrentAddress.Text  = res.DataResponse.CURRENT_ADDRESS == "" ? "" : res.DataResponse.CURRENT_ADDRESS;
            txtRegisterAddress.Text = res.DataResponse.LOCAL_ADDRESS == "" ? "" : res.DataResponse.LOCAL_ADDRESS;
            txtDateAccept.Text      = Convert.ToString(res.DataResponse.AR_DATE) == "" ? "" : Convert.ToString(res.DataResponse.AR_DATE);

            var message = SysMessage.DefaultSelecting;

            BLL.DataCenterBiz dataCenter = new BLL.DataCenterBiz();
            ddlProvinceCurrentAddress.SelectedValue = res.DataResponse.CURRENT_PROVINCE_CODE;
            var lsPC = dataCenter.GetAmpur(message, ddlProvinceCurrentAddress.SelectedValue);

            BindToDDL(ddlDistrictCurrentAddress, lsPC);
            foreach (var item in lsPC)
            {
                if (item.Id == res.DataResponse.CURRENT_AMPUR_CODE)
                {
                    ddlDistrictCurrentAddress.SelectedValue = res.DataResponse.CURRENT_AMPUR_CODE;
                }
            }

            var lsTC = dataCenter.GetTumbon(message, ddlProvinceCurrentAddress.SelectedValue, ddlDistrictCurrentAddress.SelectedValue);

            BindToDDL(ddlParishCurrentAddress, lsTC);
            foreach (var item in lsTC)
            {
                if (item.Id == res.DataResponse.CURRENT_TUMBON_CODE)
                {
                    ddlParishCurrentAddress.SelectedValue = res.DataResponse.CURRENT_TUMBON_CODE;
                }
            }

            ddlProvinceRegisterAddress.SelectedValue = res.DataResponse.LOCAL_PROVINCE_CODE;
            var lsPR = dataCenter.GetAmpur(message, ddlProvinceRegisterAddress.SelectedValue);

            BindToDDL(ddlDistrictRegisterAddress, lsPR);
            foreach (var item in lsPR)
            {
                if (item.Id == res.DataResponse.LOCAL_AMPUR_CODE)
                {
                    ddlDistrictRegisterAddress.SelectedValue = res.DataResponse.LOCAL_AMPUR_CODE;
                }
            }

            var lsTR = dataCenter.GetTumbon(message, ddlProvinceRegisterAddress.SelectedValue, ddlDistrictRegisterAddress.SelectedValue);

            BindToDDL(ddlParishRegisterAddress, lsTR);
            foreach (var item in lsTR)
            {
                if (item.Id == res.DataResponse.LOCAL_TUMBON_CODE)
                {
                    ddlParishRegisterAddress.SelectedValue = res.DataResponse.LOCAL_TUMBON_CODE;
                }
            }


            UpdatePanelSearch.Update();
            var HeaderApprove = biz.GetVerifyHeadByUploadGroupNo(strGroupNumber.Text);

            if (res.DataResponse.APPROVED == "Y")
            {
                rblApprove.SelectedValue = "Y";
            }
            else if (res.DataResponse.APPROVED == "N")
            {
                rblApprove.SelectedValue = "N";
            }
            else if (res.DataResponse.APPROVED == "W")
            {
                rblApprove.ClearSelection();
            }
        }
Exemplo n.º 10
0
        protected void hplViewDoc_Click(object sender, EventArgs e)
        {
            var gv             = (GridViewRow)((LinkButton)sender).NamingContainer;
            var strNumber      = (Label)gv.FindControl("lblIDNumberGv");
            var strGroupNumber = (Label)gv.FindControl("lblGroupIDNumberGv");
            var status         = (Label)gv.FindControl("lblStatus");

            if (status.Text != "")
            {
                //btnSubmit.Enabled = false;
                //chkCodition.Checked = true;
                //chkCodition.Enabled = false;
            }
            else
            {
                //btnSubmit.Enabled = true;
                //chkCodition.Checked = false;
                //chkCodition.Enabled = true;
            }
            hdfNumber.Value      = strNumber.Text;
            hdfGroupNumber.Value = strGroupNumber.Text;
            var biz = new BLL.LicenseBiz();
            var res = biz.GetLicenseVerifyDetail(strGroupNumber.Text, strNumber.Text);

            pnlDetail.Visible = true;

            if (!string.IsNullOrEmpty(res.DataResponse.NAMES))
            {
                txtFirstName.Text = res.DataResponse.NAMES;
            }
            if (!string.IsNullOrEmpty(res.DataResponse.LASTNAME))
            {
                txtLastName.Text = res.DataResponse.LASTNAME;
            }
            if (!string.IsNullOrEmpty(res.DataResponse.ID_CARD_NO))
            {
                txtIDNumber.Text = res.DataResponse.ID_CARD_NO;
            }
            if (!string.IsNullOrEmpty(res.DataResponse.TITLE_NAME))
            {
                txtTitle.Text = res.DataResponse.TITLE_NAME;
            }
            if (!string.IsNullOrEmpty(Convert.ToString((res.DataResponse.LICENSE_DATE))))
            {
                txtDateLicense.Text = Convert.ToString(res.DataResponse.LICENSE_DATE);
            }
            if (!string.IsNullOrEmpty(Convert.ToString(res.DataResponse.LICENSE_EXPIRE_DATE)))
            {
                txtExpireDate.Text = Convert.ToString(res.DataResponse.LICENSE_EXPIRE_DATE);
            }
            if (!string.IsNullOrEmpty(res.DataResponse.LICENSE_NO))
            {
                txtNumberLicense.Text = res.DataResponse.LICENSE_NO;
            }
            if (!string.IsNullOrEmpty(res.DataResponse.EMAIL))
            {
                txtEmail.Text = res.DataResponse.EMAIL;
            }
            if (!string.IsNullOrEmpty(res.DataResponse.RENEW_TIMES))
            {
                txtTimeMove.Text = res.DataResponse.RENEW_TIMES;
            }
            if (!string.IsNullOrEmpty(res.DataResponse.OLD_COMP_CODE))
            {
                txtCompCode.Text = res.DataResponse.OLD_COMP_CODE;
            }
            if (!string.IsNullOrEmpty(Convert.ToString(res.DataResponse.FEES)))
            {
                txtFee.Text = Convert.ToString(res.DataResponse.FEES);
            }
            if (!string.IsNullOrEmpty(res.DataResponse.CURRENT_ADDRESS))
            {
                txtCurrentAddress.Text = res.DataResponse.CURRENT_ADDRESS;
            }
            if (!string.IsNullOrEmpty(res.DataResponse.LOCAL_ADDRESS))
            {
                txtRegisterAddress.Text = res.DataResponse.LOCAL_ADDRESS;
            }


            var message = SysMessage.DefaultSelecting;

            BLL.DataCenterBiz dataCenter = new BLL.DataCenterBiz();
            ddlProvinceCurrentAddress.SelectedValue = res.DataResponse.CURRENT_PROVINCE_CODE;
            var lsPC = dataCenter.GetAmpur(message, ddlProvinceCurrentAddress.SelectedValue);

            BindToDDL(ddlDistrictCurrentAddress, lsPC);

            ddlDistrictCurrentAddress.SelectedValue = res.DataResponse.CURRENT_AMPUR_CODE;
            var lsTC = dataCenter.GetTumbon(message, ddlProvinceCurrentAddress.SelectedValue, ddlDistrictCurrentAddress.SelectedValue);

            BindToDDL(ddlParishCurrentAddress, lsTC);

            ddlParishCurrentAddress.SelectedValue = res.DataResponse.CURRENT_TUMBON_CODE;

            ddlProvinceRegisterAddress.SelectedValue = res.DataResponse.LOCAL_PROVINCE_CODE;
            var lsPR = dataCenter.GetAmpur(message, ddlProvinceRegisterAddress.SelectedValue);

            BindToDDL(ddlDistrictRegisterAddress, lsPR);

            ddlDistrictRegisterAddress.SelectedValue = res.DataResponse.LOCAL_AMPUR_CODE;
            var lsTR = dataCenter.GetTumbon(message, ddlProvinceRegisterAddress.SelectedValue, ddlDistrictRegisterAddress.SelectedValue);

            BindToDDL(ddlParishRegisterAddress, lsTR);

            ddlParishRegisterAddress.SelectedValue = res.DataResponse.LOCAL_TUMBON_CODE;


            UpdatePanelSearch.Update();
        }