Esempio n. 1
0
        //public IEnumerable<ShippingAddressEntity> GetShippingDetails(int CompanyId, string EntityType)
        //{
        //    ICompanyBL companyBL = new CompanyBL();
        //    IEnumerable<ShippingAddressEntity> result = companyBL.GetShippingDetails(CompanyId, EntityType);
        //    return result;
        //}
        //public IEnumerable<ShippingAddressEntity> GetSelectedShipDetails(int ShipId)
        //{
        //    ICompanyBL companyBL = new CompanyBL();
        //    IEnumerable<ShippingAddressEntity> result = companyBL.GetSelectedShipDetails(ShipId);
        //    return result;
        //}


        public bool AddCompany(CompanyDetailsEntities companyDetail)
        {
            ICompanyBL AddCompanyBL = new CompanyBL();
            var        addcomp      = AddCompanyBL.AddCompany(companyDetail);
            var        abc          = companyDetail;

            return(addcomp);
        }
Esempio n. 2
0
 // POST: api/Company
 public void Post(Company Objeto)
 {
     try
     {
         CompBL.AddCompany(Objeto);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
 }
Esempio n. 3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            CompanyBL companyBL = new CompanyBL();
            Company   comp      = new Company {
                AccountNumber = txtAccountNumber.Text, Address = txtAddress.Text, BankName = txtBankName.Text, IFSCCode = txtIFSC.Text, CINNum = txtCIN.Text, ContactPerson = txtContactPerson.Text, PANNumber = txtPAN.Text, Zip = txtZip.Text, State = new State {
                    ID = Convert.ToInt32(ddlState.SelectedValue), Name = ddlState.SelectedText, IsActive = true
                }, City = new City {
                    ID = Convert.ToInt32(ddlCity.SelectedValue), Name = ddlCity.SelectedText, IsActive = true
                }, Email = txtEmail.Text, GSTINNUM = txtGSTN.Text, IsActive = true, Name = txtCompName.Text, Phone = txtPhone.Text, Type = new CompanyType {
                    ID = Convert.ToInt32(ddlCompType.SelectedValue), Type = ddlCompType.SelectedText, IsActive = true
                }
            };
            int i = companyBL.AddCompany(comp);

            this.Close();
        }
Esempio n. 4
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            CompanyModel model = new CompanyModel();

            model.CompanyName = txtCompanyName.Value;
            model.DBAName     = txtDBA.Value;
            model.Address1    = txtAddress1.Value;
            model.Address2    = txtAddress2.Value;
            model.Zip         = txtZip.Value;
            model.Phone       = txtPhone.Value;
            model.Email       = txtEmail.Value;

            model.UserID = Sess.Person.UserID;

            CompanyBL compBL = new CompanyBL();

            compBL.AddCompany(model);

            Sess.Person.Reload();
            Response.Redirect("propertySetup.aspx");
        }