Ejemplo n.º 1
0
        private void updateMaterial()
        {
            Entities.MaterialTo materialTo =
                new Entities.MaterialTo(long.Parse(tb_MaterialCode.Text), tb_NameMaterial.Text, int.Parse(ddl_UnitName.SelectedValue));

            BLL.Services.MaterialService cr_material = BLL.ServicesCreater.CreateMaterialService();
            cr_material.updateMaterial(materialTo);
        }
Ejemplo n.º 2
0
        private void addMaterial(string MaterialCode,
                                 string NameMaterial,
                                 string UnitCode)
        {
            Entities.MaterialTo materialTo =
                new Entities.MaterialTo(
                    long.Parse(MaterialCode),
                    NameMaterial,
                    int.Parse(UnitCode));

            BLL.Services.MaterialService cr_material = BLL.ServicesCreater.CreateMaterialService();
            cr_material.createMaterial(materialTo);
        }