Zbiór zmian 631

Pokaż
Ignoruj:
Data:
2009-05-04 17:38:20 (17 years ago)
Autor:
marek
Opis:

re #168 - poprawki w wyszukiwaniu faktur - POZ i KAT

Lokalizacja:
trunk
Pliki:
3 zmodyfikowane
3 przeniesione

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/BazaReklam/Baza Reklam.csproj

    r626 r631  
    197197      <DependentUpon>PaymentForm2.cs</DependentUpon> 
    198198    </Compile> 
    199     <Compile Include="FacturesFormNEW.cs"> 
    200       <SubType>Form</SubType> 
    201     </Compile> 
    202     <Compile Include="FacturesFormNEW.Designer.cs"> 
    203       <DependentUpon>FacturesFormNEW.cs</DependentUpon> 
     199    <Compile Include="FacturesFormNew1.cs"> 
     200      <SubType>Form</SubType> 
     201    </Compile> 
     202    <Compile Include="FacturesFormNew1.Designer.cs"> 
     203      <DependentUpon>FacturesFormNew1.cs</DependentUpon> 
    204204    </Compile> 
    205205    <Compile Include="ZestawienieZamowienForm.cs"> 
     
    593593      <SubType>Designer</SubType> 
    594594    </EmbeddedResource> 
    595     <EmbeddedResource Include="FacturesFormNEW.resx"> 
    596       <DependentUpon>FacturesFormNEW.cs</DependentUpon> 
     595    <EmbeddedResource Include="FacturesFormNew1.resx"> 
     596      <DependentUpon>FacturesFormNew1.cs</DependentUpon> 
    597597      <SubType>Designer</SubType> 
    598598    </EmbeddedResource> 
  • trunk/BazaReklam/FacturesFormNew1.Designer.cs

    r629 r631  
    11namespace Baza_Reklam 
    22{ 
    3     partial class FacturesFormNEW 
     3    partial class FacturesFormNew 
    44    { 
    55        /// <summary> 
     
    3030        { 
    3131            this.components = new System.ComponentModel.Container(); 
    32             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FacturesFormNEW)); 
    33             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle81 = new System.Windows.Forms.DataGridViewCellStyle(); 
    34             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle82 = new System.Windows.Forms.DataGridViewCellStyle(); 
    35             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle83 = new System.Windows.Forms.DataGridViewCellStyle(); 
    36             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle84 = new System.Windows.Forms.DataGridViewCellStyle(); 
    37             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle85 = new System.Windows.Forms.DataGridViewCellStyle(); 
    38             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle86 = new System.Windows.Forms.DataGridViewCellStyle(); 
    39             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle87 = new System.Windows.Forms.DataGridViewCellStyle(); 
    40             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle88 = new System.Windows.Forms.DataGridViewCellStyle(); 
    41             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle89 = new System.Windows.Forms.DataGridViewCellStyle(); 
    42             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle90 = new System.Windows.Forms.DataGridViewCellStyle(); 
    43             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle91 = new System.Windows.Forms.DataGridViewCellStyle(); 
    44             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle92 = new System.Windows.Forms.DataGridViewCellStyle(); 
    45             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle93 = new System.Windows.Forms.DataGridViewCellStyle(); 
    46             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle94 = new System.Windows.Forms.DataGridViewCellStyle(); 
    47             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle95 = new System.Windows.Forms.DataGridViewCellStyle(); 
    48             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle96 = new System.Windows.Forms.DataGridViewCellStyle(); 
     32            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FacturesFormNew)); 
     33            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); 
     34            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); 
     35            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); 
     36            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); 
     37            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); 
     38            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); 
     39            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); 
     40            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); 
     41            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); 
     42            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); 
     43            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); 
     44            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); 
     45            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); 
     46            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); 
     47            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); 
     48            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); 
    4949            this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components); 
    5050            this.VIEW_ZESTAWIENIE_FAKTUR_NOWEBindingSource = new System.Windows.Forms.BindingSource(this.components); 
     
    7070            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); 
    7171            this.PoznanKatowicetoolStripButton = new System.Windows.Forms.ToolStripButton(); 
     72            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); 
    7273            this.wyszukajToolStrip = new System.Windows.Forms.ToolStrip(); 
    7374            this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); 
     
    8182            this.toolStripLabel4 = new System.Windows.Forms.ToolStripLabel(); 
    8283            this.agencjaToolStripComboBox = new System.Windows.Forms.ToolStripComboBox(); 
     84            this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel(); 
     85            this.cbWydawca = new System.Windows.Forms.ToolStripComboBox(); 
    8386            this.toolStripLabel6 = new System.Windows.Forms.ToolStripLabel(); 
    8487            this.cbSposobZaplaty = new System.Windows.Forms.ToolStripComboBox(); 
     
    111114            this.agencjaDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 
    112115            this.SposobZaplaty = new System.Windows.Forms.DataGridViewTextBoxColumn(); 
    113             this.toolStripLabel7 = new System.Windows.Forms.ToolStripLabel(); 
    114             this.cbWydawca = new System.Windows.Forms.ToolStripComboBox(); 
    115116            ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit(); 
    116117            this.bindingNavigator1.SuspendLayout(); 
     
    149150            this.odswiezToolStripButton, 
    150151            this.toolStripSeparator2, 
    151             this.PoznanKatowicetoolStripButton}); 
     152            this.PoznanKatowicetoolStripButton, 
     153            this.toolStripSeparator3}); 
    152154            this.bindingNavigator1.Location = new System.Drawing.Point(0, 0); 
    153155            this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem; 
     
    338340            this.PoznanKatowicetoolStripButton.Text = "Poznañ - Katowice"; 
    339341            this.PoznanKatowicetoolStripButton.Click += new System.EventHandler(this.PoznanKatowicetoolStripButton_Click); 
     342            //  
     343            // toolStripSeparator3 
     344            //  
     345            this.toolStripSeparator3.Name = "toolStripSeparator3"; 
     346            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 31); 
    340347            //  
    341348            // wyszukajToolStrip 
     
    426433            this.agencjaToolStripComboBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.kryteriumWyszukiwania_KeyPress); 
    427434            //  
     435            // toolStripLabel7 
     436            //  
     437            this.toolStripLabel7.Name = "toolStripLabel7"; 
     438            this.toolStripLabel7.Size = new System.Drawing.Size(58, 22); 
     439            this.toolStripLabel7.Text = "Wydawca:"; 
     440            //  
     441            // cbWydawca 
     442            //  
     443            this.cbWydawca.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 
     444            this.cbWydawca.Items.AddRange(new object[] { 
     445            "", 
     446            "AACT", 
     447            "Sam Press"}); 
     448            this.cbWydawca.Name = "cbWydawca"; 
     449            this.cbWydawca.Size = new System.Drawing.Size(75, 25); 
     450            //  
    428451            // toolStripLabel6 
    429452            //  
     
    528551            this.fakturyDataGridView.AllowUserToAddRows = false; 
    529552            this.fakturyDataGridView.AllowUserToDeleteRows = false; 
    530             dataGridViewCellStyle81.BackColor = System.Drawing.Color.MintCream; 
    531             this.fakturyDataGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle81; 
     553            dataGridViewCellStyle1.BackColor = System.Drawing.Color.MintCream; 
     554            this.fakturyDataGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; 
    532555            this.fakturyDataGridView.AutoGenerateColumns = false; 
    533556            this.fakturyDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells; 
    534557            this.fakturyDataGridView.BackgroundColor = System.Drawing.Color.White; 
    535558            this.fakturyDataGridView.CausesValidation = false; 
    536             dataGridViewCellStyle82.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    537             dataGridViewCellStyle82.BackColor = System.Drawing.SystemColors.Control; 
    538             dataGridViewCellStyle82.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    539             dataGridViewCellStyle82.ForeColor = System.Drawing.SystemColors.WindowText; 
    540             dataGridViewCellStyle82.SelectionBackColor = System.Drawing.SystemColors.Highlight; 
    541             dataGridViewCellStyle82.SelectionForeColor = System.Drawing.SystemColors.HighlightText; 
    542             dataGridViewCellStyle82.WrapMode = System.Windows.Forms.DataGridViewTriState.True; 
    543             this.fakturyDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle82; 
     559            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     560            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; 
     561            dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
     562            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; 
     563            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; 
     564            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; 
     565            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; 
     566            this.fakturyDataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; 
    544567            this.fakturyDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 
    545568            this.fakturyDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { 
     
    589612            this.TERMIN_ZAPLATY.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    590613            this.TERMIN_ZAPLATY.DataPropertyName = "TERMIN_ZAPLATY"; 
    591             dataGridViewCellStyle83.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    592             this.TERMIN_ZAPLATY.DefaultCellStyle = dataGridViewCellStyle83; 
     614            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     615            this.TERMIN_ZAPLATY.DefaultCellStyle = dataGridViewCellStyle3; 
    593616            this.TERMIN_ZAPLATY.HeaderText = "Termin p³at."; 
    594617            this.TERMIN_ZAPLATY.Name = "TERMIN_ZAPLATY"; 
     
    599622            //  
    600623            this.dataWplaty.DataPropertyName = "dataWplaty"; 
    601             dataGridViewCellStyle84.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    602             this.dataWplaty.DefaultCellStyle = dataGridViewCellStyle84; 
     624            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     625            this.dataWplaty.DefaultCellStyle = dataGridViewCellStyle4; 
    603626            this.dataWplaty.HeaderText = "Data wp³aty"; 
    604627            this.dataWplaty.Name = "dataWplaty"; 
     
    610633            this.NUMER.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    611634            this.NUMER.DataPropertyName = "NUMER"; 
    612             dataGridViewCellStyle85.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    613             this.NUMER.DefaultCellStyle = dataGridViewCellStyle85; 
     635            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     636            this.NUMER.DefaultCellStyle = dataGridViewCellStyle5; 
    614637            this.NUMER.HeaderText = "Nr"; 
    615638            this.NUMER.Name = "NUMER"; 
     
    621644            this.nRFKDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    622645            this.nRFKDataGridViewTextBoxColumn.DataPropertyName = "NR_FK"; 
    623             dataGridViewCellStyle86.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    624             this.nRFKDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle86; 
     646            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     647            this.nRFKDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle6; 
    625648            this.nRFKDataGridViewTextBoxColumn.HeaderText = "Nr fakt."; 
    626649            this.nRFKDataGridViewTextBoxColumn.Name = "nRFKDataGridViewTextBoxColumn"; 
     
    631654            //  
    632655            this.sumaNettoZEmisji.DataPropertyName = "sumaNettoZEmisji"; 
    633             dataGridViewCellStyle87.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    634             dataGridViewCellStyle87.Format = "C2"; 
    635             dataGridViewCellStyle87.NullValue = null; 
    636             this.sumaNettoZEmisji.DefaultCellStyle = dataGridViewCellStyle87; 
     656            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     657            dataGridViewCellStyle7.Format = "C2"; 
     658            dataGridViewCellStyle7.NullValue = null; 
     659            this.sumaNettoZEmisji.DefaultCellStyle = dataGridViewCellStyle7; 
    637660            this.sumaNettoZEmisji.HeaderText = "Wartoœæ emisji w zamówieniu"; 
    638661            this.sumaNettoZEmisji.Name = "sumaNettoZEmisji"; 
     
    643666            //  
    644667            this.nETTODataGridViewTextBoxColumn.DataPropertyName = "NETTO"; 
    645             dataGridViewCellStyle88.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    646             dataGridViewCellStyle88.Format = "C2"; 
    647             this.nETTODataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle88; 
     668            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     669            dataGridViewCellStyle8.Format = "C2"; 
     670            this.nETTODataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle8; 
    648671            this.nETTODataGridViewTextBoxColumn.HeaderText = "Netto"; 
    649672            this.nETTODataGridViewTextBoxColumn.Name = "nETTODataGridViewTextBoxColumn"; 
     
    655678            this.sVATDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    656679            this.sVATDataGridViewTextBoxColumn.DataPropertyName = "S_VAT"; 
    657             dataGridViewCellStyle89.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    658             dataGridViewCellStyle89.Format = "P"; 
    659             this.sVATDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle89; 
     680            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     681            dataGridViewCellStyle9.Format = "P"; 
     682            this.sVATDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle9; 
    660683            this.sVATDataGridViewTextBoxColumn.HeaderText = "%VAT"; 
    661684            this.sVATDataGridViewTextBoxColumn.Name = "sVATDataGridViewTextBoxColumn"; 
     
    666689            //  
    667690            this.vATDataGridViewTextBoxColumn.DataPropertyName = "VAT"; 
    668             dataGridViewCellStyle90.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    669             dataGridViewCellStyle90.Format = "C2"; 
    670             dataGridViewCellStyle90.NullValue = null; 
    671             this.vATDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle90; 
     691            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     692            dataGridViewCellStyle10.Format = "C2"; 
     693            dataGridViewCellStyle10.NullValue = null; 
     694            this.vATDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle10; 
    672695            this.vATDataGridViewTextBoxColumn.HeaderText = "VAT"; 
    673696            this.vATDataGridViewTextBoxColumn.Name = "vATDataGridViewTextBoxColumn"; 
     
    678701            //  
    679702            this.BRUTTO.DataPropertyName = "BRUTTO"; 
    680             dataGridViewCellStyle91.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    681             dataGridViewCellStyle91.Format = "C"; 
    682             this.BRUTTO.DefaultCellStyle = dataGridViewCellStyle91; 
     703            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     704            dataGridViewCellStyle11.Format = "C"; 
     705            this.BRUTTO.DefaultCellStyle = dataGridViewCellStyle11; 
    683706            this.BRUTTO.HeaderText = "Brutto"; 
    684707            this.BRUTTO.Name = "BRUTTO"; 
     
    689712            //  
    690713            this.wplata_brutto.DataPropertyName = "wplata_brutto"; 
    691             dataGridViewCellStyle92.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    692             dataGridViewCellStyle92.Format = "c"; 
    693             this.wplata_brutto.DefaultCellStyle = dataGridViewCellStyle92; 
     714            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     715            dataGridViewCellStyle12.Format = "c"; 
     716            this.wplata_brutto.DefaultCellStyle = dataGridViewCellStyle12; 
    694717            this.wplata_brutto.HeaderText = "Wp³ata PLN"; 
    695718            this.wplata_brutto.Name = "wplata_brutto"; 
     
    701724            this.waluta_miano.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    702725            this.waluta_miano.DataPropertyName = "waluta_miano"; 
    703             dataGridViewCellStyle93.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    704             dataGridViewCellStyle93.NullValue = "PLN"; 
    705             this.waluta_miano.DefaultCellStyle = dataGridViewCellStyle93; 
     726            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     727            dataGridViewCellStyle13.NullValue = "PLN"; 
     728            this.waluta_miano.DefaultCellStyle = dataGridViewCellStyle13; 
    706729            this.waluta_miano.HeaderText = "W"; 
    707730            this.waluta_miano.Name = "waluta_miano"; 
     
    712735            //  
    713736            this.waluta_brutto.DataPropertyName = "waluta_brutto"; 
    714             dataGridViewCellStyle94.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    715             dataGridViewCellStyle94.Format = "N2"; 
    716             dataGridViewCellStyle94.NullValue = null; 
    717             this.waluta_brutto.DefaultCellStyle = dataGridViewCellStyle94; 
     737            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     738            dataGridViewCellStyle14.Format = "N2"; 
     739            dataGridViewCellStyle14.NullValue = null; 
     740            this.waluta_brutto.DefaultCellStyle = dataGridViewCellStyle14; 
    718741            this.waluta_brutto.HeaderText = "Waluta brutto"; 
    719742            this.waluta_brutto.Name = "waluta_brutto"; 
     
    724747            //  
    725748            this.wplata_waluta_brutto.DataPropertyName = "wplata_waluta_brutto"; 
    726             dataGridViewCellStyle95.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
    727             dataGridViewCellStyle95.Format = "N"; 
    728             this.wplata_waluta_brutto.DefaultCellStyle = dataGridViewCellStyle95; 
     749            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; 
     750            dataGridViewCellStyle15.Format = "N"; 
     751            this.wplata_waluta_brutto.DefaultCellStyle = dataGridViewCellStyle15; 
    729752            this.wplata_waluta_brutto.HeaderText = "Wp³ata wal."; 
    730753            this.wplata_waluta_brutto.Name = "wplata_waluta_brutto"; 
     
    736759            this.dATASPRZEDAZYDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    737760            this.dATASPRZEDAZYDataGridViewTextBoxColumn.DataPropertyName = "DATA_SPRZEDAZY"; 
    738             dataGridViewCellStyle96.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
    739             this.dATASPRZEDAZYDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle96; 
     761            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; 
     762            this.dATASPRZEDAZYDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle16; 
    740763            this.dATASPRZEDAZYDataGridViewTextBoxColumn.HeaderText = "Data sprzed."; 
    741764            this.dATASPRZEDAZYDataGridViewTextBoxColumn.Name = "dATASPRZEDAZYDataGridViewTextBoxColumn"; 
     
    767790            this.SposobZaplaty.Width = 97; 
    768791            //  
    769             // toolStripLabel7 
    770             //  
    771             this.toolStripLabel7.Name = "toolStripLabel7"; 
    772             this.toolStripLabel7.Size = new System.Drawing.Size(58, 22); 
    773             this.toolStripLabel7.Text = "Wydawca:"; 
    774             //  
    775             // cbWydawca 
    776             //  
    777             this.cbWydawca.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 
    778             this.cbWydawca.Items.AddRange(new object[] { 
    779             "", 
    780             "AACT", 
    781             "Sam Press"}); 
    782             this.cbWydawca.Name = "cbWydawca"; 
    783             this.cbWydawca.Size = new System.Drawing.Size(75, 25); 
    784             //  
    785             // FacturesFormNEW 
     792            // FacturesFormNew 
    786793            //  
    787794            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 
     
    793800            this.Controls.Add(this.wyszukajToolStrip); 
    794801            this.Controls.Add(this.bindingNavigator1); 
    795             this.Name = "FacturesFormNEW"; 
     802            this.Name = "FacturesFormNew"; 
    796803            this.Text = "Faktury"; 
    797804            this.WindowState = System.Windows.Forms.FormWindowState.Maximized; 
     
    881888        private System.Windows.Forms.ToolStripLabel toolStripLabel7; 
    882889        private System.Windows.Forms.ToolStripComboBox cbWydawca; 
     890        private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; 
    883891 
    884892    } 
  • trunk/BazaReklam/FacturesFormNew1.cs

    r629 r631  
    1010namespace Baza_Reklam 
    1111{ 
    12     public partial class FacturesFormNEW : Form, IForm 
     12    public partial class FacturesFormNew : Form, IForm 
    1313    { 
    14         private const string query = "SELECT top 2000 * from VIEW_ZESTAWIENIE_FAKTUR_NOWE "; 
    15  
    16         private static FacturesFormNEW fakturesForm; 
     14        private const string QUERY = "SELECT TOP 2000 * FROM VIEW_ZESTAWIENIE_FAKTUR_NOWE "; 
     15 
     16        private static FacturesFormNew fakturesForm; 
    1717        private readonly SqlCommand command; 
    1818        private readonly SqlDataAdapter sqlDataAdapter; 
     
    2020        private bool commandExecuted; 
    2121 
    22         public static FacturesFormNEW getFacturesForm(MDIBazaReklam parent) 
    23         { 
    24             if (fakturesForm == null){ 
    25                 fakturesForm = new FacturesFormNEW(parent); 
     22        public static FacturesFormNew GetFacturesForm(MDIBazaReklam parent) 
     23        { 
     24            if (fakturesForm == null) 
     25            { 
     26                fakturesForm = new FacturesFormNew(parent); 
    2627            } 
    2728            return fakturesForm; 
    2829        } 
    2930 
    30         private FacturesFormNEW(Form parent) 
     31        private FacturesFormNew(Form parent) 
    3132        { 
    3233            InitializeComponent(); 
     
    3738            VIEW_ZESTAWIENIE_FAKTUR_NOWETableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
    3839            reklamaTableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
    39           
     40 
    4041            //obiekty wykorzytywane przy wyszukiwaniu 
    4142            SqlConnection conn = new SqlConnection(ConnString.getConnString().Value); 
    42             
     43 
    4344            command = new SqlCommand(); 
    4445            command.CommandType = CommandType.Text; 
    4546            command.Connection = conn; 
    46              
     47 
    4748            sqlDataAdapter = new SqlDataAdapter(); 
    4849 
     
    5657            ((CheckBox)((ToolStripControlHost)wyszukajToolStrip.Items["zalegleCheckBox"]).Control).CheckState = CheckState.Indeterminate; 
    5758 
    58             PoznanKatowicetoolStripButton.Enabled = User.Instance().St_produkcja; 
     59            PoznanKatowicetoolStripButton.Enabled = User.Instance().St_produkcja && User.Instance().St_kierownik; 
    5960        } 
    6061 
     
    6465 
    6566            DBBindings.bindujAgencje(agencjaToolStripComboBox); 
    66           
    67             command.CommandText = query; 
     67 
     68            command.CommandText = QUERY; 
    6869            sqlDataAdapter.SelectCommand = command; 
    6970        } 
    70         
     71 
    7172        private void wyszukajToolStripButton_Click(object sender, EventArgs e) 
    7273        { 
     
    7677        private void szukajToolStripButton_Click(object sender, EventArgs e) 
    7778        { 
    78             command.CommandText = query; 
     79            command.CommandText = QUERY; 
    7980 
    8081            rEKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWE.Clear(); 
     
    9798            } 
    9899 
    99             if (kodRozliczeniowyToolStripTextBox.Text.Trim() != "") 
    100             { 
    101                 command.CommandText += " AND NR_FK like '%' + @kod + '%'"; 
     100            if (!string.IsNullOrEmpty(kodRozliczeniowyToolStripTextBox.Text.Trim())) 
     101            { 
     102                command.CommandText += " AND Numer_Roz = @kod "; 
    102103                command.Parameters.AddWithValue("@kod", kodRozliczeniowyToolStripTextBox.Text.Trim()); 
     104            } 
     105            else 
     106            { 
     107                command.CommandText += " AND Numer_Roz <> 'KAT' AND Numer_Roz <> 'POZ' "; 
    103108            } 
    104109 
     
    129134            } 
    130135 
    131             if (agencjaToolStripComboBox.Text.Trim() != "") 
     136            if (!string.IsNullOrEmpty(agencjaToolStripComboBox.Text.Trim())) 
    132137            { 
    133138                command.CommandText += " AND Agencja=@agencja"; 
     
    141146                command.Parameters.AddWithValue("@systemKsiegowy", systemKsiegowy); 
    142147            } 
    143              
     148 
    144149            if (((CheckBox)((ToolStripControlHost)wyszukajToolStrip.Items["zalegleCheckBox"]).Control).CheckState == CheckState.Checked) 
    145150            { 
     
    158163                command.Parameters.AddWithValue("@sposobZaplaty", cbSposobZaplaty.Text.Trim()); 
    159164            } 
    160           
     165 
    161166            sqlDataAdapter.SelectCommand = command; 
    162167 
     
    173178            } 
    174179 
    175              
     180 
    176181        } 
    177182 
     
    184189        /// Podsumowuje brutto i zaplate z wyswietlonych faktur 
    185190        /// </summary> 
    186         private void podsumuj() { 
     191        private void podsumuj() 
     192        { 
    187193 
    188194            if (VIEW_ZESTAWIENIE_FAKTUR_NOWEBindingSource.List.Count != 0) 
    189195            { 
    190             decimal brutto = Convert.ToDecimal(rEKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWE.Compute("Sum(BRUTTO)","")); 
    191             decimal netto = Convert.ToDecimal(rEKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWE.Compute("Sum(netto)", "")); 
    192  
    193             bruttoTextBox.Text = String.Format("{0:C}", brutto); 
    194             nettoTextBox.Text = String.Format("{0:C}", netto); 
     196                decimal brutto = Convert.ToDecimal(rEKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWE.Compute("Sum(BRUTTO)", "")); 
     197                decimal netto = Convert.ToDecimal(rEKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWE.Compute("Sum(netto)", "")); 
     198 
     199                bruttoTextBox.Text = String.Format("{0:C}", brutto); 
     200                nettoTextBox.Text = String.Format("{0:C}", netto); 
    195201            } 
    196202            else 
    197203            { 
    198             bruttoTextBox.Clear(); 
    199             nettoTextBox.Clear();             
     204                bruttoTextBox.Clear(); 
     205                nettoTextBox.Clear(); 
    200206            } 
    201207        } 
    202208 
    203209        private void zestawienieFakturBindingSource_ListChanged(object sender, ListChangedEventArgs e) 
    204         {           
    205            podsumuj(); 
     210        { 
     211            podsumuj(); 
    206212        } 
    207213 
    208214        private void toolStripButton1_Click(object sender, EventArgs e) 
    209215        { 
    210             PrintDGV.Print_DataGridView(fakturyDataGridView,50); 
     216            PrintDGV.Print_DataGridView(fakturyDataGridView, 50); 
    211217        } 
    212218 
     
    236242 
    237243                Cursor = Cursors.WaitCursor; 
    238                 FactureViewer fv = new FactureViewer(faktura.ID_FAKTURY,false); 
     244                FactureViewer fv = new FactureViewer(faktura.ID_FAKTURY, false); 
    239245                fv.ShowDialog(); 
    240                  
     246 
    241247                Cursor = Cursors.Default; 
    242248            } 
     
    251257            { 
    252258                DataRowView row = (DataRowView)VIEW_ZESTAWIENIE_FAKTUR_NOWEBindingSource.Current; 
    253                  
     259 
    254260                int custID = Convert.ToInt32(row["ID_NABYWCY"]); 
    255261                ClientsForm.getClientsForm((MDIBazaReklam)MdiParent).pokazKlienta(custID); 
     
    258264 
    259265                ClientsForm.getClientsForm((MDIBazaReklam)MdiParent).Show(); 
    260             }    
     266            } 
    261267        } 
    262268 
     
    306312        } 
    307313 
    308         //private static bool IsSumaEmisjiMniejszaOdFakturyNetto(REKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWERow faktura) 
    309         //{ 
    310         //    if (faktura.IssumaNettoZEmisjiNull()) return false; 
    311  
    312         //    if (IsFakturaWWalucie(faktura) && !faktura.Iswaluta_kursNull()) 
    313         //        return Math.Round(faktura.sumaNettoZEmisji / faktura.waluta_kurs, 0) < (decimal)Math.Round(faktura.waluta_brutto, 0); 
    314  
    315         //    return Math.Round(faktura.sumaNettoZEmisji, 0) < Math.Round(faktura.NETTO, 0);  
    316         //} 
    317  
    318         //private static bool IsFakturaWWalucie(REKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWERow faktura) 
    319         //{ 
    320         //    if (faktura.Iswaluta_mianoNull()) return false; 
    321         //    if (string.IsNullOrEmpty(faktura.waluta_miano)) return false; 
    322         //    if (faktura.waluta_miano.ToUpper() == "PLN") return false; 
    323  
    324         //    return true; 
    325         //} 
    326  
    327314        private void wplata2toolStripButton_Click(object sender, EventArgs e) 
    328315        { 
     
    332319                REKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWERow f = (REKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWERow)row.Row; 
    333320 
    334                 PaymentForm2 pf2 = f.IsidWplatyNull() ? new PaymentForm2(0,f.ID_FAKTURY) : new PaymentForm2(f.idWplaty, f.ID_FAKTURY); 
     321                PaymentForm2 pf2 = f.IsidWplatyNull() ? new PaymentForm2(0, f.ID_FAKTURY) : new PaymentForm2(f.idWplaty, f.ID_FAKTURY); 
    335322 
    336323                if (pf2.ShowDialog() == DialogResult.OK) 
     
    341328                } 
    342329            } 
    343      
    344330        } 
    345331 
     
    351337                REKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWERow f = (REKLAMADataSet.VIEW_ZESTAWIENIE_FAKTUR_NOWERow)row.Row; 
    352338 
    353                 ZamowieniaForm zf = new ZamowieniaForm(f.ID_NABYWCY,f.idZamowienia); 
     339                ZamowieniaForm zf = new ZamowieniaForm(f.ID_NABYWCY, f.idZamowienia); 
    354340                zf.ShowDialog(); 
    355341            } 
     
    362348        } 
    363349 
    364         
     350 
    365351        private void odswiezToolStripButton_Click(object sender, EventArgs e) 
    366352        { 
  • trunk/BazaReklam/FacturesFormNew1.resx

    r629 r631  
    213213        RYVi4HJW0WO3c+c77GwONpq9/fYXo+NgXLNBufeCSSmSD9CItx8xIaWBVxqIRwQPDQ2GVFGP1oFetPT1 
    214214        oqqzE9cb2nrPSO5UeUhqqtwSiu8dFxztXmlqupNMzBzPlFRqPW8SjFhzIO0wILEDMu0xWJOISIpcIleg 
    215         beAxegefoP1xD6ofdCBdoXgYJJFV+SQVVzmlVMqdE4ua9++2kKuqqr5FBtTH3BWZYoN3vYSrhpBiA9yi 
     215        beAxegefoP1xD6ofdCBdoXgYJJFV+SQVVzmlVMqdE4ua9++2kKuqqr5FBtTH3BWZYoN3PYSrhpBiA9yi 
    216216        TOT7oirnZwRFRKG27xG6+vvQP9CPh2REKBQOSeqaHwSklVT6JMmqXBLLq13S6muFgYE9hkuXehJcbzzL 
    217217        89TmQKN0RG0Fkmg9KL2EXyND8GOeDNXdvZB3P8T93h7UdnYhu/F+71VpRRU34JVcXn0yoUzudkte73mz 
     
    240240        eKJKq6cya3NjrN6BMdl+xtI/ZCz2dcYuURl8bhQqoiuvhtaQdEl8K55sYGr65lGBqNnY2CRcV1f3kpKS 
    241241        Eq8VNo2+/8PDcCZUSXNIS0hvkniVSywmIDmRXEfF78kH+3YUyM8DpiR+MuL/54eT/6wJ+XfyyvaSeOS8 
    242         /3n6n3mW5Eb4C75y8azwH/KD5/xRAIfwex3SK6NAPpi4eQ591pLLn/Gpx9viaeel2jD8X2iLB4IB/wJ2 
     242        /3n6n3mW5Eb4C75y8azwH/KD5/xRAIfwex3SK6NAPpi4eQ591pLLn/Gpx9viaeel2jD8X1WPB4CBe56u 
    243243        AAAAAElFTkSuQmCC 
    244244</value> 
     
    247247    <value> 
    248248        iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 
    249         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAABXRJREFUSEuVlQtQ 
    250         VFUYx10VG0JbMg0ZSGAmncpycPIxlqESW1CoEYyMj5BU1NDMCgNcl8tjWFCUQZHAlZVhWQQUYuQlaqRi 
    251         giSKxAryEkRhAUkWlzfL/vvOzlIqC9aZ+c3de+49//89337fd3gTxhnbth034vONjsycaeTW2vqkXal8 
    252         kD801JOdnh79By0bIKBnPJmxn4WG5okbG9vAhlYLVFY2geM4rY/P0foNG/yPuLjssKfVLxMTCd7/comI 
    253         kJlIJJe6dOrPDWZWVfVAZ7ZzZ0iDm5v3sVWrPAVkYEJM+k9GwcH5zjdu1BrSHzUXFhYDV9ftWldXryZH 
    254         x6/EJiYmZmRiNK5RQEB6qErV/UKDuLhE7NoVheJiIC3tIYTCVMyfb5dA4jbjmvj6pmb8q04xMTAGBwew 
    255         bp0I/v7JWLjwY5SUDKG6GnB09Ggl8XXEjDF3IRZn3mSag4PD0GgMG2RmnsOWLYcQEVEAkUiClhbg0SNg 
    256         0aJlVSQsIqzGMuDFxOS1Dg8DfX1D6OxU4VSyHCGBgQgODoRUIkFz80Okp+cPzJo1O2Xp0hUNGzd+i4sX 
    257         VVi+/NAwn/+qjIT3EpYGDc6fP2/Ccb9q+vuH0dLcipNJyShqakWFBih8Apy504ZjUhlS5KndJJBIWepj 
    258         bm4WaWVlkzZtmqmE5g4SjgTfoEFi4oW3OS5S29HRhXiZHB0Uqj6ieWAYpY8HkPegD6fuQ5emFhYW0SRi 
    259         R7xLfEq4ER8Rr4+ZsrGxGYLy8ns4ezYL11o6oSJxDSV/ba8GxR19yL7fC3mVGvK73fDy3HSLhJyI6cQ0 
    260         /ZXVAyu+ZwarRF01hoTEbbp3T0nxDsF1NVDXo0GlehDXSbxA2YuMOjVOVqiQWK2Fj4+Pmpb8oI/36Go+ 
    261         fFgxPSGhNkkur7gpEmWKHRw85+zYIdzX0PAIXFAQcluB35p7cVnZh/ymHpytVyO5sgsxt1WQ1wxj334R 
    262         +x/CiTcNxjs0NDtVrWYRBtrbaWFMRrer6546haIF0VFHIaMwnK7vwenaLqQRMoUKsbc7IbmlQlKNFlu3 
    263         br5Dwgf0BqN3EBWVpVIqO6FUqtDfT2lCQ60mwdP5yMstwFF5BiRVGpwo78JxEj5y8zFiy1RIqBoEl1Wg 
    264         sbW1zbaysQnRG4yK+4SAgMSaoqIaqsI6VFQ0obGxHSpVj85IoxmCJC4W0SlZOHa7B9F/0n3FEKRkmJB9 
    265         BQdCAnHx8u/gfH2f2L9mvEqfls/uwts7zJPjzgxmZJRQoShQWFiF0tJ63L3bDDoDdEaFV64gmBPBT7gf 
    266         /vs5HBSH6VKUUVh8GW2SlcDaGXA2M2zCX7LE+evNm0VX2YLk5GvIzS1HQYGCdlVPZjXw9t5H96W4dKmE 
    267         QvcLamvVyMrOUbMMun/oQ6B+N5CzFthgDncL/pfP74T1b9aU7ObOtQ1wcdl+zc+P00qlhcjJUSA8XIo1 
    268         a76Bk9NG7N0bA3t7Z8TH38LKlYKrxjyeDE4mgMwJqP4OOOcOrOfDaf4cD309/POfsB+sOKwJB2vrtwIE 
    269         AveiPXs4rVD4M7XjA9TQ8uDi4gUvryAEBaXAzMwsid4VmhtNXI/PpgLxn9AptBVtUi/4+gZ10jN22rHC 
    270         e2aw3UwlWC93sLS05pYts79hb++o9fc/gbCwLERGXqBdCJQ8Hu8EvfMFKzCrlyatgGAKWkJXo6ymGes9 
    271         PKpp/iditsHaoMmnjQSWlrPD5817r2zx4tX9Cxa8X2NsbMwOFCHxDjGFfdSsyRPsvP38/nJ3dy8zNTWV 
    272         0tz3zHwsg5H5ESNWpZ8TPoSY+JFgDe0VYqTFsBAv0QvvpusH+mi8yEP3fDLBWu8bBDNjVxbKpwuLGRnr 
    273         v9pi5PnfqiO601y7xZMAAAAASUVORK5CYII= 
     249        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAABXVJREFUSEuVlQtQ 
     250        VFUYx10VG0JbMg0ZSGAmncpycPIxlqESW1CoEYyMj5BU1NDMCgNcl8tjeCjooEjgysqwLALKxshL1EjF 
     251        BEkUCQRZQBCFBSRZXN4s++87O0upLFhn5jd377n3/P/3fPt93+FNGGds23bciM83OjJzppFba+uTdqXy 
     252        Qf7QUE92RkbMH7RsgICe8WTGfhYamhfW2NgGNrRaoKqqCRzHaX18jtZv2OB/xMVlhz2tfpmYSPD+l0tk 
     253        pNRELL7UpVN/bjCz6uoHOrOdO0Ma3Ny8j61a5SkgAxNi0n8yCg7Od75xo9aQ/qi58PBYuLpu17q6ejU5 
     254        On4VZmJiYkYmRuMaBQRkhKpU3S80iI9Pwq5d0SguBtLTH0IoTMP8+XaJJG4zromvb5r8X3WKiYExODiA 
     255        detE8PdPwcKFH6OkZAg1NYCjo0cria8jZoy5i7CwzJtMc3BwGBqNYYPMzHPYsiUKkZEFEInEaGkBHj0C 
     256        Fi1aVk3CIsJqLANebGxe6/Aw0Nc3hM5OFU6lyBASGIjg4EBIxGI0Nz9ERkb+wKxZs1OXLl3RsHHjt7h4 
     257        UYXly6OG+fxXpSS8l7A0aHD+/HkTjvtV098/jJbmVpxMTkFRUysqNEDhE+DMnTYck0iRKkvrJoEkylIf 
     258        c3Ozw1ZWNunTppmKae4g4UjwDRokJV14m+OitB0dXUiQytBBoeojmgeGUfp4AHkP+nDqPnRpamFhEUMi 
     259        dsS7xKeEG/ER8fqYKRsXJxeUl9/D2bNZuNbSCRWJayj5a3s1KO7oQ/b9Xsiq1ZDd7YaX56ZbJORETCem 
     260        6a+sHljxPTNYJeqqMSQkftO9e0qKdwiuq4G6Hg2q1IO4TuIFyl7I69Q4WaFCUo0WPj4+alrygz7eo6v5 
     261        0KHK6YmJtckyWcVNkSgzzMHBc86OHcJ9DQ2PwAUFIbcV+K25F5eVfchv6sHZejVSqroQe1sFmWIY+/aL 
     262        2P8QQbxpMN6hodlpajWLMNDeTgtj5d2urnvqKitbEBN9FFIKw+n6Hpyu7UI6Ia1UIe52J8S3VEhWaLF1 
     263        6+Y7JHxAbzB6B9HRWSqlshNKpQr9/ZQmNNRqEjydj7zcAhyVySGu1uBEeReOk/CRm48RV6ZCYvUguKwC 
     264        ja2tbbaVjU2I3mBU3CcEBCQpiooUVIV1qKhoQmNjO1SqHp2RRjMEcXwcYlKzcOx2D2L+pPuKIUjIMDH7 
     265        Cg6EBOLi5d/B+fo+sX/NeJU+LZ/dhbd3uCfHnRmUy0uoUCpRWFiN0tJ63L3bDDoDdEaFV64gmBPBT7gf 
     266        /vs5HAwL16Uoo7D4MtrEK4G1M+BsZtiEv2SJ89ebN4uusgUpKdeQm1uOgoJK2lU9mSng7b2P7ktx6VIJ 
     267        he4X1NaqkZWdo2YZdD/qQ6B+N5CzFthgDncL/pfP74T1b9aU7ObOtQ1wcdl+zc+P00okhcjJqUREhARr 
     268        1nwDJ6eN2Ls3Fvb2zkhIuIWVKwVXjXk8KZxMAKkTUPMdcM4dWM+H0/w5Hvp6+Oc/YT9YcVgTDtbWbwUI 
     269        BO5Fe/ZwWqHwZ2rHB6ih5cHFxQteXkEICkqFmZlZMr0rNDeauB6fTQUSPqFTaCvaJF7w9Q3qpGfstGOF 
     270        98xgu5lKsF7uYGlpzS1bZn/D3t5R6+9/AuHhWTh8+ALtQqDk8Xgn6J0vWIFZvTRpBQRT0BK6GmWKZqz3 
     271        8Kih+Z+I2QZrgyafNhJYWs6OmDfvvbLFi1f3L1jwvsLY2JgdKELiHWIK+6hZkyfYefv5/eXu7l5mamoq 
     272        obnvmflYBiPzI0asSj8nfIgw4keCNbRXiJEWw0K8RC+8m64f6KPxIg/d88kEa71vEMyMXVkony4sZmSs 
     273        /2qLked/A577utGNKIc+AAAAAElFTkSuQmCC 
    274274</value> 
    275275  </data> 
     
    378378    <value> 
    379379        iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 
    380         YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAABX9JREFUSEudlQtQ 
    381         zXkUx0+lbrfYWiVWJY+1TYNYochOK90sFXlEtCwJO9u23munGd1NKEIpdHWlqBS9F3dVQ+T9quxaj8VY 
    382         irLrMXtLY8q93z0//2tHiZnd38xn/vd//7/f95zf+Z1zfkb0vrGyqj81ab8jY5nigy4WvV68aGluedRQ 
    383         Q40P86gyJo+0dVpe/vK9Gu/8uPbBqs5Rt18MVbViwn5gIhNcBMwpAUYlPgAFFVTRkAVevN6SMfpvRtY/ 
    384         2tIt/hkGqADnba34NBXwSAc8MwCvPYB/LhB0QAezr478RQNDprO4VTsj7zGorJ8uj0rTm0de1lLw7nLy 
    385         WlFA/onl8vDzWg9VM/xY3G8fEHgAmJYPmAYX1ZOd+8RXRsYfm0re+cU0PHkWv3dhjNvuTKk0puVVd2jh 
    386         4RySW63hj3HMcmYRWdisJL/1ZW6J9ZjJoZrB4qEHgflFrSDvpHPkFDDFfubR5xurAavJOY95jQif2Nkb 
    387         I/K+PS29Esv/zGbmMCOYXkwP6dnJg3zjCn1SH2PRYWBZGRB9kne09S7IPeXZ5tN6xJ4HLH133uH53xvW 
    388         tjEhtiTERjJ9GHNDbEVMBXKydBhIgblXV5UDMSwedxpIYNEfDjch4QKw5RJAzksrea6S6d12B5KIGdOZ 
    389         6dT+o+FdRm4R09yjK3RJF1n8LLCdhVNYeAcTXfoc1HNqIc9dyth3pPHa2471v9DIyDNpPHmm1249q0Mq 
    390         i+7muGfUAJlXgW8ya0E2o/bw4rmMnSSy4e/+9OOdFIq8Fk8rLyymcM6G0OJhFKDubtiJZDTknIPlvGN1 
    391         gcm3sFqjhbpKEt73K7CfxQt/5+yKqwGZO6by/EBGOmRZ7L1qzS09Cq61IO5kI0ILn8A3rRaDlLv0dsqb 
    392         T40izpeR45h+5J0eHJLegBQWVF+RPM67DhTfBEpuAJq7wLAIpZ5MzFNYVmSRnGjJxY+8lJn6ukag7Lbk 
    393         TTpvWcQ0kQ8vhg9xjOpPkOu0KLLpO4z88spsw44/dvWq0I1bW41Q1S0oCx9i5+lGpF9qgbHHxhoWTmAG 
    394         S7uPOD5mQUE9ztUB+b+xV+xZ6mUgmcW//akJI5Pvw2JRSS3JrTfxgs+YAUwomcjXkUXPBLIavIN6KHaT 
    395         fUgu9Z5XRGZdVfw9gnF8FVYKKw2PrdCikLea/YsUUxVnRdwpHWhG9j2ycsokIxMRU5EVLozIMJHKHzOD 
    396         GA9GwUxmQpggxlUKjxhzfk5SX3qJvey5EN/JodnK3ovwDN1UoSNb5+08S/SbTxgLyat/EaksMxi15qct 
    397         05V5XT/8c255aRYflprDElXejO2c2/Ec95hKYDlXKgXlXCUzueg1HxqEJcfeHh2nt+3iE3+k8qGuq+SQ 
    398         zCp5MjWjAbGngBUsLtrBWPVTkGJNMZGp2Lbw9u0x4egGco0RlS+KtG0ntV1y5tlmjnn38DNaknfLoknq 
    399         C18fasVCbmSzChhubG5b6kDjNmvIwVv0JhFbyVtFqR0pCrLJp+AGv3syom7adVD/XbPJT60hR09xkLFk 
    400         6zLfNEzTEFIMTGcD4qLxZ0aqGmEZdqKJxu09SGOzVKTIPSSfWfFcFsx53ztoNa/9knHoKIyi2kRRiAz4 
    401         /NWkIfODxGUSkKOHP/d9n0zpovHkp1sa4LJNBxe+gGyW7dKTS0Q2rxGtXWRSu/YsRVNsSVwOIgNeNzkr 
    402         cvKZQgEZ1c5r7sIrSxIfwTfaEKZPfBPMfY80k2NAFq9JZsQFI7w3efuAOv5HxNiaC3E09Zu4gdyjT5hO 
    403         yquXTcl/ajQ6+Tr1mcEFZZ3Gc8SFJPLeiXlX932nTWFEXOiioCYwojpjmPVMJCMupeFMt/8j/qZV4ZmI 
    404         bU+mr8Gg8FiE9I2C6tjRfwDpHLJ3wbg4RwAAAABJRU5ErkJggg== 
     380        YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAABYBJREFUSEudlQtQ 
     381        zXkUx0+lbrfYWiVWtXmsbRrECkV2WulmqcgjomVJ2Nm29V47zehuQhFKoevepagUdXssWtUQeb8qu9Zj 
     382        MZai7HrM3tKYcu93z8//2lFiZvc385n//d//7/c953d+55yfCb1rrKjqR026b8lUpnivi9WHz5+3NLc8 
     383        bKihxgd5VBmXR7o6HS9/8U6Nt35cc39l55hbz4eoWjF+HzCBCS0EZhcDI5Pvg0K0VTR4vg+vt2ZM/puR 
     384        dQ83d0t8iv4qwHVrKz5RA17pgHcG4LMbCMwFQvbrYfHl4b9oQNg0FrdpZ+QdBpX10+QxGoNl9CUdhe4q 
     385        J5/lWgpMLpdHntN5qZoRwOIBe4Hg/cDUfMA8tLCeHDwnvDQy7ugU8s0vomGpM/m9C2PadmdKpSktq7pN 
     386        Cw7lkNxmNX9MYJYxC8nKbgUFrCvzSK7HDA7VdBYPPwDMK2wF+aacJZegyY4zjjzbUA3YTMp5xGtE+MTO 
     387        XhvR9xxpyeV4/mcWM5sZznzI9JCenbzIP6HAT/0ICw8BS8uA2BO8oy13QJ5pTzedMiD+HGDtv+M2z//O 
     388        uLaNCbElITaC6c1YGmMrYiqQk7XTAArOvbKyHIhj8YRTQBKLfn+oCUnngc0XAXJdUslzlUyvtjuQRCyY 
     389        zkyn9h+N7zLyiJrqGVuhT7nA4meAbSycxsLbmdjSZ6CeUwp47hLGsSONV952rP95iYy8U8aRd3rtljN6 
     390        qFl0F8c9owbIvAJ8nVkLshu5mxfPYRwkkfV/96MfbqdR9NVEWnF+EUVyNoQXDaUgTXfjTiSjYWedrOce 
     391        rQtOvYlVJTpoqiThvb8C+1i84HfOroQakKWzmucHM9Ihy+LvVpfcNEB7tQUJJxoRXvAY/jtrMVCpNjgo 
     392        bzwxiTpXRs6j+5JvemhYegPSWFBzWfI47xpQdAMovg6U3AGGRikNZGaZxrIii+REiy984KPcbahrBMpu 
     393        Sd6k85ZFTJP58OL4EEer/gS5T40huz5DKSCvzD7i2CN3nwr92DXVCFfdhLLgAXacakT6xRaYem2oYeEk 
     394        ZpC0+6hjo+dr63G2Dsj/jb1iz9SXgFQW/+anJoxIvQerhcW1JLfdyAs+Zfoz4WQmX0tWPZPIZtB26qHY 
     395        RY5hudRrbiFZdFXx9yjG+WVYKaI0Mr5ChwLeavYvUkxVnBUJJ/Wg6dl3ycYlk0zMRExFVrgxIsNEKn/E 
     396        DGS8GAUziQljQhh3KTxizP45RXPxBfaw50J8B4dmC3svwjNkY4We7F238SzRbz5mrCSv/kWkssxo1Jaf 
     397        9kxX5lX98M855aVZfFgaDktMeTO2cW4nctzjKoFlXKkUknOFLOSi17xvFJYce3N0nN72i47/oeZDXVvJ 
     398        IZlZ/HhKRgPiTwLLWVy0gzGaJyDF6iIic7Ft4e2bY/yR9eQeJypfFGnbTmq/+PTTTRzz7pGndSTvlkUT 
     399        Nee/OtiKBdzIZmoZbmwem+tAYzeVkJOv6E0itpK3ilIHUmizyU97nd+9GVE37Tpo4I+zKEBTQs7e4iDj 
     400        yd5tnnlESUNYETCNDYiLJpAZoWqEdcTxJhq75wCNyVKRIvegfEbFM1ko532vkFW89gvGqaMwimoTRSEy 
     401        4LOXkwbPCxGXSVCOAYHc9/0ypYvGm58eOwG3rXq48QVkt1RtILeobF4jWrvIpHbtWYqm2JK4HEQGvGpy 
     402        NuTiN5mCMqpdV9+BT5YkPpxvtMFM78QmWPofbibnoCxek8qIC0Z4b/bmAXX8j4ixLRfiKOo7YT15xh43 
     403        n5hXL5uc/8RkVOo16j2dC8p2J88RF5LIexfmbd33rTaFEXGhi4Iaz4jqjGPWMdGMuJSGMd3+j/jrVoVn 
     404        IrY9mT5Gg8JjEdLXCqpjR/8Bweqyb1vu0RMAAAAASUVORK5CYII= 
    405405</value> 
    406406  </data> 
     
    420420</value> 
    421421  </data> 
    422   <metadata name="rEKLAMADataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    423     <value>17, 54</value> 
    424   </metadata> 
    425422  <metadata name="wyszukajToolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
    426423    <value>310, 54</value> 
  • trunk/BazaReklam/MDIBazaReklam.cs

    r591 r631  
    287287            } 
    288288 
    289             if (!_forms.ContainsKey("FacturesFormNEW")) 
    290                 _forms.Add("FacturesFormNEW", FacturesFormNEW.getFacturesForm(this)); 
    291  
    292             FacturesFormNEW.getFacturesForm(this).WindowState = FormWindowState.Maximized; 
    293             FacturesFormNEW.getFacturesForm(this).Show(); 
     289            if (!_forms.ContainsKey("FacturesFormNew")) 
     290                _forms.Add("FacturesFormNew", FacturesFormNew.GetFacturesForm(this)); 
     291 
     292            FacturesFormNew.GetFacturesForm(this).WindowState = FormWindowState.Maximized; 
     293            FacturesFormNew.GetFacturesForm(this).Show(); 
    294294 
    295295            Cursor = Cursors.Default; 
  • trunk/SQL/Views/VIEW_ZESTAWIENIE_FAKTUR_NOWE.txt

    r629 r631  
    5050T.SposobZaplaty, 
    5151T.waluta_kurs, 
    52 T.SystemKsiegowyId 
     52T.SystemKsiegowyId, 
     53T.Numer_Roz 
    5354FROM         (SELECT dbo.FAKTURY.ID_NABYWCY, dbo.FAKTURY.NUMER, YEAR(dbo.FAKTURY.DATA_SPRZEDAZY) AS ROK,  
    54                                               MONTH(dbo.FAKTURY.DATA_SPRZEDAZY) AS MS, dbo.FAKTURY.DATA_SPRZEDAZY, CONVERT(VARCHAR, dbo.FAKTURY.NUMER)  
    55                                               + '/' + CONVERT(VARCHAR, dbo.FAKTURY.NUMER_ROZ) + '/' + CONVERT(VARCHAR, dbo.FAKTURY.NUMER_ROK) AS NR_FK,  
     55                                              MONTH(dbo.FAKTURY.DATA_SPRZEDAZY) AS MS, dbo.FAKTURY.DATA_SPRZEDAZY,  
     56                                                                                          CONVERT(VARCHAR, dbo.FAKTURY.NUMER) + '/' + CONVERT(VARCHAR, dbo.FAKTURY.NUMER_ROZ) + '/' + CONVERT(VARCHAR, dbo.FAKTURY.NUMER_ROK) AS NR_FK,  
    5657                                              dbo.[LISTA TYTU£ÓW].SYMB AS TYTUL, SUM(dbo.FAKTURA_DETAILS.NETTO) AS NETTO, dbo.FAKTURA_DETAILS.S_VAT,  
    5758                                              SUM(dbo.FAKTURA_DETAILS.VAT) AS VAT, SUM(dbo.FAKTURA_DETAILS.NETTO * (1 + dbo.FAKTURA_DETAILS.S_VAT)) AS BRUTTO, count(dbo.FAKTURA_DETAILS.id_faktura_details) as ilPozycji, 
     
    6768                                                                                          COALESCE(Korekta.waluta_brutto, NULL) AS KorektaWalutaBrutto, 
    6869                                                                                          dbo.FAKTURY.waluta_kurs, 
    69                                                                                           dbo.FAKTURY.SystemKsiegowyId 
     70                                                                                          dbo.FAKTURY.SystemKsiegowyId, 
     71                                                                                          dbo.FAKTURY.Numer_Roz 
    7072                       FROM          dbo.FAKTURY LEFT OUTER JOIN 
    7173                                              dbo.FAKTURA_DETAILS ON dbo.FAKTURY.ID_FAKTURY = dbo.FAKTURA_DETAILS.ID_FAKTURY LEFT OUTER JOIN 
     
    8688                                                                                          dbo.FAKTURY.SPOSOB_ZAPLATY, 
    8789                                                                                          Korekta.S_VAT, Korekta.Netto, Korekta.Brutto, Korekta.waluta_brutto, 
    88                                                                                           dbo.FAKTURY.waluta_kurs, dbo.FAKTURY.SystemKsiegowyId 
     90                                                                                          dbo.FAKTURY.waluta_kurs, dbo.FAKTURY.SystemKsiegowyId, 
     91                                                                                          dbo.FAKTURY.Numer_Roz 
    8992                       ) AS T LEFT OUTER JOIN 
    9093                          (SELECT     idFaktury, round(SUM(netto),2) AS sumaNettoZEmisji, count(id) as ilEmisji