예제 #1
0
 public AddressBiz(IRepositry <AddressMain> entityDal, BizParameters bizParameters, AddressVerificationHdrBiz addressVerificationHdrBiz, PersonBiz personBiz, CountryBiz countryBiz)
     : base(entityDal, bizParameters, personBiz, countryBiz)
 {
     //_personBiz = personBiz;
     _countryBiz = countryBiz;
     _addressVerificationTrxBiz = addressVerificationHdrBiz.AddressVerificationTrxBiz;
     _addressVerificationHdrBiz = addressVerificationHdrBiz;
 }
예제 #2
0
        private void LoadDropDownlist()
        {
            ddlCountry.DataSource = CountryBiz.GetCountry();

            ddlCountry.DataBind();


            //  LoadThana(-1);
        }
예제 #3
0
        MailLocalOrForiegnENUM GetMailLocalOrForiegnEnum(string countryId)
        {
            switch (CountryBiz.IsAddressInPakistan(countryId))
            {
            case true:
                return(MailLocalOrForiegnENUM.InPakistan);

            default:
                return(MailLocalOrForiegnENUM.OutOfPakistan);
            }
        }
예제 #4
0
        public double getVerificaionCost(AddressVerificationRequest avr)
        {
            string error            = "";
            double verificationCost = 0;

            switch (avr.MailServiceEnum)
            {
            case MailServiceENUM.Post:
                switch (CountryBiz.IsAddressInPakistan(avr.CountryId))
                {
                case true:
                    //is in Pakistan
                    verificationCost = VerificationConfig.Sale_Postal_Local;
                    break;

                case false:
                    //is foreign
                    verificationCost = VerificationConfig.Sale_Postal_International;
                    break;

                default:
                    error = string.Format("No such option");
                    throw new Exception(error);
                }
                break;

            case MailServiceENUM.Courier:
                switch (CountryBiz.IsAddressInPakistan(avr.CountryId))
                {
                case true:
                    //is in Pakistan
                    verificationCost = VerificationConfig.Sale_Courier_Local;
                    break;

                case false:
                    verificationCost = VerificationConfig.Sale_Courier_International;
                    //is foreign
                    break;

                default:
                    error = string.Format("No such option");
                    throw new Exception(error);
                }
                break;

            default:
                error = string.Format("No such option: {0}", avr.MailServiceEnum);
                throw new Exception(error);
            }

            return(verificationCost);
        }
예제 #5
0
        private void LoadDropDownlist()
        {
            ddlPropertyType.DataSource = PropertyTypeBiz.GetPropertyType();
            ddlPropertyType.DataBind();

            ddlCountry.DataSource = CountryBiz.GetCountry();

            ddlCountry.DataBind();
            ckblPropertyFacilities.DataSource = PropertyFacilityTypeBiz.GetPropertyFacilityType();
            ckblPropertyFacilities.DataBind();
            ckblPropertySecurity.DataSource = PropertySecurityTypeBiz.GetPropertySecurityType();
            ckblPropertySecurity.DataBind();

            //  LoadThana(-1);
        }
예제 #6
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            BuildCombo(cmbOccupation, SlmScr010Biz.GetOccupationData(false));
            BuildCombo(cmbBrand, SlmScr010Biz.GetBrandDataNew(), "กรุณาระบุ");
            BuildCombo(cmbCarType, SlmScr010Biz.GetInsuranceCarTypeDataNew(), "กรุณาระบุ");
            BuildCombo(cmbProvince, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbOProvince, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbDProvince, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbCardType, CardTypeBiz.GetCardTypeList());
            BuildCombo(cmbDocBranch, BranchBiz.GetBranchList(1));
            BuildCombo(cmbProvinceRegis, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbCountry, CountryBiz.GetCountryList());

            AppUtil.SetAutoCompleteDropdown(new DropDownList[] {
                cmbBrand,
                cmbModel,
                cmbCountry
            }
                                            , Page
                                            , this.ClientID + "_Autocomplete");
        }
예제 #7
0
 public PhoneBiz(IRepositry <Phone> entityDal, BizParameters bizParameters, PersonBiz personBiz, CountryBiz countryBiz)
     : base(entityDal, bizParameters, personBiz, countryBiz)
 {
 }
