Пример #1
0
 private void FormPurchase_Load(object sender, EventArgs e)
 {
     if (Role == 1)
     {
         EntityReport entityReport = new EntityReport();
         entityReport.MadeReportComing(tableForReport);
     }
     else
     {
         EntityReport entityRep = new EntityReport();
         entityRep.MadeReportPurchase(tableForReport);
     }
 }
Пример #2
0
        public CompositionForm(int role, string id)
        {
            InitializeComponent();
            Role = role;
            Id   = id;
            EntityReport report = new EntityReport();

            if (Role == 1)
            {
                report.CopmositionForProvider(tableForProducts, Id);
            }
            else
            {
                report.CopmositionForPurchase(tableForProducts, Id);
            }
        }