Exemplo n.º 1
0
        protected void MainCustomerGridBind()
        {
            iCompanySetupClient vendor = new iCompanySetupClient();

            try
            {
                CustomProfile profile = CustomProfile.GetProfile();
                List <V_WMS_GetVendorDetails> vend = new List <V_WMS_GetVendorDetails>();
                vend = vendor.GetVendorList(profile.DBConnection._constr).ToList();
                vend = vend.Where(v => v.CompanyID == profile.Personal.CompanyID).ToList();
                GvCustomer.DataSource = vend;
                GvCustomer.DataBind();
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, this, "Account Master", "MainCustomerGridBind");
            }
            finally
            {
                vendor.Close();
            }
        }