コード例 #1
0
ファイル: FrmEdicioncs.cs プロジェクト: debanhinava/ShoesApp2
 private void FrmEdicion_Load(object sender, EventArgs e)
 {
     if (txtIdProdEd.Text != null)
     {
         DataProductsEntities dtp     = new DataProductsEntities();
         NegocioProducts      negoPro = new NegocioProducts();
         List <dena_sp_BusquedaProdId_Result> LstId = negoPro.ListaPorId(int.Parse(txtIdProdEd.Text));
         foreach (var item in LstId.ToList())
         {
             try
             {
                 txtNombrePro.Text     = item.Nombre;
                 txtIdBrand.Text       = item.IdBrand.ToString();
                 txtIdCatalog.Text     = item.IdCatalog.ToString();
                 txtIdColor.Text       = item.IdColor.ToString();
                 txtIdProvider.Text    = item.IdProvider.ToString();
                 txtIdType.Text        = item.IdType.ToString();
                 txtKeywords.Text      = item.Keywords.ToString();
                 txtDescription.Text   = item.Description.ToString();
                 txtPriceClient.Text   = item.PriceClient.ToString();
                 txtObservations.Text  = item.Observations.ToString();
                 txtPriceD.Text        = item.PriceDistributor.ToString();
                 txtPriceMem.Text      = item.PriceMember.ToString();
                 txtTitle.Text         = item.Title.ToString();
                 chkIsEnabled.Checked  = item.IsEnabled;
                 dateTimePicker1.Value = item.DateUpdate.Value;
             }
             catch (Exception)
             {
             }
         }
     }
 }
コード例 #2
0
ファイル: FrmEdicioncs.cs プロジェクト: debanhinava/ShoesApp2
        public void AgregarProd(int IdType, int IdColor, int IdBrand, int IdProvider, int IdCatalog, string Title, string Nombre, string Description, string Observations, decimal PriceDistributor, decimal PriceClient, decimal PriceMember, bool IsEnabled, string Keywords, DateTime DateUpdate)
        {
            NegocioProducts objNegocio = new NegocioProducts();

            objNegocio.AgregarProd(IdType, IdColor, IdBrand, IdProvider, IdCatalog, Title, Nombre, Description, Observations, PriceDistributor, PriceClient, PriceMember, IsEnabled, Keywords, DateUpdate);
        }