Zbiór zmian 88 dla Baza Reklam 2 - Faktury

Pokaż
Ignoruj:
Data:
2008-12-28 18:28:08 (17 years ago)
Autor:
dorota
Opis:

proformy...

Lokalizacja:
Baza Reklam 2 - Faktury
Pliki:
7 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • Baza Reklam 2 - Faktury/FactureViewer.Designer.cs

    r73 r88  
    3232            System.Windows.Forms.Label nUMERLabel; 
    3333            this.splitContainer1 = new System.Windows.Forms.SplitContainer(); 
     34            this.groupBox2 = new System.Windows.Forms.GroupBox(); 
     35            this.nUMERTextBox = new System.Windows.Forms.TextBox(); 
     36            this.fAKTURYBindingSource = new System.Windows.Forms.BindingSource(this.components); 
     37            this.rEKLAMADataSet = new Baza_Reklam.REKLAMADataSet(); 
     38            this.label1 = new System.Windows.Forms.Label(); 
     39            this.opisTextBox = new System.Windows.Forms.TextBox(); 
    3440            this.groupBox1 = new System.Windows.Forms.GroupBox(); 
    3541            this.label2 = new System.Windows.Forms.Label(); 
     
    4046            this.typComboBox = new System.Windows.Forms.ComboBox(); 
    4147            this.zapiszButton = new System.Windows.Forms.Button(); 
    42             this.label1 = new System.Windows.Forms.Label(); 
    43             this.opisTextBox = new System.Windows.Forms.TextBox(); 
    44             this.fAKTURYBindingSource = new System.Windows.Forms.BindingSource(this.components); 
    45             this.rEKLAMADataSet = new Baza_Reklam.REKLAMADataSet(); 
    4648            this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer(); 
    4749            this.fAKTURYTableAdapter = new Baza_Reklam.REKLAMADataSetTableAdapters.FAKTURYTableAdapter(); 
     
    5153            this.raporty = new Baza_Reklam.raporty(); 
    5254            this.fAKTURA_DETAILS2TableAdapter = new Baza_Reklam.raportyTableAdapters.FAKTURA_DETAILS2TableAdapter(); 
    53             this.groupBox2 = new System.Windows.Forms.GroupBox(); 
    54             this.nUMERTextBox = new System.Windows.Forms.TextBox(); 
    5555            nUMERLabel = new System.Windows.Forms.Label(); 
    5656            this.splitContainer1.Panel1.SuspendLayout(); 
    5757            this.splitContainer1.Panel2.SuspendLayout(); 
    5858            this.splitContainer1.SuspendLayout(); 
    59             this.groupBox1.SuspendLayout(); 
     59            this.groupBox2.SuspendLayout(); 
    6060            ((System.ComponentModel.ISupportInitialize)(this.fAKTURYBindingSource)).BeginInit(); 
    6161            ((System.ComponentModel.ISupportInitialize)(this.rEKLAMADataSet)).BeginInit(); 
     62            this.groupBox1.SuspendLayout(); 
    6263            ((System.ComponentModel.ISupportInitialize)(this.raporty)).BeginInit(); 
    63             this.groupBox2.SuspendLayout(); 
    6464            this.SuspendLayout(); 
     65            //  
     66            // nUMERLabel 
     67            //  
     68            nUMERLabel.AutoSize = true; 
     69            nUMERLabel.Location = new System.Drawing.Point(6, 99); 
     70            nUMERLabel.Name = "nUMERLabel"; 
     71            nUMERLabel.Size = new System.Drawing.Size(41, 13); 
     72            nUMERLabel.TabIndex = 7; 
     73            nUMERLabel.Text = "Numer:"; 
    6574            //  
    6675            // splitContainer1 
     
    8392            this.splitContainer1.SplitterDistance = 140; 
    8493            this.splitContainer1.TabIndex = 0; 
     94            //  
     95            // groupBox2 
     96            //  
     97            this.groupBox2.Controls.Add(nUMERLabel); 
     98            this.groupBox2.Controls.Add(this.nUMERTextBox); 
     99            this.groupBox2.Controls.Add(this.label1); 
     100            this.groupBox2.Controls.Add(this.opisTextBox); 
     101            this.groupBox2.Location = new System.Drawing.Point(12, 3); 
     102            this.groupBox2.Name = "groupBox2"; 
     103            this.groupBox2.Size = new System.Drawing.Size(477, 134); 
     104            this.groupBox2.TabIndex = 14; 
     105            this.groupBox2.TabStop = false; 
     106            this.groupBox2.Text = "Faktura"; 
     107            //  
     108            // nUMERTextBox 
     109            //  
     110            this.nUMERTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.fAKTURYBindingSource, "NUMER", true)); 
     111            this.nUMERTextBox.Location = new System.Drawing.Point(61, 99); 
     112            this.nUMERTextBox.Name = "nUMERTextBox"; 
     113            this.nUMERTextBox.Size = new System.Drawing.Size(58, 20); 
     114            this.nUMERTextBox.TabIndex = 8; 
     115            //  
     116            // fAKTURYBindingSource 
     117            //  
     118            this.fAKTURYBindingSource.DataMember = "FAKTURY"; 
     119            this.fAKTURYBindingSource.DataSource = this.rEKLAMADataSet; 
     120            //  
     121            // rEKLAMADataSet 
     122            //  
     123            this.rEKLAMADataSet.DataSetName = "REKLAMADataSet"; 
     124            this.rEKLAMADataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; 
     125            //  
     126            // label1 
     127            //  
     128            this.label1.AutoSize = true; 
     129            this.label1.Location = new System.Drawing.Point(13, 21); 
     130            this.label1.Name = "label1"; 
     131            this.label1.Size = new System.Drawing.Size(34, 13); 
     132            this.label1.TabIndex = 7; 
     133            this.label1.Text = "Opis: "; 
     134            //  
     135            // opisTextBox 
     136            //  
     137            this.opisTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.fAKTURYBindingSource, "opis", true)); 
     138            this.opisTextBox.Location = new System.Drawing.Point(61, 18); 
     139            this.opisTextBox.Multiline = true; 
     140            this.opisTextBox.Name = "opisTextBox"; 
     141            this.opisTextBox.Size = new System.Drawing.Size(410, 72); 
     142            this.opisTextBox.TabIndex = 4; 
    85143            //  
    86144            // groupBox1 
     
    180238            this.zapiszButton.UseVisualStyleBackColor = true; 
    181239            //  
    182             // label1 
    183             //  
    184             this.label1.AutoSize = true; 
    185             this.label1.Location = new System.Drawing.Point(13, 21); 
    186             this.label1.Name = "label1"; 
    187             this.label1.Size = new System.Drawing.Size(34, 13); 
    188             this.label1.TabIndex = 7; 
    189             this.label1.Text = "Opis: "; 
    190             //  
    191             // opisTextBox 
    192             //  
    193             this.opisTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.fAKTURYBindingSource, "opis", true)); 
    194             this.opisTextBox.Location = new System.Drawing.Point(61, 18); 
    195             this.opisTextBox.Multiline = true; 
    196             this.opisTextBox.Name = "opisTextBox"; 
    197             this.opisTextBox.Size = new System.Drawing.Size(410, 72); 
    198             this.opisTextBox.TabIndex = 4; 
    199             //  
    200             // fAKTURYBindingSource 
    201             //  
    202             this.fAKTURYBindingSource.DataMember = "FAKTURY"; 
    203             this.fAKTURYBindingSource.DataSource = this.rEKLAMADataSet; 
    204             //  
    205             // rEKLAMADataSet 
    206             //  
    207             this.rEKLAMADataSet.DataSetName = "REKLAMADataSet"; 
    208             this.rEKLAMADataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; 
    209             //  
    210240            // reportViewer1 
    211241            //  
     
    243273            //  
    244274            this.fAKTURA_DETAILS2TableAdapter.ClearBeforeFill = true; 
    245             //  
    246             // groupBox2 
    247             //  
    248             this.groupBox2.Controls.Add(nUMERLabel); 
    249             this.groupBox2.Controls.Add(this.nUMERTextBox); 
    250             this.groupBox2.Controls.Add(this.label1); 
    251             this.groupBox2.Controls.Add(this.opisTextBox); 
    252             this.groupBox2.Location = new System.Drawing.Point(12, 3); 
    253             this.groupBox2.Name = "groupBox2"; 
    254             this.groupBox2.Size = new System.Drawing.Size(477, 134); 
    255             this.groupBox2.TabIndex = 14; 
    256             this.groupBox2.TabStop = false; 
    257             this.groupBox2.Text = "Faktura"; 
    258             //  
    259             // nUMERLabel 
    260             //  
    261             nUMERLabel.AutoSize = true; 
    262             nUMERLabel.Location = new System.Drawing.Point(6, 99); 
    263             nUMERLabel.Name = "nUMERLabel"; 
    264             nUMERLabel.Size = new System.Drawing.Size(41, 13); 
    265             nUMERLabel.TabIndex = 7; 
    266             nUMERLabel.Text = "Numer:"; 
    267             //  
    268             // nUMERTextBox 
    269             //  
    270             this.nUMERTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.fAKTURYBindingSource, "NUMER", true)); 
    271             this.nUMERTextBox.Location = new System.Drawing.Point(61, 99); 
    272             this.nUMERTextBox.Name = "nUMERTextBox"; 
    273             this.nUMERTextBox.Size = new System.Drawing.Size(58, 20); 
    274             this.nUMERTextBox.TabIndex = 8; 
    275275            //  
    276276            // FactureViewer 
     
    288288            this.splitContainer1.Panel2.ResumeLayout(false); 
    289289            this.splitContainer1.ResumeLayout(false); 
     290            this.groupBox2.ResumeLayout(false); 
     291            this.groupBox2.PerformLayout(); 
     292            ((System.ComponentModel.ISupportInitialize)(this.fAKTURYBindingSource)).EndInit(); 
     293            ((System.ComponentModel.ISupportInitialize)(this.rEKLAMADataSet)).EndInit(); 
    290294            this.groupBox1.ResumeLayout(false); 
    291295            this.groupBox1.PerformLayout(); 
    292             ((System.ComponentModel.ISupportInitialize)(this.fAKTURYBindingSource)).EndInit(); 
    293             ((System.ComponentModel.ISupportInitialize)(this.rEKLAMADataSet)).EndInit(); 
    294296            ((System.ComponentModel.ISupportInitialize)(this.raporty)).EndInit(); 
    295             this.groupBox2.ResumeLayout(false); 
    296             this.groupBox2.PerformLayout(); 
    297297            this.ResumeLayout(false); 
    298298 
  • Baza Reklam 2 - Faktury/FactureViewer.cs

    r80 r88  
    9393        } 
    9494 
    95         public FactureViewer(int idFakt) 
     95    public FactureViewer(int idFakt) 
    9696        { 
    9797            InitializeComponent(); 
     
    580580            e.Cancel = true; 
    581581        } 
    582  
    583582   } 
    584583} 
  • Baza Reklam 2 - Faktury/FactureViewer.resx

    r73 r88  
    127127    <value>17, 17</value> 
    128128  </metadata> 
    129   <metadata name="rEKLAMADataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    130     <value>17, 17</value> 
    131   </metadata> 
    132129  <metadata name="fAKTURYTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    133130    <value>341, 17</value> 
  • Baza Reklam 2 - Faktury/ZamowieniaForm.Designer.cs

    r87 r88  
    100100            this.toolTip = new System.Windows.Forms.ToolTip(this.components); 
    101101            this.KlientLabel = new System.Windows.Forms.Label(); 
     102            this.proformaButton = new System.Windows.Forms.Button(); 
    102103            ((System.ComponentModel.ISupportInitialize)(this.zamowieniaDataGridView)).BeginInit(); 
    103104            ((System.ComponentModel.ISupportInitialize)(this.zamowieniaBindingSource)).BeginInit(); 
     
    387388            this.dodajButton.Location = new System.Drawing.Point(6, 291); 
    388389            this.dodajButton.Name = "dodajButton"; 
    389             this.dodajButton.Size = new System.Drawing.Size(52, 38); 
     390            this.dodajButton.Size = new System.Drawing.Size(40, 38); 
    390391            this.dodajButton.TabIndex = 3; 
    391392            this.dodajButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 
     
    421422            //  
    422423            this.fakturujButton.Image = ((System.Drawing.Image)(resources.GetObject("fakturujButton.Image"))); 
    423             this.fakturujButton.Location = new System.Drawing.Point(211, 290); 
     424            this.fakturujButton.Location = new System.Drawing.Point(222, 292); 
    424425            this.fakturujButton.Name = "fakturujButton"; 
    425426            this.fakturujButton.Size = new System.Drawing.Size(77, 38); 
     
    561562            //  
    562563            this.WydrukButton.Image = ((System.Drawing.Image)(resources.GetObject("WydrukButton.Image"))); 
    563             this.WydrukButton.Location = new System.Drawing.Point(171, 290); 
     564            this.WydrukButton.Location = new System.Drawing.Point(139, 291); 
    564565            this.WydrukButton.Name = "WydrukButton"; 
    565566            this.WydrukButton.Size = new System.Drawing.Size(34, 38); 
     
    584585            //  
    585586            this.edytujButton.Image = ((System.Drawing.Image)(resources.GetObject("edytujButton.Image"))); 
    586             this.edytujButton.Location = new System.Drawing.Point(64, 291); 
     587            this.edytujButton.Location = new System.Drawing.Point(52, 291); 
    587588            this.edytujButton.Name = "edytujButton"; 
    588             this.edytujButton.Size = new System.Drawing.Size(50, 38); 
     589            this.edytujButton.Size = new System.Drawing.Size(40, 38); 
    589590            this.edytujButton.TabIndex = 10; 
    590591            this.edytujButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 
     
    596597            //  
    597598            this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image"))); 
    598             this.button3.Location = new System.Drawing.Point(120, 291); 
     599            this.button3.Location = new System.Drawing.Point(98, 291); 
    599600            this.button3.Name = "button3"; 
    600             this.button3.Size = new System.Drawing.Size(45, 38); 
     601            this.button3.Size = new System.Drawing.Size(35, 38); 
    601602            this.button3.TabIndex = 11; 
    602603            this.button3.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 
     
    664665            // groupBox2 
    665666            //  
     667            this.groupBox2.Controls.Add(this.proformaButton); 
    666668            this.groupBox2.Controls.Add(this.dtpZmianaDaty); 
    667669            this.groupBox2.Controls.Add(this.zamowieniaDataGridView); 
     
    755757            this.KlientLabel.TabIndex = 15; 
    756758            this.KlientLabel.Text = "----"; 
     759            //  
     760            // proformaButton 
     761            //  
     762            this.proformaButton.Location = new System.Drawing.Point(180, 292); 
     763            this.proformaButton.Name = "proformaButton"; 
     764            this.proformaButton.Size = new System.Drawing.Size(36, 37); 
     765            this.proformaButton.TabIndex = 13; 
     766            this.proformaButton.Text = "P"; 
     767            this.proformaButton.UseVisualStyleBackColor = true; 
     768            this.proformaButton.Click += new System.EventHandler(this.proformaButton_Click); 
    757769            //  
    758770            // ZamowieniaForm 
     
    853865        private System.Windows.Forms.DataGridViewTextBoxColumn rokZamowienia; 
    854866        private System.Windows.Forms.DataGridViewTextBoxColumn kodAgenta; 
     867        private System.Windows.Forms.Button proformaButton; 
    855868    } 
    856869} 
  • Baza Reklam 2 - Faktury/ZamowieniaForm.cs

    r85 r88  
    303303                } 
    304304 
     305                wystawFakture(zamowienie, klient); 
     306 
     307                this.Cursor = Cursors.Default; 
     308            } 
     309        } 
     310 
     311        private int wystawFakture(REKLAMADataSet.zamowieniaRow zamowienie, REKLAMADataSet.KLIENCIRow klient) 
     312        { 
     313            int idNaglowka = 0; 
     314             
     315            try 
     316            { 
     317                REKLAMADataSet.FAKTURYRow naglowekFaktury = utworzNaglowekFaktury(zamowienie, klient); 
     318                this.rEKLAMADataSet.FAKTURY.AddFAKTURYRow(naglowekFaktury); 
     319                pobierzOznaczEmisje(zamowienie, naglowekFaktury); 
     320                utworzPozycjeFaktury(naglowekFaktury); 
     321                 
     322                zamowienie.zafakturowano = true; 
     323                zamowienie.EndEdit(); 
     324 
     325                SqlConnection conn = new SqlConnection(ConnString.getConnString().Value); 
     326 
     327                fAKTURYTableAdapter.Connection = conn; 
     328                emisjeTableAdapter.Connection = conn; 
     329                zamowieniaTableAdapter.Connection = conn; 
     330                fakturyDetailsTableAdapter.Connection = conn; 
     331                rEKLAMATableAdapter.Connection = conn; 
     332 
     333                conn.Open(); 
     334 
     335                SqlTransaction transaction = conn.BeginTransaction(); 
     336                fAKTURYTableAdapter.AttachTransaction(transaction); 
     337                emisjeTableAdapter.AttachTransaction(transaction); 
     338                zamowieniaTableAdapter.AttachTransaction(transaction); 
     339                fakturyDetailsTableAdapter.AttachTransaction(transaction); 
     340                rEKLAMATableAdapter.AttachTransaction(transaction); 
     341 
    305342                try 
    306343                { 
    307                     REKLAMADataSet.FAKTURYRow naglowekFaktury = utworzNaglowekFaktury(zamowienie, klient); 
    308                     this.rEKLAMADataSet.FAKTURY.AddFAKTURYRow(naglowekFaktury); 
    309                     pobierzOznaczEmisje(zamowienie, naglowekFaktury); 
    310                     utworzPozycjeFaktury(naglowekFaktury); 
    311  
    312                     zamowienie.zafakturowano = true; 
    313                     zamowienie.EndEdit(); 
    314  
    315                     SqlConnection conn = new SqlConnection(ConnString.getConnString().Value); 
    316  
    317                     fAKTURYTableAdapter.Connection = conn; 
    318                     emisjeTableAdapter.Connection = conn; 
    319                     zamowieniaTableAdapter.Connection = conn; 
    320                     fakturyDetailsTableAdapter.Connection = conn; 
    321                     rEKLAMATableAdapter.Connection = conn; 
    322  
    323                     conn.Open(); 
    324  
    325                     SqlTransaction transaction = conn.BeginTransaction(); 
    326                     fAKTURYTableAdapter.AttachTransaction(transaction); 
    327                     emisjeTableAdapter.AttachTransaction(transaction); 
    328                     zamowieniaTableAdapter.AttachTransaction(transaction); 
    329                     fakturyDetailsTableAdapter.AttachTransaction(transaction); 
    330                     rEKLAMATableAdapter.AttachTransaction(transaction); 
    331  
    332                     try 
    333                     { 
    334                         fAKTURYTableAdapter.Update(this.rEKLAMADataSet.FAKTURY); 
    335                         emisjeTableAdapter.Update(this.rEKLAMADataSet.UKAZE_SIE_W_NR); 
    336                         fakturyDetailsTableAdapter.Update(this.rEKLAMADataSet.FAKTURA_DETAILS); 
    337  
    338                         int il = (int)emisjeTableAdapter.iloscNiezafakturowanychEmisjiWZamowieniu( 
    339                             zamowienie.idZamowienia); 
    340                         if (il == 0) 
    341                         { 
    342                             zamowienie.zafakturowanoWszystko = true; 
    343                         } 
    344                          
    345                         zamowieniaTableAdapter.Update(this.rEKLAMADataSet.zamowienia); 
    346                         rEKLAMATableAdapter.Update(this.rEKLAMADataSet.REKLAMA); 
    347  
    348                         transaction.Commit(); 
    349                         dtpZmianaDaty.Value = DateTime.Today; 
    350                     } 
    351                     catch (Exception e1) 
    352                     { 
    353                         transaction.Rollback(); 
    354                         conn.Close(); 
    355                         this.rEKLAMADataSet.FAKTURY.RemoveFAKTURYRow(naglowekFaktury); 
    356                         this.fAKTURYBindingSource.ResetBindings(false); 
    357                         this.fAKTURYDataGridView.Refresh(); 
    358                         throw e1; 
    359                     } 
    360                 } 
    361                 catch (Exception e2) 
    362                 { 
    363                     MessageBox.Show("Wyst¹pi³ b³¹d: \n" + e2.ToString()); 
    364                 } 
    365                 finally 
    366                 { 
    367                     this.rEKLAMADataSet.UKAZE_SIE_W_NR.Clear(); 
    368                     this.rEKLAMADataSet.DatyWydan.Clear(); 
    369                     this.rEKLAMADataSet.FAKTURA_DETAILS.Clear(); 
     344                    fAKTURYTableAdapter.Update(this.rEKLAMADataSet.FAKTURY); 
     345                    idNaglowka = naglowekFaktury.ID_FAKTURY; 
     346                    emisjeTableAdapter.Update(this.rEKLAMADataSet.UKAZE_SIE_W_NR); 
     347                    fakturyDetailsTableAdapter.Update(this.rEKLAMADataSet.FAKTURA_DETAILS); 
     348 
     349                    int il = (int)emisjeTableAdapter.iloscNiezafakturowanychEmisjiWZamowieniu( 
     350                        zamowienie.idZamowienia); 
     351                    if (il == 0) 
     352                    { 
     353                        zamowienie.zafakturowanoWszystko = true; 
     354                    } 
     355 
     356                    zamowieniaTableAdapter.Update(this.rEKLAMADataSet.zamowienia); 
     357                    rEKLAMATableAdapter.Update(this.rEKLAMADataSet.REKLAMA); 
     358 
     359                    transaction.Commit(); 
     360                    dtpZmianaDaty.Value = DateTime.Today; 
     361                } 
     362                catch (Exception e1) 
     363                { 
     364                    transaction.Rollback(); 
     365                    conn.Close(); 
     366                    this.rEKLAMADataSet.FAKTURY.RemoveFAKTURYRow(naglowekFaktury); 
    370367                    this.fAKTURYBindingSource.ResetBindings(false); 
    371                     this.fAKTURYBindingSource.Sort = "NUMER"; 
    372368                    this.fAKTURYDataGridView.Refresh(); 
    373                     this.zamowieniaBindingSource.ResetBindings(false); 
    374                 } 
    375  
    376                 this.Cursor = Cursors.Default; 
    377             } 
     369                    throw e1; 
     370                } 
     371            } 
     372            catch (Exception e2) 
     373            { 
     374                MessageBox.Show("Wyst¹pi³ b³¹d: \n" + e2.ToString()); 
     375            } 
     376            finally 
     377            { 
     378                this.rEKLAMADataSet.UKAZE_SIE_W_NR.Clear(); 
     379                this.rEKLAMADataSet.DatyWydan.Clear(); 
     380                this.rEKLAMADataSet.FAKTURA_DETAILS.Clear(); 
     381                this.fAKTURYBindingSource.ResetBindings(false); 
     382                this.fAKTURYBindingSource.Sort = "NUMER"; 
     383                this.fAKTURYDataGridView.Refresh(); 
     384                this.zamowieniaBindingSource.ResetBindings(false); 
     385                 
     386            } 
     387 
     388            return idNaglowka; 
    378389        } 
    379390 
     
    12301241            } 
    12311242        } 
    1232               
     1243 
     1244        private void proformaButton_Click(object sender, EventArgs e) 
     1245        { 
     1246            if (zamowieniaBindingSource.Current != null) 
     1247            { 
     1248                this.Cursor = Cursors.WaitCursor; 
     1249 
     1250                DataRowView z = (DataRowView)zamowieniaBindingSource.Current; 
     1251                REKLAMADataSet.zamowieniaRow zamowienie = (REKLAMADataSet.zamowieniaRow)z.Row; 
     1252 
     1253                REKLAMADataSet.KLIENCIRow klient = (REKLAMADataSet.KLIENCIRow)this.klienciTableAdapter.GetDataByCustomerId(zamowienie.idKlienta).Rows[0]; 
     1254                string errorMessage = czyMoznaZafakturowac(zamowienie, klient); 
     1255 
     1256                if (errorMessage != string.Empty) 
     1257                { 
     1258                    MessageBox.Show(errorMessage); 
     1259                    this.Cursor = Cursors.Default; 
     1260                    return; 
     1261                } 
     1262 
     1263                int id = wystawFakture(zamowienie, klient); 
     1264                FactureViewer fv = new FactureViewer(id); 
     1265 
     1266                fv.ShowDialog(); 
     1267 
     1268                DataRow[] rows = this.rEKLAMADataSet.FAKTURY.Select("id_faktury=" + id); 
     1269                usunFakture((REKLAMADataSet.FAKTURYRow)rows[0]); 
     1270 
     1271                this.Cursor = Cursors.Default; 
     1272            } 
     1273        } 
    12331274    } 
    12341275} 
  • Baza Reklam 2 - Faktury/raporty.xss

    r80 r88  
    55     the code is regenerated. 
    66</autogenerated>--> 
    7 <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-587" ViewPortY="-447" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> 
     7<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-287" ViewPortY="-447" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> 
    88  <Shapes> 
    99    <Shape ID="DesignTable:Faktura" ZOrder="7" X="-185" Y="-447" Height="328" Width="268" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="281" />