예제 #8
0
 public AddressVerificationTrxBiz(IRepositry <AddressVerificationTrx> entityDal, BizParameters bizParameters, CountryBiz countryBiz)
     : base(entityDal, bizParameters)
 {
     //_userBiz = userBiz;
     _countryBiz = countryBiz;
 }
예제 #9
0
파일: Tab006.ascx.cs 프로젝트: KKPBank/SLM
        private void DoSearchCBSExistingProductList(int pageIndex, string sortExpression, SortDirection sortDirection)
        {
            try
            {
                IEnumerable <ExistingProductData> result = new List <ExistingProductData>(); //SlmScr006Biz.SearchExistingProduct(txtCitizenId.Text.Trim());
                string CIFCardType = !string.IsNullOrEmpty(txtCardTypeId.Text)?CardTypeBiz.GetCardTypeCIF(Convert.ToInt32(txtCardTypeId.Text)):"";
                string CountryCode = !string.IsNullOrEmpty(txtCountryId.Text)?CountryBiz.GetCountryCodeById(Convert.ToInt32(txtCountryId.Text)).CountryCode:"";

                if (!string.IsNullOrEmpty(txtCitizenId.Text) && !string.IsNullOrEmpty(CIFCardType) && !string.IsNullOrEmpty(CountryCode))
                {
                    result = InquiryCustomerSingleView(txtCitizenId.Text, CIFCardType, CountryCode);
                }
                else
                {
                    gvExistProduct.EmptyDataText = "<center><span style='color:Red;'>ไม่พบข้อมูล</span></center>";
                }

                #region "Manage Sort Expression"

                if (sortExpression == "ProductGroup")
                {
                    if (sortDirection == SortDirection.Ascending)
                    {
                        result = result.OrderBy(p => p.ProductGroup).ToList();
                    }
                    else
                    {
                        result = result.OrderByDescending(p => p.ProductGroup).ToList();
                    }
                }
                else if (sortExpression == "ContactNo")
                {
                    if (sortDirection == SortDirection.Ascending)
                    {
                        result = result.OrderBy(p => p.ContactNo).ToList();
                    }
                    else
                    {
                        result = result.OrderByDescending(p => p.ContactNo).ToList();
                    }
                }
                else if (sortExpression == "StartDate")
                {
                    if (sortDirection == SortDirection.Ascending)
                    {
                        result = result.OrderBy(p => p.StartDate).ToList();
                    }
                    else
                    {
                        result = result.OrderByDescending(p => p.StartDate).ToList();
                    }
                }
                else if (sortExpression == "EndDate")
                {
                    if (sortDirection == SortDirection.Ascending)
                    {
                        result = result.OrderBy(p => p.EndDate).ToList();
                    }
                    else
                    {
                        result = result.OrderByDescending(p => p.EndDate).ToList();
                    }
                }
                else if (sortExpression == "Status")
                {
                    if (sortDirection == SortDirection.Ascending)
                    {
                        result = result.OrderBy(p => p.Status).ToList();
                    }
                    else
                    {
                        result = result.OrderByDescending(p => p.Status).ToList();
                    }
                }
                #endregion

                BindGridview((SLM.Application.Shared.GridviewPageController)pcTop, result.ToArray(), pageIndex);
                upResult.Update();

                pnTab006.Visible = true;
            }
            catch
            {
                throw;
            }
        }
예제 #10
0
 public ContactAbstractBiz(IRepositry <TEntity> entityDal, BizParameters bizParameters, PersonBiz personBiz, CountryBiz countryBiz)
     : base(entityDal, bizParameters)
 {
     _personBiz  = personBiz;
     _countryBiz = countryBiz;
 }
예제 #11
0
 //PersonBiz _personBiz;
 public EmailAddressBiz(IRepositry <EmailAddress> entityDal, BizParameters bizParameters, PersonBiz personBiz, CountryBiz countryBiz)
     : base(entityDal, bizParameters, personBiz, countryBiz)
 {
     //_personBiz = personBiz;
 }