Ejemplo n.º 1
0
        protected void tbxFCustomer_OnTextChanged(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(tbxFCustomer.Text.Trim()))
            {
                var custmoer = CustomerService.Where(p => p.FName == tbxFCustomer.Text.Trim() && //
                                                     p.FCompanyId == CurrentUser.AccountComId).FirstOrDefault();
                if (custmoer != null)
                {
                    txtFCode.Text             = custmoer.FCode;
                    ddlFAddress.SelectedValue = custmoer.FAddress.Trim();
                    //txtFAddress.Text = custmoer.FAddress.Trim();
                    txtFFreight.Text = custmoer.FFreight.ToString();
                    txtFLinkman.Text = custmoer.FLinkman;
                    txtFPhone.Text   = custmoer.FPhome;

                    GasHelper.DropDownListOrgDataBind(ddlFOrgName, custmoer.FCode);

                    GasHelper.DropDownListAddressDataBind(ddlFAddress, custmoer.FCode);
                }
            }
        }