Ejemplo n.º 1
0
 private void ShowInfo()
 {
     Maticsoft.Model.Shop.Supplier.SupplierInfo model = new Maticsoft.BLL.Shop.Supplier.SupplierInfo().GetModel(base.SupplierId);
     if (model != null)
     {
         this.lblSupplierId.Text = model.SupplierId.ToString();
         this.lblName.Text = model.Name;
         this.lblIntroduction.Text = model.Introduction;
         if (model.RegisteredCapital.HasValue)
         {
             this.lblRegisteredCapital.Text = model.RegisteredCapital.ToString();
         }
         this.lblTelPhone.Text = model.TelPhone;
         this.lblCellPhone.Text = model.CellPhone;
         this.lblContactMail.Text = model.ContactMail;
         if (model.RegionId.HasValue)
         {
             this.RegionID.Region_iID = model.RegionId.Value;
         }
         this.lblAddress.Text = model.Address;
         this.lblRemark.Text = model.Remark;
         this.lblContact.Text = model.Contact;
         this.lblUserName.Text = model.UserName;
         if (model.EstablishedDate.HasValue)
         {
             this.lblEstablishedDate.Text = model.EstablishedDate.ToString();
         }
         if (model.EstablishedCity.HasValue)
         {
             this.RegionEstablishedCity.Region_iID = model.EstablishedCity.Value;
         }
         this.lblLOGO.Text = model.LOGO;
         this.lblFax.Text = model.Fax;
         this.lblPostCode.Text = model.PostCode;
         this.lblHomePage.Text = model.HomePage;
         this.lblArtiPerson.Text = model.ArtiPerson;
         this.lblEnteRank.Text = this.GetSuppRank(model.Rank);
         this.lblEnteClassName.Text = this.GetEnteClassName(model.CategoryId);
         if (model.CompanyType.HasValue)
         {
             this.lblCompanyType.Text = this.GetCompanyType(model.CompanyType);
         }
         this.lblBusinessLicense.Text = model.BusinessLicense;
         this.lblTaxNumber.Text = model.TaxNumber;
         this.lblAccountBank.Text = model.AccountBank;
         this.lblAccountInfo.Text = model.AccountInfo;
         this.lblServicePhone.Text = model.ServicePhone;
         this.lblQQ.Text = model.QQ;
         this.lblMSN.Text = model.MSN;
         this.lblStatus.Text = this.GetStatus(model.Status);
         this.lblCreatedDate.Text = model.CreatedDate.ToString();
         this.lblCreatedUserID.Text = model.UserName;
         if (model.UpdatedDate.HasValue)
         {
             this.lblUpdatedDate.Text = model.UpdatedDate.ToString();
         }
         User user = new User();
         if (model.UpdatedUserId.HasValue)
         {
             this.lblUpdatedUserID.Text = user.GetUserNameByCache(model.UpdatedUserId.Value);
         }
         this.lblBalance.Text = model.Balance.ToString("F2");
         this.lblAgentID.Text = model.AgentId.ToString();
     }
 }