Example #1
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.itemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ItemTableAdapter();
            this.invoiceItemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceItemTableAdapter();
            this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
            this.label10 = new System.Windows.Forms.Label();
            this.txtItemNameEdit = new System.Windows.Forms.TextBox();
            this.btnWarehouseUpdate = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.txtAvailable = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.txtPrice = new System.Windows.Forms.TextBox();
            this.lstItems = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.label6 = new System.Windows.Forms.Label();
            this.txtItemName = new System.Windows.Forms.TextBox();
            this.btnDeleteItem = new System.Windows.Forms.Button();
            this.txtItemID = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.txtItemIDEdit = new System.Windows.Forms.TextBox();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.btnAddItem = new System.Windows.Forms.Button();
            this.chkFilterItems = new System.Windows.Forms.CheckBox();
            this.storeDBDataSet1 = new Store.DB.StoreDBDataSet();
            this.label3 = new System.Windows.Forms.Label();
            this.btnFixItemCounts = new System.Windows.Forms.Button();
            this.progressBar1 = new System.Windows.Forms.ProgressBar();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.lstExtraCodes = new System.Windows.Forms.ListView();
            this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.label5 = new System.Windows.Forms.Label();
            this.txtExtraCode = new System.Windows.Forms.TextBox();
            this.btnDeleteExtraCode = new System.Windows.Forms.Button();
            this.btnAddExtraCode = new System.Windows.Forms.Button();
            this.btnItemMerge = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet1)).BeginInit();
            this.SuspendLayout();
            // 
            // itemTableAdapter
            // 
            this.itemTableAdapter.ClearBeforeFill = true;
            // 
            // invoiceItemTableAdapter
            // 
            this.invoiceItemTableAdapter.ClearBeforeFill = true;
            // 
            // errorProvider
            // 
            this.errorProvider.ContainerControl = this;
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(139, 67);
            this.label10.Name = "label10";
            this.label10.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label10.Size = new System.Drawing.Size(43, 20);
            this.label10.TabIndex = 30;
            this.label10.Text = "نام کالا";
            // 
            // txtItemNameEdit
            // 
            this.txtItemNameEdit.Enabled = false;
            this.txtItemNameEdit.Location = new System.Drawing.Point(7, 64);
            this.txtItemNameEdit.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
            this.txtItemNameEdit.Name = "txtItemNameEdit";
            this.txtItemNameEdit.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtItemNameEdit.Size = new System.Drawing.Size(124, 27);
            this.txtItemNameEdit.TabIndex = 1;
            this.txtItemNameEdit.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtItemName_KeyPress);
            // 
            // btnWarehouseUpdate
            // 
            this.btnWarehouseUpdate.Enabled = false;
            this.btnWarehouseUpdate.Location = new System.Drawing.Point(7, 175);
            this.btnWarehouseUpdate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnWarehouseUpdate.Name = "btnWarehouseUpdate";
            this.btnWarehouseUpdate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnWarehouseUpdate.Size = new System.Drawing.Size(184, 66);
            this.btnWarehouseUpdate.TabIndex = 4;
            this.btnWarehouseUpdate.Text = "تغییر اطلاعات کالا";
            this.btnWarehouseUpdate.UseVisualStyleBackColor = true;
            this.btnWarehouseUpdate.Click += new System.EventHandler(this.btnWarehouseUpdate_Click);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(140, 142);
            this.label2.Name = "label2";
            this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label2.Size = new System.Drawing.Size(38, 20);
            this.label2.TabIndex = 21;
            this.label2.Text = "قیمت";
            // 
            // txtAvailable
            // 
            this.txtAvailable.AcceptsTab = true;
            this.txtAvailable.Enabled = false;
            this.txtAvailable.Location = new System.Drawing.Point(7, 101);
            this.txtAvailable.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtAvailable.Name = "txtAvailable";
            this.txtAvailable.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtAvailable.Size = new System.Drawing.Size(124, 27);
            this.txtAvailable.TabIndex = 2;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(140, 105);
            this.label1.Name = "label1";
            this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label1.Size = new System.Drawing.Size(35, 20);
            this.label1.TabIndex = 22;
            this.label1.Text = "تعداد";
            // 
            // txtPrice
            // 
            this.txtPrice.Enabled = false;
            this.txtPrice.Location = new System.Drawing.Point(7, 137);
            this.txtPrice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtPrice.Name = "txtPrice";
            this.txtPrice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtPrice.Size = new System.Drawing.Size(124, 27);
            this.txtPrice.TabIndex = 3;
            this.txtPrice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPrice_KeyPress);
            // 
            // lstItems
            // 
            this.lstItems.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.lstItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3,
            this.columnHeader4});
            this.lstItems.FullRowSelect = true;
            this.lstItems.GridLines = true;
            this.lstItems.HideSelection = false;
            this.lstItems.Location = new System.Drawing.Point(535, 75);
            this.lstItems.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstItems.MultiSelect = false;
            this.lstItems.Name = "lstItems";
            this.lstItems.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstItems.RightToLeftLayout = true;
            this.lstItems.Size = new System.Drawing.Size(737, 555);
            this.lstItems.TabIndex = 3;
            this.lstItems.UseCompatibleStateImageBehavior = false;
            this.lstItems.View = System.Windows.Forms.View.Details;
            this.lstItems.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstItems_ColumnClick);
            this.lstItems.SelectedIndexChanged += new System.EventHandler(this.lstItems_SelectedIndexChanged);
            this.lstItems.DoubleClick += new System.EventHandler(this.lstItems_DoubleClick);
            this.lstItems.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.lstItems_KeyPress);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "کد";
            this.columnHeader1.Width = 150;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "نام";
            this.columnHeader2.Width = 320;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "موجودی";
            this.columnHeader3.Width = 70;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "قیمت فروش";
            this.columnHeader4.Width = 80;
            // 
            // label6
            // 
            this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(1189, 13);
            this.label6.Name = "label6";
            this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label6.Size = new System.Drawing.Size(83, 20);
            this.label6.TabIndex = 46;
            this.label6.Text = "نام کالای جدید";
            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // txtItemName
            // 
            this.txtItemName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtItemName.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
            this.txtItemName.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
            this.txtItemName.Location = new System.Drawing.Point(848, 37);
            this.txtItemName.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtItemName.Name = "txtItemName";
            this.txtItemName.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtItemName.Size = new System.Drawing.Size(424, 27);
            this.txtItemName.TabIndex = 0;
            this.txtItemName.TextChanged += new System.EventHandler(this.txtItemName_TextChanged);
            this.txtItemName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtItemName_KeyDown);
            this.txtItemName.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtItem_KeyPress);
            // 
            // btnDeleteItem
            // 
            this.btnDeleteItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnDeleteItem.Image = global::Store.Properties.Resources.cancel;
            this.btnDeleteItem.Location = new System.Drawing.Point(535, 25);
            this.btnDeleteItem.Margin = new System.Windows.Forms.Padding(0);
            this.btnDeleteItem.Name = "btnDeleteItem";
            this.btnDeleteItem.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnDeleteItem.Size = new System.Drawing.Size(40, 45);
            this.btnDeleteItem.TabIndex = 5;
            this.btnDeleteItem.UseVisualStyleBackColor = true;
            this.btnDeleteItem.Click += new System.EventHandler(this.btnDeleteItem_Click);
            // 
            // txtItemID
            // 
            this.txtItemID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtItemID.Location = new System.Drawing.Point(618, 38);
            this.txtItemID.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtItemID.Name = "txtItemID";
            this.txtItemID.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtItemID.Size = new System.Drawing.Size(222, 27);
            this.txtItemID.TabIndex = 1;
            this.txtItemID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtItemID_KeyPress);
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(140, 32);
            this.label4.Name = "label4";
            this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label4.Size = new System.Drawing.Size(44, 20);
            this.label4.TabIndex = 46;
            this.label4.Text = "کد کالا";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // txtItemIDEdit
            // 
            this.txtItemIDEdit.Location = new System.Drawing.Point(7, 28);
            this.txtItemIDEdit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtItemIDEdit.Name = "txtItemIDEdit";
            this.txtItemIDEdit.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtItemIDEdit.Size = new System.Drawing.Size(124, 27);
            this.txtItemIDEdit.TabIndex = 0;
            this.txtItemIDEdit.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtItemIDEdit_KeyPress);
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.txtItemIDEdit);
            this.groupBox1.Controls.Add(this.txtItemNameEdit);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.label10);
            this.groupBox1.Controls.Add(this.txtPrice);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.txtAvailable);
            this.groupBox1.Controls.Add(this.btnWarehouseUpdate);
            this.groupBox1.Location = new System.Drawing.Point(14, 18);
            this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBox1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBox1.Size = new System.Drawing.Size(198, 253);
            this.groupBox1.TabIndex = 3;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "تغییر مشخصات";
            // 
            // btnAddItem
            // 
            this.btnAddItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddItem.Image = global::Store.Properties.Resources.edit_add;
            this.btnAddItem.Location = new System.Drawing.Point(575, 25);
            this.btnAddItem.Margin = new System.Windows.Forms.Padding(0);
            this.btnAddItem.Name = "btnAddItem";
            this.btnAddItem.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnAddItem.Size = new System.Drawing.Size(40, 45);
            this.btnAddItem.TabIndex = 4;
            this.btnAddItem.UseVisualStyleBackColor = true;
            this.btnAddItem.Click += new System.EventHandler(this.btnAddItem_Click);
            // 
            // chkFilterItems
            // 
            this.chkFilterItems.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.chkFilterItems.Checked = true;
            this.chkFilterItems.CheckState = System.Windows.Forms.CheckState.Checked;
            this.chkFilterItems.Location = new System.Drawing.Point(14, 570);
            this.chkFilterItems.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkFilterItems.Name = "chkFilterItems";
            this.chkFilterItems.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkFilterItems.Size = new System.Drawing.Size(198, 61);
            this.chkFilterItems.TabIndex = 9;
            this.chkFilterItems.Text = "فیلتر کالاها در حین افزودن کالای جدید";
            this.chkFilterItems.UseVisualStyleBackColor = true;
            // 
            // storeDBDataSet1
            // 
            this.storeDBDataSet1.DataSetName = "StoreDBDataSet";
            this.storeDBDataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // label3
            // 
            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(759, 15);
            this.label3.Name = "label3";
            this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label3.Size = new System.Drawing.Size(84, 20);
            this.label3.TabIndex = 47;
            this.label3.Text = "کد کالای جدید";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // btnFixItemCounts
            // 
            this.btnFixItemCounts.Location = new System.Drawing.Point(21, 279);
            this.btnFixItemCounts.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnFixItemCounts.Name = "btnFixItemCounts";
            this.btnFixItemCounts.Size = new System.Drawing.Size(184, 45);
            this.btnFixItemCounts.TabIndex = 48;
            this.btnFixItemCounts.Text = "تصحیح تعداد کل اجناس";
            this.btnFixItemCounts.UseVisualStyleBackColor = true;
            this.btnFixItemCounts.Click += new System.EventHandler(this.btnFixItemCounts_Click);
            // 
            // progressBar1
            // 
            this.progressBar1.Location = new System.Drawing.Point(21, 333);
            this.progressBar1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.progressBar1.Name = "progressBar1";
            this.progressBar1.Size = new System.Drawing.Size(184, 23);
            this.progressBar1.TabIndex = 49;
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // lstExtraCodes
            // 
            this.lstExtraCodes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.lstExtraCodes.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader6,
            this.columnHeader5});
            this.lstExtraCodes.FullRowSelect = true;
            this.lstExtraCodes.GridLines = true;
            this.lstExtraCodes.HideSelection = false;
            this.lstExtraCodes.Location = new System.Drawing.Point(218, 76);
            this.lstExtraCodes.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstExtraCodes.MultiSelect = false;
            this.lstExtraCodes.Name = "lstExtraCodes";
            this.lstExtraCodes.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstExtraCodes.RightToLeftLayout = true;
            this.lstExtraCodes.Size = new System.Drawing.Size(311, 555);
            this.lstExtraCodes.TabIndex = 3;
            this.lstExtraCodes.UseCompatibleStateImageBehavior = false;
            this.lstExtraCodes.View = System.Windows.Forms.View.Details;
            // 
            // columnHeader6
            // 
            this.columnHeader6.Text = "شناسه";
            this.columnHeader6.Width = 43;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "کد اضافه کالا";
            this.columnHeader5.Width = 257;
            // 
            // label5
            // 
            this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(419, 15);
            this.label5.Name = "label5";
            this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label5.Size = new System.Drawing.Size(114, 20);
            this.label5.TabIndex = 47;
            this.label5.Text = "کدهای اضافه این کالا";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // txtExtraCode
            // 
            this.txtExtraCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtExtraCode.Location = new System.Drawing.Point(301, 35);
            this.txtExtraCode.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtExtraCode.Name = "txtExtraCode";
            this.txtExtraCode.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtExtraCode.Size = new System.Drawing.Size(228, 27);
            this.txtExtraCode.TabIndex = 2;
            this.txtExtraCode.TextChanged += new System.EventHandler(this.txtExtraCode_TextChanged);
            this.txtExtraCode.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtItemID_KeyPress);
            // 
            // btnDeleteExtraCode
            // 
            this.btnDeleteExtraCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnDeleteExtraCode.Image = global::Store.Properties.Resources.cancel;
            this.btnDeleteExtraCode.Location = new System.Drawing.Point(218, 28);
            this.btnDeleteExtraCode.Margin = new System.Windows.Forms.Padding(0);
            this.btnDeleteExtraCode.Name = "btnDeleteExtraCode";
            this.btnDeleteExtraCode.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnDeleteExtraCode.Size = new System.Drawing.Size(40, 45);
            this.btnDeleteExtraCode.TabIndex = 5;
            this.btnDeleteExtraCode.UseVisualStyleBackColor = true;
            this.btnDeleteExtraCode.Click += new System.EventHandler(this.btnDeleteExtraCode_Click);
            // 
            // btnAddExtraCode
            // 
            this.btnAddExtraCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddExtraCode.Image = global::Store.Properties.Resources.edit_add;
            this.btnAddExtraCode.Location = new System.Drawing.Point(258, 28);
            this.btnAddExtraCode.Margin = new System.Windows.Forms.Padding(0);
            this.btnAddExtraCode.Name = "btnAddExtraCode";
            this.btnAddExtraCode.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnAddExtraCode.Size = new System.Drawing.Size(40, 45);
            this.btnAddExtraCode.TabIndex = 4;
            this.btnAddExtraCode.UseVisualStyleBackColor = true;
            this.btnAddExtraCode.Click += new System.EventHandler(this.btnAddExtraCode_Click);
            // 
            // btnItemMerge
            // 
            this.btnItemMerge.Location = new System.Drawing.Point(21, 364);
            this.btnItemMerge.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnItemMerge.Name = "btnItemMerge";
            this.btnItemMerge.Size = new System.Drawing.Size(184, 45);
            this.btnItemMerge.TabIndex = 48;
            this.btnItemMerge.Text = "ادغام کدهای کالاها";
            this.btnItemMerge.UseVisualStyleBackColor = true;
            this.btnItemMerge.Click += new System.EventHandler(this.btnItemMerge_Click);
            // 
            // ItemManageForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            this.ClientSize = new System.Drawing.Size(1290, 649);
            this.Controls.Add(this.progressBar1);
            this.Controls.Add(this.btnItemMerge);
            this.Controls.Add(this.btnFixItemCounts);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.lstExtraCodes);
            this.Controls.Add(this.lstItems);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.txtExtraCode);
            this.Controls.Add(this.txtItemID);
            this.Controls.Add(this.txtItemName);
            this.Controls.Add(this.btnAddExtraCode);
            this.Controls.Add(this.btnDeleteExtraCode);
            this.Controls.Add(this.btnAddItem);
            this.Controls.Add(this.btnDeleteItem);
            this.Controls.Add(this.chkFilterItems);
            this.Controls.Add(this.groupBox1);
            this.Font = new System.Drawing.Font("XB Roya", 9.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.KeyPreview = true;
            this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.Name = "ItemManageForm";
            this.Text = "مدیریت کالاها و موجودی";
            this.Activated += new System.EventHandler(this.ItemManageForm_Activated);
            this.Load += new System.EventHandler(this.ItemManageForm_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ItemManageForm_KeyDown_1);
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
Example #2
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.label6 = new System.Windows.Forms.Label();
            this.txtCount = new System.Windows.Forms.TextBox();
            this.label7 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.itemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ItemTableAdapter();
            this.label5 = new System.Windows.Forms.Label();
            this.btnInvoiceSubmit = new System.Windows.Forms.Button();
            this.lstInvoice = new System.Windows.Forms.ListView();
            this.ID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ItemID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ItemFullName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Count = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Price = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.TotalPrice = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.SalePrice = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.cmbDistributor = new System.Windows.Forms.ComboBox();
            this.storeDBDataSet = new Store.DB.StoreDBDataSet();
            this.label9 = new System.Windows.Forms.Label();
            this.txtTotal = new System.Windows.Forms.TextBox();
            this.btnAddDistributor = new System.Windows.Forms.Button();
            this.btnAddInvoiceItem = new System.Windows.Forms.Button();
            this.btnDeleteInvoice = new System.Windows.Forms.Button();
            this.invoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceTableAdapter();
            this.invoiceItemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceItemTableAdapter();
            this.abrDateInvoiceDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
            this.txtItemNameID = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.chkPaidInvoice = new System.Windows.Forms.CheckBox();
            this.btnSub1000 = new System.Windows.Forms.Button();
            this.viewInvoiceItemOnInvoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ViewInvoiceItemOnInvoiceTableAdapter();
            this.btnCalculateTax = new System.Windows.Forms.Button();
            this.lstItems = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.btnAddNewItem = new System.Windows.Forms.Button();
            this.btnImportExcel = new System.Windows.Forms.Button();
            this.ofd = new System.Windows.Forms.OpenFileDialog();
            this.chkFixNegative = new System.Windows.Forms.CheckBox();
            this.storeDBEntitiesBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.timer = new System.Windows.Forms.Timer(this.components);
            this.label1 = new System.Windows.Forms.Label();
            this.btnAdd15Per = new System.Windows.Forms.Button();
            this.btnAdd20Per = new System.Windows.Forms.Button();
            this.btnAdd25Per = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.rdbtnPaidCheque = new System.Windows.Forms.RadioButton();
            this.rdbtnPaidCash = new System.Windows.Forms.RadioButton();
            this.numDiscount = new System.Windows.Forms.NumericUpDown();
            this.txtNewSalePrice = new System.Windows.Forms.NumericUpDown();
            this.txtPrice = new System.Windows.Forms.NumericUpDown();
            this.txtPureTotal = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.numExpenses = new System.Windows.Forms.NumericUpDown();
            this.txtDescription = new System.Windows.Forms.TextBox();
            this.label10 = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBEntitiesBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numDiscount)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtNewSalePrice)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtPrice)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numExpenses)).BeginInit();
            this.SuspendLayout();
            // 
            // label6
            // 
            this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(559, 23);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(38, 20);
            this.label6.TabIndex = 20;
            this.label6.Text = "به نام";
            // 
            // txtCount
            // 
            this.txtCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtCount.Enabled = false;
            this.txtCount.Location = new System.Drawing.Point(603, 58);
            this.txtCount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtCount.Name = "txtCount";
            this.txtCount.Size = new System.Drawing.Size(118, 27);
            this.txtCount.TabIndex = 2;
            this.txtCount.TextChanged += new System.EventHandler(this.txtCount_TextChanged);
            this.txtCount.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtCount_KeyPress);
            // 
            // label7
            // 
            this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(687, 35);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(35, 20);
            this.label7.TabIndex = 28;
            this.label7.Text = "تعداد";
            // 
            // label8
            // 
            this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(667, 92);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(49, 20);
            this.label8.TabIndex = 29;
            this.label8.Text = "فی واحد";
            // 
            // itemTableAdapter
            // 
            this.itemTableAdapter.ClearBeforeFill = true;
            // 
            // label5
            // 
            this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(196, 23);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(51, 20);
            this.label5.TabIndex = 19;
            this.label5.Text = "در تاریخ";
            // 
            // btnInvoiceSubmit
            // 
            this.btnInvoiceSubmit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnInvoiceSubmit.Font = new System.Drawing.Font("XB Roya", 14F);
            this.btnInvoiceSubmit.Location = new System.Drawing.Point(14, 595);
            this.btnInvoiceSubmit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnInvoiceSubmit.Name = "btnInvoiceSubmit";
            this.btnInvoiceSubmit.Size = new System.Drawing.Size(220, 69);
            this.btnInvoiceSubmit.TabIndex = 16;
            this.btnInvoiceSubmit.Text = "ثبت فاکتور";
            this.btnInvoiceSubmit.UseVisualStyleBackColor = true;
            this.btnInvoiceSubmit.Click += new System.EventHandler(this.btnInvoiceSubmit_Click);
            // 
            // lstInvoice
            // 
            this.lstInvoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstInvoice.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.ID,
            this.ItemID,
            this.ItemFullName,
            this.Count,
            this.Price,
            this.TotalPrice,
            this.SalePrice});
            this.lstInvoice.Font = new System.Drawing.Font("XB Roya", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lstInvoice.FullRowSelect = true;
            this.lstInvoice.HideSelection = false;
            this.lstInvoice.Location = new System.Drawing.Point(14, 58);
            this.lstInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstInvoice.Name = "lstInvoice";
            this.lstInvoice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstInvoice.RightToLeftLayout = true;
            this.lstInvoice.Size = new System.Drawing.Size(581, 494);
            this.lstInvoice.TabIndex = 20;
            this.lstInvoice.UseCompatibleStateImageBehavior = false;
            this.lstInvoice.View = System.Windows.Forms.View.Details;
            this.lstInvoice.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstInvoice_ColumnClick);
            this.lstInvoice.SelectedIndexChanged += new System.EventHandler(this.lstInvoice_SelectedIndexChanged);
            // 
            // ID
            // 
            this.ID.Text = "ردیف";
            this.ID.Width = 44;
            // 
            // ItemID
            // 
            this.ItemID.Text = "شماره";
            this.ItemID.Width = 70;
            // 
            // ItemFullName
            // 
            this.ItemFullName.Text = "نام کالا";
            this.ItemFullName.Width = 120;
            // 
            // Count
            // 
            this.Count.Text = "تعداد";
            this.Count.Width = 35;
            // 
            // Price
            // 
            this.Price.Text = "فی واحد";
            this.Price.Width = 55;
            // 
            // TotalPrice
            // 
            this.TotalPrice.Text = "فی کل";
            this.TotalPrice.Width = 90;
            // 
            // SalePrice
            // 
            this.SalePrice.Text = "قیمت فروش";
            this.SalePrice.Width = 80;
            // 
            // cmbDistributor
            // 
            this.cmbDistributor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cmbDistributor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbDistributor.FormattingEnabled = true;
            this.cmbDistributor.ItemHeight = 19;
            this.cmbDistributor.Location = new System.Drawing.Point(411, 19);
            this.cmbDistributor.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.cmbDistributor.Name = "cmbDistributor";
            this.cmbDistributor.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.cmbDistributor.Size = new System.Drawing.Size(140, 27);
            this.cmbDistributor.TabIndex = 17;
            // 
            // storeDBDataSet
            // 
            this.storeDBDataSet.DataSetName = "StoreDBDataSet";
            this.storeDBDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // label9
            // 
            this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(140, 560);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(75, 20);
            this.label9.TabIndex = 23;
            this.label9.Text = "قابل پرداخت";
            // 
            // txtTotal
            // 
            this.txtTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTotal.Enabled = false;
            this.txtTotal.Font = new System.Drawing.Font("XB Roya", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtTotal.Location = new System.Drawing.Point(14, 554);
            this.txtTotal.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtTotal.Name = "txtTotal";
            this.txtTotal.ReadOnly = true;
            this.txtTotal.Size = new System.Drawing.Size(116, 33);
            this.txtTotal.TabIndex = 22;
            this.txtTotal.Text = "1111111111";
            // 
            // btnAddDistributor
            // 
            this.btnAddDistributor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddDistributor.Image = global::Store.Properties.Resources.edit_add;
            this.btnAddDistributor.Location = new System.Drawing.Point(374, 12);
            this.btnAddDistributor.Margin = new System.Windows.Forms.Padding(0);
            this.btnAddDistributor.Name = "btnAddDistributor";
            this.btnAddDistributor.Size = new System.Drawing.Size(33, 41);
            this.btnAddDistributor.TabIndex = 18;
            this.btnAddDistributor.UseVisualStyleBackColor = true;
            this.btnAddDistributor.Click += new System.EventHandler(this.btnAddDistributor_Click);
            // 
            // btnAddInvoiceItem
            // 
            this.btnAddInvoiceItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddInvoiceItem.Enabled = false;
            this.btnAddInvoiceItem.Image = global::Store.Properties.Resources.leftarrow;
            this.btnAddInvoiceItem.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.btnAddInvoiceItem.Location = new System.Drawing.Point(603, 409);
            this.btnAddInvoiceItem.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAddInvoiceItem.Name = "btnAddInvoiceItem";
            this.btnAddInvoiceItem.Size = new System.Drawing.Size(119, 67);
            this.btnAddInvoiceItem.TabIndex = 9;
            this.btnAddInvoiceItem.Text = "افزودن به فاکتور";
            this.btnAddInvoiceItem.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            this.btnAddInvoiceItem.UseVisualStyleBackColor = true;
            this.btnAddInvoiceItem.Click += new System.EventHandler(this.btnAddInvoiceItem_Click);
            // 
            // btnDeleteInvoice
            // 
            this.btnDeleteInvoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnDeleteInvoice.Image = global::Store.Properties.Resources.cancel;
            this.btnDeleteInvoice.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnDeleteInvoice.Location = new System.Drawing.Point(603, 485);
            this.btnDeleteInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnDeleteInvoice.Name = "btnDeleteInvoice";
            this.btnDeleteInvoice.Size = new System.Drawing.Size(119, 44);
            this.btnDeleteInvoice.TabIndex = 21;
            this.btnDeleteInvoice.Text = "حذف از فاکتور";
            this.btnDeleteInvoice.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnDeleteInvoice.UseVisualStyleBackColor = true;
            this.btnDeleteInvoice.Click += new System.EventHandler(this.btnDeleteInvoice_Click);
            // 
            // invoiceTableAdapter
            // 
            this.invoiceTableAdapter.ClearBeforeFill = true;
            // 
            // invoiceItemTableAdapter
            // 
            this.invoiceItemTableAdapter.ClearBeforeFill = true;
            // 
            // abrDateInvoiceDate
            // 
            this.abrDateInvoiceDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrDateInvoiceDate.EndOfYears = 1900;
            this.abrDateInvoiceDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrDateInvoiceDate.isBorder3D = true;
            this.abrDateInvoiceDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateInvoiceDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateInvoiceDate.Location = new System.Drawing.Point(14, 13);
            this.abrDateInvoiceDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrDateInvoiceDate.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrDateInvoiceDate.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrDateInvoiceDate.Name = "abrDateInvoiceDate";
            this.abrDateInvoiceDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrDateInvoiceDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrDateInvoiceDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrDateInvoiceDate.SelectedDate = new System.DateTime(2012, 3, 30, 1, 1, 1, 1);
            this.abrDateInvoiceDate.SelectedDateString = "1391/01/11";
            this.abrDateInvoiceDate.SelectedMonthName = null;
            this.abrDateInvoiceDate.Size = new System.Drawing.Size(175, 37);
            this.abrDateInvoiceDate.StartOfYears = 1350;
            this.abrDateInvoiceDate.TabIndex = 19;
            this.abrDateInvoiceDate.Paint += new System.Windows.Forms.PaintEventHandler(this.abrDateInvoiceDate_Paint);
            // 
            // errorProvider
            // 
            this.errorProvider.ContainerControl = this;
            // 
            // txtItemNameID
            // 
            this.txtItemNameID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtItemNameID.Location = new System.Drawing.Point(853, 26);
            this.txtItemNameID.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtItemNameID.Name = "txtItemNameID";
            this.txtItemNameID.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtItemNameID.Size = new System.Drawing.Size(262, 27);
            this.txtItemNameID.TabIndex = 0;
            this.txtItemNameID.TextChanged += new System.EventHandler(this.txtItemNameID_TextChanged);
            this.txtItemNameID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtItemNameID_KeyPress);
            // 
            // label11
            // 
            this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(1122, 31);
            this.label11.Name = "label11";
            this.label11.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label11.Size = new System.Drawing.Size(58, 20);
            this.label11.TabIndex = 25;
            this.label11.Text = "نام یا کد:";
            // 
            // chkPaidInvoice
            // 
            this.chkPaidInvoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkPaidInvoice.AutoSize = true;
            this.chkPaidInvoice.Location = new System.Drawing.Point(499, 555);
            this.chkPaidInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkPaidInvoice.Name = "chkPaidInvoice";
            this.chkPaidInvoice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkPaidInvoice.Size = new System.Drawing.Size(93, 24);
            this.chkPaidInvoice.TabIndex = 11;
            this.chkPaidInvoice.Text = "پرداخت شده";
            this.chkPaidInvoice.UseVisualStyleBackColor = true;
            this.chkPaidInvoice.CheckedChanged += new System.EventHandler(this.chkPaidInvoice_CheckedChanged);
            // 
            // btnSub1000
            // 
            this.btnSub1000.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnSub1000.AutoSize = true;
            this.btnSub1000.Location = new System.Drawing.Point(240, 595);
            this.btnSub1000.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnSub1000.Name = "btnSub1000";
            this.btnSub1000.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnSub1000.Size = new System.Drawing.Size(103, 30);
            this.btnSub1000.TabIndex = 15;
            this.btnSub1000.Text = "کسر 1000 ریال";
            this.btnSub1000.UseVisualStyleBackColor = true;
            this.btnSub1000.Click += new System.EventHandler(this.btnSub1000_Click);
            // 
            // viewInvoiceItemOnInvoiceTableAdapter
            // 
            this.viewInvoiceItemOnInvoiceTableAdapter.ClearBeforeFill = true;
            // 
            // btnCalculateTax
            // 
            this.btnCalculateTax.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnCalculateTax.AutoSize = true;
            this.btnCalculateTax.Location = new System.Drawing.Point(603, 153);
            this.btnCalculateTax.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnCalculateTax.Name = "btnCalculateTax";
            this.btnCalculateTax.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnCalculateTax.Size = new System.Drawing.Size(119, 34);
            this.btnCalculateTax.TabIndex = 4;
            this.btnCalculateTax.Text = "ارزش افزوده 9%";
            this.btnCalculateTax.UseVisualStyleBackColor = true;
            this.btnCalculateTax.Click += new System.EventHandler(this.btnCalculateTax_Click);
            // 
            // lstItems
            // 
            this.lstItems.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader5});
            this.lstItems.Font = new System.Drawing.Font("XB Roya", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lstItems.FullRowSelect = true;
            this.lstItems.GridLines = true;
            this.lstItems.HideSelection = false;
            this.lstItems.Location = new System.Drawing.Point(729, 58);
            this.lstItems.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstItems.MultiSelect = false;
            this.lstItems.Name = "lstItems";
            this.lstItems.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstItems.RightToLeftLayout = true;
            this.lstItems.ShowGroups = false;
            this.lstItems.Size = new System.Drawing.Size(446, 494);
            this.lstItems.TabIndex = 1;
            this.lstItems.UseCompatibleStateImageBehavior = false;
            this.lstItems.View = System.Windows.Forms.View.Details;
            this.lstItems.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstItems_ColumnClick);
            this.lstItems.SelectedIndexChanged += new System.EventHandler(this.lstItems_SelectedIndexChanged);
            this.lstItems.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.lstItems_KeyPress);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "کد";
            this.columnHeader1.Width = 120;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "نام کالا";
            this.columnHeader2.Width = 250;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "موجودی";
            this.columnHeader5.Width = 61;
            // 
            // btnAddNewItem
            // 
            this.btnAddNewItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddNewItem.Image = global::Store.Properties.Resources.edit_add;
            this.btnAddNewItem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnAddNewItem.Location = new System.Drawing.Point(729, 23);
            this.btnAddNewItem.Margin = new System.Windows.Forms.Padding(0);
            this.btnAddNewItem.Name = "btnAddNewItem";
            this.btnAddNewItem.Size = new System.Drawing.Size(100, 30);
            this.btnAddNewItem.TabIndex = 22;
            this.btnAddNewItem.Text = "کالای جدید";
            this.btnAddNewItem.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnAddNewItem.UseVisualStyleBackColor = true;
            this.btnAddNewItem.Click += new System.EventHandler(this.btnAddNewItem_Click);
            // 
            // btnImportExcel
            // 
            this.btnImportExcel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnImportExcel.AutoSize = true;
            this.btnImportExcel.Location = new System.Drawing.Point(603, 599);
            this.btnImportExcel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnImportExcel.Name = "btnImportExcel";
            this.btnImportExcel.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnImportExcel.Size = new System.Drawing.Size(118, 34);
            this.btnImportExcel.TabIndex = 20;
            this.btnImportExcel.Text = "ورود از فایل اکسل";
            this.btnImportExcel.UseVisualStyleBackColor = true;
            this.btnImportExcel.Click += new System.EventHandler(this.btnImportExcel_Click);
            // 
            // ofd
            // 
            this.ofd.Filter = "Excel 2003 Files|*.xls|Excel 2007-2010 Files|*.xlsx";
            // 
            // chkFixNegative
            // 
            this.chkFixNegative.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkFixNegative.AutoSize = true;
            this.chkFixNegative.Checked = true;
            this.chkFixNegative.CheckState = System.Windows.Forms.CheckState.Checked;
            this.chkFixNegative.Location = new System.Drawing.Point(628, 547);
            this.chkFixNegative.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkFixNegative.Name = "chkFixNegative";
            this.chkFixNegative.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkFixNegative.Size = new System.Drawing.Size(94, 44);
            this.chkFixNegative.TabIndex = 13;
            this.chkFixNegative.Text = "تصحیح تعداد\r\n منفی";
            this.chkFixNegative.UseVisualStyleBackColor = true;
            // 
            // storeDBEntitiesBindingSource
            // 
            this.storeDBEntitiesBindingSource.DataSource = typeof(Store.DB.StoreDBEntities);
            // 
            // timer
            // 
            this.timer.Enabled = true;
            this.timer.Interval = 500;
            this.timer.Tick += new System.EventHandler(this.timer_Tick);
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(653, 348);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(73, 20);
            this.label1.TabIndex = 23;
            this.label1.Text = "قیمت فروش";
            // 
            // btnAdd15Per
            // 
            this.btnAdd15Per.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAdd15Per.AutoSize = true;
            this.btnAdd15Per.Location = new System.Drawing.Point(603, 243);
            this.btnAdd15Per.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAdd15Per.Name = "btnAdd15Per";
            this.btnAdd15Per.Size = new System.Drawing.Size(119, 34);
            this.btnAdd15Per.TabIndex = 5;
            this.btnAdd15Per.Text = "+15%";
            this.btnAdd15Per.UseVisualStyleBackColor = true;
            this.btnAdd15Per.Click += new System.EventHandler(this.btnAddProfit_Click);
            // 
            // btnAdd20Per
            // 
            this.btnAdd20Per.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAdd20Per.AutoSize = true;
            this.btnAdd20Per.Location = new System.Drawing.Point(603, 276);
            this.btnAdd20Per.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAdd20Per.Name = "btnAdd20Per";
            this.btnAdd20Per.Size = new System.Drawing.Size(119, 34);
            this.btnAdd20Per.TabIndex = 6;
            this.btnAdd20Per.Text = "+20%";
            this.btnAdd20Per.UseVisualStyleBackColor = true;
            this.btnAdd20Per.Click += new System.EventHandler(this.btnAddProfit_Click);
            // 
            // btnAdd25Per
            // 
            this.btnAdd25Per.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAdd25Per.AutoSize = true;
            this.btnAdd25Per.Location = new System.Drawing.Point(603, 310);
            this.btnAdd25Per.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAdd25Per.Name = "btnAdd25Per";
            this.btnAdd25Per.Size = new System.Drawing.Size(119, 34);
            this.btnAdd25Per.TabIndex = 7;
            this.btnAdd25Per.Text = "+25%";
            this.btnAdd25Per.UseVisualStyleBackColor = true;
            this.btnAdd25Per.Click += new System.EventHandler(this.btnAddProfit_Click);
            // 
            // label2
            // 
            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(458, 597);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(43, 20);
            this.label2.TabIndex = 23;
            this.label2.Text = "تخفیف";
            // 
            // rdbtnPaidCheque
            // 
            this.rdbtnPaidCheque.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnPaidCheque.AutoSize = true;
            this.rdbtnPaidCheque.Checked = true;
            this.rdbtnPaidCheque.Enabled = false;
            this.rdbtnPaidCheque.Location = new System.Drawing.Point(544, 581);
            this.rdbtnPaidCheque.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnPaidCheque.Name = "rdbtnPaidCheque";
            this.rdbtnPaidCheque.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdbtnPaidCheque.Size = new System.Drawing.Size(48, 24);
            this.rdbtnPaidCheque.TabIndex = 12;
            this.rdbtnPaidCheque.TabStop = true;
            this.rdbtnPaidCheque.Text = "چک";
            this.rdbtnPaidCheque.UseVisualStyleBackColor = true;
            // 
            // rdbtnPaidCash
            // 
            this.rdbtnPaidCash.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnPaidCash.AutoSize = true;
            this.rdbtnPaidCash.Enabled = false;
            this.rdbtnPaidCash.Location = new System.Drawing.Point(500, 581);
            this.rdbtnPaidCash.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnPaidCash.Name = "rdbtnPaidCash";
            this.rdbtnPaidCash.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdbtnPaidCash.Size = new System.Drawing.Size(43, 24);
            this.rdbtnPaidCash.TabIndex = 13;
            this.rdbtnPaidCash.Text = "نقد";
            this.rdbtnPaidCash.UseVisualStyleBackColor = true;
            // 
            // numDiscount
            // 
            this.numDiscount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.numDiscount.Location = new System.Drawing.Point(349, 595);
            this.numDiscount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.numDiscount.Maximum = new decimal(new int[] {
            -559939585,
            902409669,
            54,
            0});
            this.numDiscount.Name = "numDiscount";
            this.numDiscount.Size = new System.Drawing.Size(106, 27);
            this.numDiscount.TabIndex = 14;
            this.numDiscount.ThousandsSeparator = true;
            this.numDiscount.UpDownAlign = System.Windows.Forms.LeftRightAlignment.Left;
            this.numDiscount.ValueChanged += new System.EventHandler(this.txtDiscountValue_ValueChanged);
            this.numDiscount.Enter += new System.EventHandler(this.numeric_Enter);
            this.numDiscount.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.numeric_KeyPress);
            // 
            // txtNewSalePrice
            // 
            this.txtNewSalePrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtNewSalePrice.Location = new System.Drawing.Point(603, 371);
            this.txtNewSalePrice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtNewSalePrice.Maximum = new decimal(new int[] {
            -559939585,
            902409669,
            54,
            0});
            this.txtNewSalePrice.Name = "txtNewSalePrice";
            this.txtNewSalePrice.Size = new System.Drawing.Size(119, 27);
            this.txtNewSalePrice.TabIndex = 8;
            this.txtNewSalePrice.ThousandsSeparator = true;
            this.txtNewSalePrice.UpDownAlign = System.Windows.Forms.LeftRightAlignment.Left;
            this.txtNewSalePrice.ValueChanged += new System.EventHandler(this.txtNewSalePrice_TextChanged);
            this.txtNewSalePrice.Enter += new System.EventHandler(this.numeric_Enter);
            this.txtNewSalePrice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.numeric_KeyPress);
            // 
            // txtPrice
            // 
            this.txtPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtPrice.Location = new System.Drawing.Point(603, 115);
            this.txtPrice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtPrice.Maximum = new decimal(new int[] {
            -559939585,
            902409669,
            54,
            0});
            this.txtPrice.Name = "txtPrice";
            this.txtPrice.Size = new System.Drawing.Size(119, 27);
            this.txtPrice.TabIndex = 3;
            this.txtPrice.ThousandsSeparator = true;
            this.txtPrice.UpDownAlign = System.Windows.Forms.LeftRightAlignment.Left;
            this.txtPrice.ValueChanged += new System.EventHandler(this.txtPrice_TextChanged);
            this.txtPrice.Enter += new System.EventHandler(this.numeric_Enter);
            this.txtPrice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.numeric_KeyPress);
            // 
            // txtPureTotal
            // 
            this.txtPureTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtPureTotal.Enabled = false;
            this.txtPureTotal.Font = new System.Drawing.Font("XB Roya", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtPureTotal.Location = new System.Drawing.Point(240, 554);
            this.txtPureTotal.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtPureTotal.Name = "txtPureTotal";
            this.txtPureTotal.ReadOnly = true;
            this.txtPureTotal.Size = new System.Drawing.Size(116, 33);
            this.txtPureTotal.TabIndex = 30;
            this.txtPureTotal.Text = "1111111111";
            // 
            // label3
            // 
            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(366, 560);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(61, 20);
            this.label3.TabIndex = 31;
            this.label3.Text = "مجموع کل";
            // 
            // label4
            // 
            this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(458, 628);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(43, 20);
            this.label4.TabIndex = 23;
            this.label4.Text = "باربری";
            // 
            // numExpenses
            // 
            this.numExpenses.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.numExpenses.Location = new System.Drawing.Point(349, 626);
            this.numExpenses.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.numExpenses.Maximum = new decimal(new int[] {
            -559939585,
            902409669,
            54,
            0});
            this.numExpenses.Name = "numExpenses";
            this.numExpenses.Size = new System.Drawing.Size(106, 27);
            this.numExpenses.TabIndex = 14;
            this.numExpenses.ThousandsSeparator = true;
            this.numExpenses.UpDownAlign = System.Windows.Forms.LeftRightAlignment.Left;
            this.numExpenses.ValueChanged += new System.EventHandler(this.txtDiscountValue_ValueChanged);
            this.numExpenses.Enter += new System.EventHandler(this.numeric_Enter);
            this.numExpenses.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.numeric_KeyPress);
            // 
            // txtDescription
            // 
            this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtDescription.Location = new System.Drawing.Point(728, 581);
            this.txtDescription.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtDescription.Multiline = true;
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtDescription.Size = new System.Drawing.Size(448, 83);
            this.txtDescription.TabIndex = 32;
            // 
            // label10
            // 
            this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(1114, 557);
            this.label10.Name = "label10";
            this.label10.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label10.Size = new System.Drawing.Size(65, 20);
            this.label10.TabIndex = 23;
            this.label10.Text = "توضیحات :";
            // 
            // InvoiceBuyForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.SkyBlue;
            this.ClientSize = new System.Drawing.Size(1184, 666);
            this.Controls.Add(this.txtDescription);
            this.Controls.Add(this.txtPureTotal);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.txtPrice);
            this.Controls.Add(this.txtNewSalePrice);
            this.Controls.Add(this.numExpenses);
            this.Controls.Add(this.numDiscount);
            this.Controls.Add(this.rdbtnPaidCash);
            this.Controls.Add(this.rdbtnPaidCheque);
            this.Controls.Add(this.btnSub1000);
            this.Controls.Add(this.btnAdd15Per);
            this.Controls.Add(this.lstItems);
            this.Controls.Add(this.chkFixNegative);
            this.Controls.Add(this.chkPaidInvoice);
            this.Controls.Add(this.btnAdd25Per);
            this.Controls.Add(this.btnAdd20Per);
            this.Controls.Add(this.btnImportExcel);
            this.Controls.Add(this.btnCalculateTax);
            this.Controls.Add(this.label11);
            this.Controls.Add(this.txtItemNameID);
            this.Controls.Add(this.abrDateInvoiceDate);
            this.Controls.Add(this.btnDeleteInvoice);
            this.Controls.Add(this.btnAddInvoiceItem);
            this.Controls.Add(this.btnAddNewItem);
            this.Controls.Add(this.btnAddDistributor);
            this.Controls.Add(this.txtTotal);
            this.Controls.Add(this.cmbDistributor);
            this.Controls.Add(this.lstInvoice);
            this.Controls.Add(this.btnInvoiceSubmit);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label8);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label10);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label9);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.txtCount);
            this.Font = new System.Drawing.Font("XB Roya", 9.25F);
            this.KeyPreview = true;
            this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.Name = "InvoiceBuyForm";
            this.Text = "ثبت فاکتور خرید";
            this.Activated += new System.EventHandler(this.InvoiceBuyForm_Activated);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.InvoiceBuyForm_FormClosing);
            this.Load += new System.EventHandler(this.BuyInvoiceForm_Load);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.InvoiceBuyForm_KeyPress);
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBEntitiesBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numDiscount)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtNewSalePrice)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txtPrice)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numExpenses)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.lstInvoices = new System.Windows.Forms.ListView();
            this.InvoiceID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.AccName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.InvoiceDate = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.TotalPrice = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.lstInvoiceMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.SaveDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.SaveCashPayDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.SaveChequeDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.lstInvoiceItems = new System.Windows.Forms.ListView();
            this.ID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ItemID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ItemName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Count = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.price = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.btnDeleteInvoice = new System.Windows.Forms.Button();
            this.abrDateStart = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.abrDateEnd = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.txtPriceStart = new System.Windows.Forms.TextBox();
            this.txtPriceEnd = new System.Windows.Forms.TextBox();
            this.btnApplyFilter = new System.Windows.Forms.Button();
            this.lstDistributors = new System.Windows.Forms.ListView();
            this.checkboxes = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.AccountantID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.AccountantName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.AccountantPhone = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
            this.label1 = new System.Windows.Forms.Label();
            this.lstCustomers = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.label2 = new System.Windows.Forms.Label();
            this.btnCheckAllDistributors = new System.Windows.Forms.Button();
            this.btnCheckAllCustomers = new System.Windows.Forms.Button();
            this.btnUncheckAllCustomers = new System.Windows.Forms.Button();
            this.btnUncheckAllDistributors = new System.Windows.Forms.Button();
            this.groupBoxPay = new System.Windows.Forms.GroupBox();
            this.rdbtnUnpaidOnly = new System.Windows.Forms.RadioButton();
            this.rdbtnPaidOnly = new System.Windows.Forms.RadioButton();
            this.rdbtnPaymentAll = new System.Windows.Forms.RadioButton();
            this.btnTogglePaid = new System.Windows.Forms.Button();
            this.invoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceTableAdapter();
            this.viewItemNameOnInvoiceItemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ViewItemNameOnInvoiceItemTableAdapter();
            this.invoiceItemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceItemTableAdapter();
            this.distributorTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.DistributorTableAdapter();
            this.customerTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.CustomerTableAdapter();
            this.abrDateNew = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.btnChangeDate = new System.Windows.Forms.Button();
            this.groupBoxDate = new System.Windows.Forms.GroupBox();
            this.chkEndDate = new System.Windows.Forms.CheckBox();
            this.chkStartDate = new System.Windows.Forms.CheckBox();
            this.chequeTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ChequeTableAdapter();
            this.btnEditInvoice = new System.Windows.Forms.Button();
            this.chkStartPrice = new System.Windows.Forms.CheckBox();
            this.chkEndPrice = new System.Windows.Forms.CheckBox();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.txtInvoiceIDSearch = new System.Windows.Forms.TextBox();
            this.toolTip = new System.Windows.Forms.ToolTip(this.components);
            this.lstInvoiceMenuStrip.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
            this.groupBoxPay.SuspendLayout();
            this.groupBoxDate.SuspendLayout();
            this.SuspendLayout();
            // 
            // lstInvoices
            // 
            this.lstInvoices.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstInvoices.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.InvoiceID,
            this.AccName,
            this.InvoiceDate,
            this.TotalPrice,
            this.columnHeader7,
            this.columnHeader5,
            this.columnHeader6});
            this.lstInvoices.ContextMenuStrip = this.lstInvoiceMenuStrip;
            this.lstInvoices.FullRowSelect = true;
            this.lstInvoices.HideSelection = false;
            this.lstInvoices.Location = new System.Drawing.Point(440, 10);
            this.lstInvoices.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstInvoices.MultiSelect = false;
            this.lstInvoices.Name = "lstInvoices";
            this.lstInvoices.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstInvoices.RightToLeftLayout = true;
            this.lstInvoices.Size = new System.Drawing.Size(457, 599);
            this.lstInvoices.TabIndex = 0;
            this.lstInvoices.UseCompatibleStateImageBehavior = false;
            this.lstInvoices.View = System.Windows.Forms.View.Details;
            this.lstInvoices.VirtualMode = true;
            this.lstInvoices.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstInvoices_ColumnClick);
            this.lstInvoices.RetrieveVirtualItem += new System.Windows.Forms.RetrieveVirtualItemEventHandler(this.lstInvoices_RetrieveVirtualItem);
            this.lstInvoices.SelectedIndexChanged += new System.EventHandler(this.lstInvoices_SelectedIndexChanged_1);
            this.lstInvoices.DoubleClick += new System.EventHandler(this.lstInvoices_DoubleClick);
            // 
            // InvoiceID
            // 
            this.InvoiceID.Text = "شماره";
            this.InvoiceID.Width = 42;
            // 
            // AccName
            // 
            this.AccName.Text = "طرف حساب";
            this.AccName.Width = 70;
            // 
            // InvoiceDate
            // 
            this.InvoiceDate.Text = "تاریخ ";
            this.InvoiceDate.Width = 75;
            // 
            // TotalPrice
            // 
            this.TotalPrice.Text = "مبلغ کل";
            this.TotalPrice.Width = 80;
            // 
            // columnHeader7
            // 
            this.columnHeader7.Text = "تخفیف";
            this.columnHeader7.Width = 67;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "نوع";
            this.columnHeader5.Width = 40;
            // 
            // columnHeader6
            // 
            this.columnHeader6.Text = "پرداخت";
            this.columnHeader6.Width = 54;
            // 
            // lstInvoiceMenuStrip
            // 
            this.lstInvoiceMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.SaveDocumentToolStripMenuItem,
            this.SaveCashPayDocumentToolStripMenuItem,
            this.SaveChequeDocumentToolStripMenuItem});
            this.lstInvoiceMenuStrip.Name = "lstInvoiceMenuStrip";
            this.lstInvoiceMenuStrip.Size = new System.Drawing.Size(165, 92);
            // 
            // SaveDocumentToolStripMenuItem
            // 
            this.SaveDocumentToolStripMenuItem.Name = "SaveDocumentToolStripMenuItem";
            this.SaveDocumentToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
            this.SaveDocumentToolStripMenuItem.Text = "ثبت سند فاکتور";
            this.SaveDocumentToolStripMenuItem.Click += new System.EventHandler(this.SaveDocumentToolStripMenuItem_Click);
            // 
            // SaveCashPayDocumentToolStripMenuItem
            // 
            this.SaveCashPayDocumentToolStripMenuItem.Name = "SaveCashPayDocumentToolStripMenuItem";
            this.SaveCashPayDocumentToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
            this.SaveCashPayDocumentToolStripMenuItem.Text = "ثبت سند پرداخت نقد";
            this.SaveCashPayDocumentToolStripMenuItem.Click += new System.EventHandler(this.SaveCashPayDocumentToolStripMenuItem_Click);
            // 
            // SaveChequeDocumentToolStripMenuItem
            // 
            this.SaveChequeDocumentToolStripMenuItem.Name = "SaveChequeDocumentToolStripMenuItem";
            this.SaveChequeDocumentToolStripMenuItem.Size = new System.Drawing.Size(164, 22);
            this.SaveChequeDocumentToolStripMenuItem.Text = "ثبت سند چک فاکتور";
            this.SaveChequeDocumentToolStripMenuItem.Click += new System.EventHandler(this.SaveChequeDocumentToolStripMenuItem_Click);
            // 
            // lstInvoiceItems
            // 
            this.lstInvoiceItems.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstInvoiceItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.ID,
            this.ItemID,
            this.ItemName,
            this.Count,
            this.price});
            this.lstInvoiceItems.FullRowSelect = true;
            this.lstInvoiceItems.HideSelection = false;
            this.lstInvoiceItems.Location = new System.Drawing.Point(14, 10);
            this.lstInvoiceItems.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstInvoiceItems.Name = "lstInvoiceItems";
            this.lstInvoiceItems.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstInvoiceItems.RightToLeftLayout = true;
            this.lstInvoiceItems.Size = new System.Drawing.Size(418, 599);
            this.lstInvoiceItems.TabIndex = 0;
            this.lstInvoiceItems.UseCompatibleStateImageBehavior = false;
            this.lstInvoiceItems.View = System.Windows.Forms.View.Details;
            this.lstInvoiceItems.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.list_ColumnClick);
            // 
            // ID
            // 
            this.ID.Text = "ردیف";
            this.ID.Width = 40;
            // 
            // ItemID
            // 
            this.ItemID.Text = "کد کالا";
            this.ItemID.Width = 71;
            // 
            // ItemName
            // 
            this.ItemName.Text = "نام کالا";
            this.ItemName.Width = 131;
            // 
            // Count
            // 
            this.Count.Text = "تعداد";
            this.Count.Width = 50;
            // 
            // price
            // 
            this.price.Text = "فی واحد";
            this.price.Width = 62;
            // 
            // btnDeleteInvoice
            // 
            this.btnDeleteInvoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnDeleteInvoice.Enabled = false;
            this.btnDeleteInvoice.Image = global::Store.Properties.Resources.cancel;
            this.btnDeleteInvoice.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnDeleteInvoice.Location = new System.Drawing.Point(786, 614);
            this.btnDeleteInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnDeleteInvoice.Name = "btnDeleteInvoice";
            this.btnDeleteInvoice.Size = new System.Drawing.Size(111, 50);
            this.btnDeleteInvoice.TabIndex = 1;
            this.btnDeleteInvoice.Text = "حذف فاکتور";
            this.btnDeleteInvoice.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.toolTip.SetToolTip(this.btnDeleteInvoice, "حذف کامل فاکتور و تمامی اقلام آن و بازگرداندن/کم کردن موجودی انبار");
            this.btnDeleteInvoice.UseVisualStyleBackColor = true;
            this.btnDeleteInvoice.Click += new System.EventHandler(this.btnDeleteInvoice_Click);
            // 
            // abrDateStart
            // 
            this.abrDateStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrDateStart.Enabled = false;
            this.abrDateStart.EndOfYears = 1900;
            this.abrDateStart.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrDateStart.isBorder3D = true;
            this.abrDateStart.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateStart.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateStart.Location = new System.Drawing.Point(7, 61);
            this.abrDateStart.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrDateStart.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrDateStart.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrDateStart.Name = "abrDateStart";
            this.abrDateStart.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrDateStart.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrDateStart.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrDateStart.SelectedDate = new System.DateTime(2014, 10, 19, 1, 1, 1, 1);
            this.abrDateStart.SelectedDateString = "1393/07/27";
            this.abrDateStart.SelectedMonthName = null;
            this.abrDateStart.Size = new System.Drawing.Size(175, 37);
            this.abrDateStart.StartOfYears = 1350;
            this.abrDateStart.TabIndex = 3;
            this.toolTip.SetToolTip(this.abrDateStart, "تاریخ شروع فیلترگذاری");
            // 
            // abrDateEnd
            // 
            this.abrDateEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrDateEnd.Enabled = false;
            this.abrDateEnd.EndOfYears = 1900;
            this.abrDateEnd.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrDateEnd.isBorder3D = true;
            this.abrDateEnd.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateEnd.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateEnd.Location = new System.Drawing.Point(7, 139);
            this.abrDateEnd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrDateEnd.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrDateEnd.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrDateEnd.Name = "abrDateEnd";
            this.abrDateEnd.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrDateEnd.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrDateEnd.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrDateEnd.SelectedDate = new System.DateTime(2014, 10, 19, 1, 1, 1, 1);
            this.abrDateEnd.SelectedDateString = "1393/07/27";
            this.abrDateEnd.SelectedMonthName = null;
            this.abrDateEnd.Size = new System.Drawing.Size(175, 37);
            this.abrDateEnd.StartOfYears = 1350;
            this.abrDateEnd.TabIndex = 3;
            this.toolTip.SetToolTip(this.abrDateEnd, "تاریخ پایان فیلترگذاری");
            // 
            // txtPriceStart
            // 
            this.txtPriceStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtPriceStart.Enabled = false;
            this.txtPriceStart.Location = new System.Drawing.Point(905, 323);
            this.txtPriceStart.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtPriceStart.Name = "txtPriceStart";
            this.txtPriceStart.Size = new System.Drawing.Size(187, 27);
            this.txtPriceStart.TabIndex = 7;
            this.txtPriceStart.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPriceStart_KeyPress);
            // 
            // txtPriceEnd
            // 
            this.txtPriceEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtPriceEnd.Enabled = false;
            this.txtPriceEnd.Location = new System.Drawing.Point(905, 392);
            this.txtPriceEnd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtPriceEnd.Name = "txtPriceEnd";
            this.txtPriceEnd.Size = new System.Drawing.Size(187, 27);
            this.txtPriceEnd.TabIndex = 7;
            this.txtPriceEnd.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPriceEnd_KeyPress);
            // 
            // btnApplyFilter
            // 
            this.btnApplyFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnApplyFilter.Location = new System.Drawing.Point(904, 608);
            this.btnApplyFilter.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnApplyFilter.Name = "btnApplyFilter";
            this.btnApplyFilter.Size = new System.Drawing.Size(189, 56);
            this.btnApplyFilter.TabIndex = 10;
            this.btnApplyFilter.Text = "فیلترگذاری";
            this.btnApplyFilter.UseVisualStyleBackColor = true;
            this.btnApplyFilter.Click += new System.EventHandler(this.btnApplyFilter_Click);
            // 
            // lstDistributors
            // 
            this.lstDistributors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstDistributors.CheckBoxes = true;
            this.lstDistributors.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.checkboxes,
            this.AccountantID,
            this.AccountantName,
            this.AccountantPhone});
            this.lstDistributors.FullRowSelect = true;
            this.lstDistributors.HideSelection = false;
            this.lstDistributors.Location = new System.Drawing.Point(1099, 41);
            this.lstDistributors.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstDistributors.Name = "lstDistributors";
            this.lstDistributors.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstDistributors.RightToLeftLayout = true;
            this.lstDistributors.Size = new System.Drawing.Size(254, 289);
            this.lstDistributors.TabIndex = 11;
            this.lstDistributors.UseCompatibleStateImageBehavior = false;
            this.lstDistributors.View = System.Windows.Forms.View.Details;
            this.lstDistributors.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.list_ColumnClick);
            // 
            // checkboxes
            // 
            this.checkboxes.Text = "";
            this.checkboxes.Width = 20;
            // 
            // AccountantID
            // 
            this.AccountantID.Text = "شناسه";
            this.AccountantID.Width = 43;
            // 
            // AccountantName
            // 
            this.AccountantName.Text = "نام";
            this.AccountantName.Width = 89;
            // 
            // AccountantPhone
            // 
            this.AccountantPhone.Text = "تلفن";
            this.AccountantPhone.Width = 62;
            // 
            // errorProvider
            // 
            this.errorProvider.ContainerControl = this;
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(1268, 18);
            this.label1.Name = "label1";
            this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label1.Size = new System.Drawing.Size(81, 20);
            this.label1.TabIndex = 12;
            this.label1.Text = "توزیع کننده ها";
            this.label1.Visible = false;
            // 
            // lstCustomers
            // 
            this.lstCustomers.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstCustomers.CheckBoxes = true;
            this.lstCustomers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3,
            this.columnHeader4});
            this.lstCustomers.FullRowSelect = true;
            this.lstCustomers.HideSelection = false;
            this.lstCustomers.Location = new System.Drawing.Point(1100, 370);
            this.lstCustomers.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstCustomers.Name = "lstCustomers";
            this.lstCustomers.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstCustomers.RightToLeftLayout = true;
            this.lstCustomers.Size = new System.Drawing.Size(254, 292);
            this.lstCustomers.TabIndex = 11;
            this.lstCustomers.UseCompatibleStateImageBehavior = false;
            this.lstCustomers.View = System.Windows.Forms.View.Details;
            this.lstCustomers.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.list_ColumnClick);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "";
            this.columnHeader1.Width = 20;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "شناسه";
            this.columnHeader2.Width = 43;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "نام";
            this.columnHeader3.Width = 80;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "بدهی";
            this.columnHeader4.Width = 76;
            // 
            // label2
            // 
            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(1295, 346);
            this.label2.Name = "label2";
            this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label2.Size = new System.Drawing.Size(61, 20);
            this.label2.TabIndex = 13;
            this.label2.Text = "مشتری ها";
            this.label2.Visible = false;
            // 
            // btnCheckAllDistributors
            // 
            this.btnCheckAllDistributors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnCheckAllDistributors.Location = new System.Drawing.Point(1099, 12);
            this.btnCheckAllDistributors.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnCheckAllDistributors.Name = "btnCheckAllDistributors";
            this.btnCheckAllDistributors.Size = new System.Drawing.Size(87, 29);
            this.btnCheckAllDistributors.TabIndex = 14;
            this.btnCheckAllDistributors.Text = "انتخاب همه";
            this.btnCheckAllDistributors.UseVisualStyleBackColor = true;
            this.btnCheckAllDistributors.Click += new System.EventHandler(this.btnCheckAllDistributors_Click);
            // 
            // btnCheckAllCustomers
            // 
            this.btnCheckAllCustomers.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnCheckAllCustomers.Location = new System.Drawing.Point(1100, 341);
            this.btnCheckAllCustomers.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnCheckAllCustomers.Name = "btnCheckAllCustomers";
            this.btnCheckAllCustomers.Size = new System.Drawing.Size(87, 29);
            this.btnCheckAllCustomers.TabIndex = 14;
            this.btnCheckAllCustomers.Text = "انتخاب همه";
            this.btnCheckAllCustomers.UseVisualStyleBackColor = true;
            this.btnCheckAllCustomers.Click += new System.EventHandler(this.btnCheckAllCustomers_Click);
            // 
            // btnUncheckAllCustomers
            // 
            this.btnUncheckAllCustomers.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnUncheckAllCustomers.Location = new System.Drawing.Point(1195, 341);
            this.btnUncheckAllCustomers.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnUncheckAllCustomers.Name = "btnUncheckAllCustomers";
            this.btnUncheckAllCustomers.Size = new System.Drawing.Size(76, 29);
            this.btnUncheckAllCustomers.TabIndex = 14;
            this.btnUncheckAllCustomers.Text = "حذف همه";
            this.btnUncheckAllCustomers.UseVisualStyleBackColor = true;
            this.btnUncheckAllCustomers.Click += new System.EventHandler(this.btnUncheckAllCustomers_Click);
            // 
            // btnUncheckAllDistributors
            // 
            this.btnUncheckAllDistributors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnUncheckAllDistributors.Location = new System.Drawing.Point(1193, 12);
            this.btnUncheckAllDistributors.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnUncheckAllDistributors.Name = "btnUncheckAllDistributors";
            this.btnUncheckAllDistributors.Size = new System.Drawing.Size(76, 29);
            this.btnUncheckAllDistributors.TabIndex = 14;
            this.btnUncheckAllDistributors.Text = "حذف همه";
            this.btnUncheckAllDistributors.UseVisualStyleBackColor = true;
            this.btnUncheckAllDistributors.Click += new System.EventHandler(this.btnUncheckAllDistributors_Click);
            // 
            // groupBoxPay
            // 
            this.groupBoxPay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBoxPay.Controls.Add(this.rdbtnUnpaidOnly);
            this.groupBoxPay.Controls.Add(this.rdbtnPaidOnly);
            this.groupBoxPay.Controls.Add(this.rdbtnPaymentAll);
            this.groupBoxPay.Controls.Add(this.btnTogglePaid);
            this.groupBoxPay.Location = new System.Drawing.Point(904, 430);
            this.groupBoxPay.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBoxPay.Name = "groupBoxPay";
            this.groupBoxPay.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBoxPay.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBoxPay.Size = new System.Drawing.Size(188, 170);
            this.groupBoxPay.TabIndex = 15;
            this.groupBoxPay.TabStop = false;
            this.groupBoxPay.Text = "وضعیت پرداخت";
            // 
            // rdbtnUnpaidOnly
            // 
            this.rdbtnUnpaidOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnUnpaidOnly.AutoSize = true;
            this.rdbtnUnpaidOnly.Location = new System.Drawing.Point(85, 95);
            this.rdbtnUnpaidOnly.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnUnpaidOnly.Name = "rdbtnUnpaidOnly";
            this.rdbtnUnpaidOnly.Size = new System.Drawing.Size(96, 24);
            this.rdbtnUnpaidOnly.TabIndex = 0;
            this.rdbtnUnpaidOnly.Text = "پرداخت نشده";
            this.rdbtnUnpaidOnly.UseVisualStyleBackColor = true;
            this.rdbtnUnpaidOnly.CheckedChanged += new System.EventHandler(this.rdbtnUnpaidOnly_CheckedChanged);
            // 
            // rdbtnPaidOnly
            // 
            this.rdbtnPaidOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnPaidOnly.AutoSize = true;
            this.rdbtnPaidOnly.Location = new System.Drawing.Point(88, 61);
            this.rdbtnPaidOnly.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnPaidOnly.Name = "rdbtnPaidOnly";
            this.rdbtnPaidOnly.Size = new System.Drawing.Size(92, 24);
            this.rdbtnPaidOnly.TabIndex = 0;
            this.rdbtnPaidOnly.Text = "پرداخت شده";
            this.rdbtnPaidOnly.UseVisualStyleBackColor = true;
            this.rdbtnPaidOnly.CheckedChanged += new System.EventHandler(this.rdbtnPaidOnly_CheckedChanged);
            // 
            // rdbtnPaymentAll
            // 
            this.rdbtnPaymentAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnPaymentAll.AutoSize = true;
            this.rdbtnPaymentAll.Checked = true;
            this.rdbtnPaymentAll.Location = new System.Drawing.Point(135, 28);
            this.rdbtnPaymentAll.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnPaymentAll.Name = "rdbtnPaymentAll";
            this.rdbtnPaymentAll.Size = new System.Drawing.Size(46, 24);
            this.rdbtnPaymentAll.TabIndex = 0;
            this.rdbtnPaymentAll.TabStop = true;
            this.rdbtnPaymentAll.Text = "همه";
            this.rdbtnPaymentAll.UseVisualStyleBackColor = true;
            this.rdbtnPaymentAll.CheckedChanged += new System.EventHandler(this.rdbtnPaymentAll_CheckedChanged);
            // 
            // btnTogglePaid
            // 
            this.btnTogglePaid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnTogglePaid.Location = new System.Drawing.Point(52, 123);
            this.btnTogglePaid.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnTogglePaid.Name = "btnTogglePaid";
            this.btnTogglePaid.Size = new System.Drawing.Size(128, 38);
            this.btnTogglePaid.TabIndex = 1;
            this.btnTogglePaid.Text = "تغییر وضعیت پرداخت";
            this.btnTogglePaid.UseVisualStyleBackColor = true;
            this.btnTogglePaid.Click += new System.EventHandler(this.btnTogglePaid_Click);
            // 
            // invoiceTableAdapter
            // 
            this.invoiceTableAdapter.ClearBeforeFill = true;
            // 
            // viewItemNameOnInvoiceItemTableAdapter
            // 
            this.viewItemNameOnInvoiceItemTableAdapter.ClearBeforeFill = true;
            // 
            // invoiceItemTableAdapter
            // 
            this.invoiceItemTableAdapter.ClearBeforeFill = true;
            // 
            // distributorTableAdapter
            // 
            this.distributorTableAdapter.ClearBeforeFill = true;
            // 
            // customerTableAdapter
            // 
            this.customerTableAdapter.ClearBeforeFill = true;
            // 
            // abrDateNew
            // 
            this.abrDateNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrDateNew.EndOfYears = 1900;
            this.abrDateNew.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrDateNew.isBorder3D = true;
            this.abrDateNew.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateNew.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateNew.Location = new System.Drawing.Point(6, 231);
            this.abrDateNew.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrDateNew.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrDateNew.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrDateNew.Name = "abrDateNew";
            this.abrDateNew.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrDateNew.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrDateNew.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrDateNew.SelectedDate = new System.DateTime(2012, 4, 3, 1, 1, 1, 1);
            this.abrDateNew.SelectedDateString = "1391/01/15";
            this.abrDateNew.SelectedMonthName = null;
            this.abrDateNew.Size = new System.Drawing.Size(175, 37);
            this.abrDateNew.StartOfYears = 1350;
            this.abrDateNew.TabIndex = 3;
            this.toolTip.SetToolTip(this.abrDateNew, "تاریخ جدید فاکتور");
            // 
            // btnChangeDate
            // 
            this.btnChangeDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnChangeDate.Enabled = false;
            this.btnChangeDate.Location = new System.Drawing.Point(70, 184);
            this.btnChangeDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnChangeDate.Name = "btnChangeDate";
            this.btnChangeDate.Size = new System.Drawing.Size(108, 38);
            this.btnChangeDate.TabIndex = 1;
            this.btnChangeDate.Text = "تغییر تاریخ به:";
            this.btnChangeDate.UseVisualStyleBackColor = true;
            this.btnChangeDate.Click += new System.EventHandler(this.btnChangeDate_Click);
            // 
            // groupBoxDate
            // 
            this.groupBoxDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBoxDate.Controls.Add(this.abrDateStart);
            this.groupBoxDate.Controls.Add(this.abrDateEnd);
            this.groupBoxDate.Controls.Add(this.abrDateNew);
            this.groupBoxDate.Controls.Add(this.btnChangeDate);
            this.groupBoxDate.Controls.Add(this.chkEndDate);
            this.groupBoxDate.Controls.Add(this.chkStartDate);
            this.groupBoxDate.Location = new System.Drawing.Point(904, 10);
            this.groupBoxDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBoxDate.Name = "groupBoxDate";
            this.groupBoxDate.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBoxDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBoxDate.Size = new System.Drawing.Size(188, 278);
            this.groupBoxDate.TabIndex = 16;
            this.groupBoxDate.TabStop = false;
            this.groupBoxDate.Text = "تاریخ";
            // 
            // chkEndDate
            // 
            this.chkEndDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkEndDate.AutoSize = true;
            this.chkEndDate.Location = new System.Drawing.Point(116, 107);
            this.chkEndDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkEndDate.Name = "chkEndDate";
            this.chkEndDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkEndDate.Size = new System.Drawing.Size(66, 24);
            this.chkEndDate.TabIndex = 2;
            this.chkEndDate.Text = "تا تاریخ";
            this.chkEndDate.UseVisualStyleBackColor = true;
            this.chkEndDate.CheckedChanged += new System.EventHandler(this.chkEndDate_CheckedChanged);
            // 
            // chkStartDate
            // 
            this.chkStartDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkStartDate.AutoSize = true;
            this.chkStartDate.Location = new System.Drawing.Point(113, 28);
            this.chkStartDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkStartDate.Name = "chkStartDate";
            this.chkStartDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkStartDate.Size = new System.Drawing.Size(67, 24);
            this.chkStartDate.TabIndex = 2;
            this.chkStartDate.Text = "از تاریخ";
            this.chkStartDate.UseVisualStyleBackColor = true;
            this.chkStartDate.CheckedChanged += new System.EventHandler(this.chkStartDate_CheckedChanged);
            // 
            // chequeTableAdapter
            // 
            this.chequeTableAdapter.ClearBeforeFill = true;
            // 
            // btnEditInvoice
            // 
            this.btnEditInvoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnEditInvoice.Enabled = false;
            this.btnEditInvoice.Location = new System.Drawing.Point(440, 620);
            this.btnEditInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnEditInvoice.Name = "btnEditInvoice";
            this.btnEditInvoice.Size = new System.Drawing.Size(115, 38);
            this.btnEditInvoice.TabIndex = 1;
            this.btnEditInvoice.Text = "تصحیح فاکتور";
            this.btnEditInvoice.UseVisualStyleBackColor = true;
            this.btnEditInvoice.Click += new System.EventHandler(this.btnEditInvoice_Click);
            // 
            // chkStartPrice
            // 
            this.chkStartPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkStartPrice.AutoSize = true;
            this.chkStartPrice.Location = new System.Drawing.Point(1027, 295);
            this.chkStartPrice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkStartPrice.Name = "chkStartPrice";
            this.chkStartPrice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkStartPrice.Size = new System.Drawing.Size(65, 24);
            this.chkStartPrice.TabIndex = 2;
            this.chkStartPrice.Text = "از مبلغ";
            this.chkStartPrice.UseVisualStyleBackColor = true;
            this.chkStartPrice.CheckedChanged += new System.EventHandler(this.chkStartPrice_CheckedChanged);
            // 
            // chkEndPrice
            // 
            this.chkEndPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkEndPrice.AutoSize = true;
            this.chkEndPrice.Location = new System.Drawing.Point(1028, 358);
            this.chkEndPrice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkEndPrice.Name = "chkEndPrice";
            this.chkEndPrice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkEndPrice.Size = new System.Drawing.Size(64, 24);
            this.chkEndPrice.TabIndex = 2;
            this.chkEndPrice.Text = "تا مبلغ";
            this.chkEndPrice.UseVisualStyleBackColor = true;
            this.chkEndPrice.CheckedChanged += new System.EventHandler(this.chkEndPrice_CheckedChanged);
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // txtInvoiceIDSearch
            // 
            this.txtInvoiceIDSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtInvoiceIDSearch.Location = new System.Drawing.Point(562, 626);
            this.txtInvoiceIDSearch.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtInvoiceIDSearch.Name = "txtInvoiceIDSearch";
            this.txtInvoiceIDSearch.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtInvoiceIDSearch.Size = new System.Drawing.Size(216, 27);
            this.txtInvoiceIDSearch.TabIndex = 7;
            this.txtInvoiceIDSearch.Text = "جستجو با شماره فاکتور";
            this.toolTip.SetToolTip(this.txtInvoiceIDSearch, "برای جستجو شماره فاکتور را تایپ کرده کلید\r\nEnter\r\nرا بزنید");
            this.txtInvoiceIDSearch.Enter += new System.EventHandler(this.txtInvoiceIDSearch_Enter);
            this.txtInvoiceIDSearch.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtInvoiceIDSearch_KeyPress);
            this.txtInvoiceIDSearch.Leave += new System.EventHandler(this.txtInvoiceIDSearch_Leave);
            // 
            // toolTip
            // 
            this.toolTip.AutomaticDelay = 100;
            this.toolTip.AutoPopDelay = 10000;
            this.toolTip.InitialDelay = 100;
            this.toolTip.IsBalloon = true;
            this.toolTip.ReshowDelay = 20;
            // 
            // InvoiceManageForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.BlueViolet;
            this.ClientSize = new System.Drawing.Size(1362, 683);
            this.Controls.Add(this.groupBoxDate);
            this.Controls.Add(this.groupBoxPay);
            this.Controls.Add(this.btnUncheckAllDistributors);
            this.Controls.Add(this.btnUncheckAllCustomers);
            this.Controls.Add(this.btnCheckAllCustomers);
            this.Controls.Add(this.chkEndPrice);
            this.Controls.Add(this.chkStartPrice);
            this.Controls.Add(this.btnCheckAllDistributors);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.lstCustomers);
            this.Controls.Add(this.lstDistributors);
            this.Controls.Add(this.btnApplyFilter);
            this.Controls.Add(this.txtPriceEnd);
            this.Controls.Add(this.txtInvoiceIDSearch);
            this.Controls.Add(this.txtPriceStart);
            this.Controls.Add(this.btnEditInvoice);
            this.Controls.Add(this.btnDeleteInvoice);
            this.Controls.Add(this.lstInvoiceItems);
            this.Controls.Add(this.lstInvoices);
            this.Font = new System.Drawing.Font("XB Roya", 9.25F);
            this.KeyPreview = true;
            this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.Name = "InvoiceManageForm";
            this.Text = "مدیریت فاکتورها";
            this.Activated += new System.EventHandler(this.InvoiceManageForm_Activated);
            this.Load += new System.EventHandler(this.InvoiceManageForm_Load);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.InvoiceManageForm_KeyPress);
            this.lstInvoiceMenuStrip.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
            this.groupBoxPay.ResumeLayout(false);
            this.groupBoxPay.PerformLayout();
            this.groupBoxDate.ResumeLayout(false);
            this.groupBoxDate.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
Example #4
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InvoiceSaleForm));
            this.lstTotal = new System.Windows.Forms.ListView();
            this.ItemID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ItemName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.SellPrice = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Count = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Total = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.btnCreateInvoice = new System.Windows.Forms.Button();
            this.btnDeleteInvoiceItem = new System.Windows.Forms.Button();
            this.cmbCustomers = new System.Windows.Forms.ComboBox();
            this.customerBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.storeDBDataSet = new Store.DB.StoreDBDataSet();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.numExpenses = new System.Windows.Forms.NumericUpDown();
            this.numDiscount = new System.Windows.Forms.NumericUpDown();
            this.chkUnPaidInvoice = new System.Windows.Forms.CheckBox();
            this.label4 = new System.Windows.Forms.Label();
            this.cmbBankAccount = new System.Windows.Forms.ComboBox();
            this.bankAccountBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.lblDiscount = new System.Windows.Forms.Label();
            this.rdbtnChequePayment = new System.Windows.Forms.RadioButton();
            this.rdbtnPosPayment = new System.Windows.Forms.RadioButton();
            this.rdbtnCashPayment = new System.Windows.Forms.RadioButton();
            this.bankAccountTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.BankAccountTableAdapter();
            this.customerTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.CustomerTableAdapter();
            this.lstItems = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.label11 = new System.Windows.Forms.Label();
            this.txtItemNameID = new System.Windows.Forms.TextBox();
            this.btnAddToInvoice = new System.Windows.Forms.Button();
            this.chkReportOutput = new System.Windows.Forms.CheckBox();
            this.stiReport1 = new Stimulsoft.Report.StiReport();
            this.stiReportDataSource10 = new Stimulsoft.Report.Design.StiReportDataSource("StoreDBDataSet", this.storeDBDataSet);
            this.viewCustomerOnInvoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ViewCustomerOnInvoiceTableAdapter();
            this.dailyTransactionTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.DailyTransactionTableAdapter();
            this.abrInvoiceDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.btnAddCustomer = new System.Windows.Forms.Button();
            this.btnSeparateInvoices = new System.Windows.Forms.Button();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.listTimer = new System.Windows.Forms.Timer(this.components);
            this.itemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ItemTableAdapter();
            this.invoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceTableAdapter();
            this.invoiceItemTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceItemTableAdapter();
            this.chkChangeTextForID = new System.Windows.Forms.CheckBox();
            this.lblTimestamp = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.lblTotalPrice = new System.Windows.Forms.Label();
            this.lblTotalPayable = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.customerBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).BeginInit();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numExpenses)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numDiscount)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.bankAccountBindingSource)).BeginInit();
            this.SuspendLayout();
            // 
            // lstTotal
            // 
            this.lstTotal.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.lstTotal.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.ItemID,
            this.ItemName,
            this.SellPrice,
            this.Count,
            this.Total});
            this.lstTotal.Font = new System.Drawing.Font("XB Roya", 11F);
            this.lstTotal.FullRowSelect = true;
            this.lstTotal.GridLines = true;
            this.lstTotal.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.lstTotal.Location = new System.Drawing.Point(348, 67);
            this.lstTotal.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstTotal.Name = "lstTotal";
            this.lstTotal.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstTotal.RightToLeftLayout = true;
            this.lstTotal.ShowGroups = false;
            this.lstTotal.Size = new System.Drawing.Size(506, 545);
            this.lstTotal.TabIndex = 10;
            this.lstTotal.UseCompatibleStateImageBehavior = false;
            this.lstTotal.View = System.Windows.Forms.View.Details;
            this.lstTotal.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstTotal_ColumnClick);
            this.lstTotal.KeyDown += new System.Windows.Forms.KeyEventHandler(this.lstTotal_KeyDown);
            // 
            // ItemID
            // 
            this.ItemID.Text = "کد کالا";
            this.ItemID.Width = 90;
            // 
            // ItemName
            // 
            this.ItemName.Text = "نام";
            this.ItemName.Width = 120;
            // 
            // SellPrice
            // 
            this.SellPrice.Text = "فی واحد";
            this.SellPrice.Width = 59;
            // 
            // Count
            // 
            this.Count.Text = "تعداد";
            this.Count.Width = 44;
            // 
            // Total
            // 
            this.Total.Text = "فی کل";
            this.Total.Width = 90;
            // 
            // btnCreateInvoice
            // 
            this.btnCreateInvoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnCreateInvoice.Location = new System.Drawing.Point(217, 574);
            this.btnCreateInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnCreateInvoice.Name = "btnCreateInvoice";
            this.btnCreateInvoice.Size = new System.Drawing.Size(124, 39);
            this.btnCreateInvoice.TabIndex = 9;
            this.btnCreateInvoice.Text = "&صدور فاکتور";
            this.btnCreateInvoice.UseVisualStyleBackColor = true;
            this.btnCreateInvoice.Click += new System.EventHandler(this.btnCreateInvoice_Click);
            // 
            // btnDeleteInvoiceItem
            // 
            this.btnDeleteInvoiceItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnDeleteInvoiceItem.Image = global::Store.Properties.Resources.cancel;
            this.btnDeleteInvoiceItem.Location = new System.Drawing.Point(817, 18);
            this.btnDeleteInvoiceItem.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnDeleteInvoiceItem.Name = "btnDeleteInvoiceItem";
            this.btnDeleteInvoiceItem.Size = new System.Drawing.Size(37, 47);
            this.btnDeleteInvoiceItem.TabIndex = 11;
            this.btnDeleteInvoiceItem.UseVisualStyleBackColor = true;
            this.btnDeleteInvoiceItem.Click += new System.EventHandler(this.btnDeleteInvoiceItem_Click);
            // 
            // cmbCustomers
            // 
            this.cmbCustomers.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cmbCustomers.DataSource = this.customerBindingSource;
            this.cmbCustomers.DisplayMember = "Name";
            this.cmbCustomers.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbCustomers.FormattingEnabled = true;
            this.cmbCustomers.Location = new System.Drawing.Point(77, 63);
            this.cmbCustomers.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.cmbCustomers.Name = "cmbCustomers";
            this.cmbCustomers.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.cmbCustomers.Size = new System.Drawing.Size(193, 27);
            this.cmbCustomers.TabIndex = 2;
            this.cmbCustomers.ValueMember = "ID";
            this.cmbCustomers.SelectedIndexChanged += new System.EventHandler(this.cmbCustomers_SelectedIndexChanged);
            // 
            // customerBindingSource
            // 
            this.customerBindingSource.DataMember = "Customer";
            this.customerBindingSource.DataSource = this.storeDBDataSet;
            // 
            // storeDBDataSet
            // 
            this.storeDBDataSet.DataSetName = "StoreDBDataSet";
            this.storeDBDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // groupBox1
            // 
            this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.label6);
            this.groupBox1.Controls.Add(this.lblTotalPayable);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.lblTotalPrice);
            this.groupBox1.Controls.Add(this.numExpenses);
            this.groupBox1.Controls.Add(this.numDiscount);
            this.groupBox1.Controls.Add(this.chkUnPaidInvoice);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Controls.Add(this.cmbBankAccount);
            this.groupBox1.Controls.Add(this.lblDiscount);
            this.groupBox1.Controls.Add(this.rdbtnChequePayment);
            this.groupBox1.Controls.Add(this.rdbtnPosPayment);
            this.groupBox1.Controls.Add(this.rdbtnCashPayment);
            this.groupBox1.Location = new System.Drawing.Point(9, 107);
            this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBox1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBox1.Size = new System.Drawing.Size(331, 380);
            this.groupBox1.TabIndex = 5;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "پرداخت";
            // 
            // numExpenses
            // 
            this.numExpenses.Font = new System.Drawing.Font("XB Roya", 10.25F);
            this.numExpenses.Increment = new decimal(new int[] {
            500,
            0,
            0,
            0});
            this.numExpenses.Location = new System.Drawing.Point(59, 245);
            this.numExpenses.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.numExpenses.Maximum = new decimal(new int[] {
            -469762049,
            -590869294,
            5421010,
            0});
            this.numExpenses.Name = "numExpenses";
            this.numExpenses.Size = new System.Drawing.Size(149, 29);
            this.numExpenses.TabIndex = 0;
            this.numExpenses.ThousandsSeparator = true;
            this.numExpenses.ValueChanged += new System.EventHandler(this.numExpenses_ValueChanged);
            // 
            // numDiscount
            // 
            this.numDiscount.Font = new System.Drawing.Font("XB Roya", 10.25F);
            this.numDiscount.Increment = new decimal(new int[] {
            500,
            0,
            0,
            0});
            this.numDiscount.Location = new System.Drawing.Point(59, 208);
            this.numDiscount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.numDiscount.Maximum = new decimal(new int[] {
            -469762049,
            -590869294,
            5421010,
            0});
            this.numDiscount.Name = "numDiscount";
            this.numDiscount.Size = new System.Drawing.Size(149, 29);
            this.numDiscount.TabIndex = 0;
            this.numDiscount.ThousandsSeparator = true;
            this.numDiscount.ValueChanged += new System.EventHandler(this.numDiscount_ValueChanged);
            // 
            // chkUnPaidInvoice
            // 
            this.chkUnPaidInvoice.AutoSize = true;
            this.chkUnPaidInvoice.Enabled = false;
            this.chkUnPaidInvoice.Location = new System.Drawing.Point(225, 28);
            this.chkUnPaidInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkUnPaidInvoice.Name = "chkUnPaidInvoice";
            this.chkUnPaidInvoice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkUnPaidInvoice.Size = new System.Drawing.Size(97, 24);
            this.chkUnPaidInvoice.TabIndex = 3;
            this.chkUnPaidInvoice.Text = "پرداخت نشده";
            this.chkUnPaidInvoice.UseVisualStyleBackColor = true;
            this.chkUnPaidInvoice.CheckedChanged += new System.EventHandler(this.chkUnPaidInvoice_CheckedChanged);
            // 
            // label4
            // 
            this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(243, 249);
            this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label4.Name = "label4";
            this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label4.Size = new System.Drawing.Size(78, 20);
            this.label4.TabIndex = 21;
            this.label4.Text = "اضافه دریافت";
            // 
            // cmbBankAccount
            // 
            this.cmbBankAccount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cmbBankAccount.DataSource = this.bankAccountBindingSource;
            this.cmbBankAccount.DisplayMember = "NumberName";
            this.cmbBankAccount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbBankAccount.Enabled = false;
            this.cmbBankAccount.FormattingEnabled = true;
            this.cmbBankAccount.Location = new System.Drawing.Point(51, 94);
            this.cmbBankAccount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.cmbBankAccount.Name = "cmbBankAccount";
            this.cmbBankAccount.Size = new System.Drawing.Size(186, 27);
            this.cmbBankAccount.TabIndex = 2;
            this.cmbBankAccount.ValueMember = "ID";
            // 
            // bankAccountBindingSource
            // 
            this.bankAccountBindingSource.DataMember = "BankAccount";
            this.bankAccountBindingSource.DataSource = this.storeDBDataSet;
            // 
            // lblDiscount
            // 
            this.lblDiscount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblDiscount.AutoSize = true;
            this.lblDiscount.Location = new System.Drawing.Point(277, 212);
            this.lblDiscount.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.lblDiscount.Name = "lblDiscount";
            this.lblDiscount.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lblDiscount.Size = new System.Drawing.Size(43, 20);
            this.lblDiscount.TabIndex = 21;
            this.lblDiscount.Text = "تخفیف";
            // 
            // rdbtnChequePayment
            // 
            this.rdbtnChequePayment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnChequePayment.AutoSize = true;
            this.rdbtnChequePayment.Enabled = false;
            this.rdbtnChequePayment.Location = new System.Drawing.Point(276, 129);
            this.rdbtnChequePayment.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnChequePayment.Name = "rdbtnChequePayment";
            this.rdbtnChequePayment.Size = new System.Drawing.Size(48, 24);
            this.rdbtnChequePayment.TabIndex = 3;
            this.rdbtnChequePayment.Text = "چک";
            this.rdbtnChequePayment.UseVisualStyleBackColor = true;
            // 
            // rdbtnPosPayment
            // 
            this.rdbtnPosPayment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnPosPayment.AutoSize = true;
            this.rdbtnPosPayment.Enabled = false;
            this.rdbtnPosPayment.Location = new System.Drawing.Point(252, 95);
            this.rdbtnPosPayment.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnPosPayment.Name = "rdbtnPosPayment";
            this.rdbtnPosPayment.Size = new System.Drawing.Size(72, 24);
            this.rdbtnPosPayment.TabIndex = 1;
            this.rdbtnPosPayment.Text = "&کارتخوان";
            this.rdbtnPosPayment.UseVisualStyleBackColor = true;
            this.rdbtnPosPayment.CheckedChanged += new System.EventHandler(this.rdbtnPosPayment_CheckedChanged);
            this.rdbtnPosPayment.EnabledChanged += new System.EventHandler(this.rdbtnPosPayment_EnabledChanged);
            // 
            // rdbtnCashPayment
            // 
            this.rdbtnCashPayment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnCashPayment.AutoSize = true;
            this.rdbtnCashPayment.Checked = true;
            this.rdbtnCashPayment.Location = new System.Drawing.Point(281, 61);
            this.rdbtnCashPayment.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnCashPayment.Name = "rdbtnCashPayment";
            this.rdbtnCashPayment.Size = new System.Drawing.Size(43, 24);
            this.rdbtnCashPayment.TabIndex = 0;
            this.rdbtnCashPayment.TabStop = true;
            this.rdbtnCashPayment.Text = "ن&قد";
            this.rdbtnCashPayment.UseVisualStyleBackColor = true;
            // 
            // bankAccountTableAdapter
            // 
            this.bankAccountTableAdapter.ClearBeforeFill = true;
            // 
            // customerTableAdapter
            // 
            this.customerTableAdapter.ClearBeforeFill = true;
            // 
            // lstItems
            // 
            this.lstItems.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.lstItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader5,
            this.columnHeader3});
            this.lstItems.Font = new System.Drawing.Font("XB Roya", 11F);
            this.lstItems.FullRowSelect = true;
            this.lstItems.GridLines = true;
            this.lstItems.Location = new System.Drawing.Point(862, 67);
            this.lstItems.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstItems.MultiSelect = false;
            this.lstItems.Name = "lstItems";
            this.lstItems.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstItems.RightToLeftLayout = true;
            this.lstItems.ShowGroups = false;
            this.lstItems.Size = new System.Drawing.Size(488, 545);
            this.lstItems.TabIndex = 1;
            this.lstItems.UseCompatibleStateImageBehavior = false;
            this.lstItems.View = System.Windows.Forms.View.Details;
            this.lstItems.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstItem_ColumnClick);
            this.lstItems.DoubleClick += new System.EventHandler(this.lstItems_DoubleClick);
            this.lstItems.KeyDown += new System.Windows.Forms.KeyEventHandler(this.lstItems_KeyDown);
            this.lstItems.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.lstItems_KeyPress);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "کد کالا";
            this.columnHeader1.Width = 130;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "نام کالا";
            this.columnHeader2.Width = 180;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "موجودی";
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "قیمت فروش";
            this.columnHeader3.Width = 90;
            // 
            // label11
            // 
            this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(1297, 39);
            this.label11.Name = "label11";
            this.label11.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label11.Size = new System.Drawing.Size(58, 20);
            this.label11.TabIndex = 31;
            this.label11.Text = "نام یا کد:";
            // 
            // txtItemNameID
            // 
            this.txtItemNameID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtItemNameID.Location = new System.Drawing.Point(1018, 35);
            this.txtItemNameID.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtItemNameID.Name = "txtItemNameID";
            this.txtItemNameID.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtItemNameID.Size = new System.Drawing.Size(271, 27);
            this.txtItemNameID.TabIndex = 0;
            this.txtItemNameID.TextChanged += new System.EventHandler(this.txtItemNameID_TextChanged);
            this.txtItemNameID.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtItemNameID_KeyDown);
            this.txtItemNameID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtItemNameID_KeyPress);
            // 
            // btnAddToInvoice
            // 
            this.btnAddToInvoice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddToInvoice.Image = global::Store.Properties.Resources.leftarrow;
            this.btnAddToInvoice.Location = new System.Drawing.Point(862, 18);
            this.btnAddToInvoice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAddToInvoice.Name = "btnAddToInvoice";
            this.btnAddToInvoice.Size = new System.Drawing.Size(37, 47);
            this.btnAddToInvoice.TabIndex = 3;
            this.btnAddToInvoice.UseVisualStyleBackColor = true;
            this.btnAddToInvoice.Click += new System.EventHandler(this.btnAddToInvoice_Click);
            // 
            // chkReportOutput
            // 
            this.chkReportOutput.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.chkReportOutput.AutoSize = true;
            this.chkReportOutput.Location = new System.Drawing.Point(109, 584);
            this.chkReportOutput.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkReportOutput.Name = "chkReportOutput";
            this.chkReportOutput.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkReportOutput.Size = new System.Drawing.Size(101, 24);
            this.chkReportOutput.TabIndex = 32;
            this.chkReportOutput.Text = "گزارش (چاپ)";
            this.chkReportOutput.UseVisualStyleBackColor = true;
            // 
            // stiReport1
            // 
            this.stiReport1.EngineVersion = Stimulsoft.Report.Engine.StiEngineVersion.EngineV2;
            this.stiReport1.ReferencedAssemblies = new string[] {
        "System.Dll",
        "System.Drawing.Dll",
        "Dll",
        "System.Data.Dll",
        "System.Xml.Dll",
        "Stimulsoft.Controls.Dll",
        "Stimulsoft.Base.Dll",
        "Stimulsoft.Report.Dll"};
            this.stiReport1.ReportAlias = "Report";
            this.stiReport1.ReportDataSources.Add(this.stiReportDataSource10);
            this.stiReport1.ReportGuid = "2eb0fd0f635b4feeaa3c92aa921c77ff";
            this.stiReport1.ReportName = "Report";
            this.stiReport1.ReportSource = resources.GetString("stiReport1.ReportSource");
            this.stiReport1.ReportUnit = Stimulsoft.Report.StiReportUnitType.Millimeters;
            this.stiReport1.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.CSharp;
            this.stiReport1.UseProgressInThread = false;
            // 
            // stiReportDataSource10
            // 
            this.stiReportDataSource10.Item = this.storeDBDataSet;
            this.stiReportDataSource10.Name = "StoreDBDataSet";
            // 
            // viewCustomerOnInvoiceTableAdapter
            // 
            this.viewCustomerOnInvoiceTableAdapter.ClearBeforeFill = true;
            // 
            // dailyTransactionTableAdapter
            // 
            this.dailyTransactionTableAdapter.ClearBeforeFill = true;
            // 
            // abrInvoiceDate
            // 
            this.abrInvoiceDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrInvoiceDate.EndOfYears = 1900;
            this.abrInvoiceDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrInvoiceDate.isBorder3D = true;
            this.abrInvoiceDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrInvoiceDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrInvoiceDate.Location = new System.Drawing.Point(78, 538);
            this.abrInvoiceDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrInvoiceDate.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrInvoiceDate.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrInvoiceDate.Name = "abrInvoiceDate";
            this.abrInvoiceDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrInvoiceDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrInvoiceDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrInvoiceDate.SelectedDate = new System.DateTime(2014, 9, 23, 1, 1, 1, 1);
            this.abrInvoiceDate.SelectedDateString = "1393/07/01";
            this.abrInvoiceDate.SelectedMonthName = null;
            this.abrInvoiceDate.Size = new System.Drawing.Size(175, 37);
            this.abrInvoiceDate.StartOfYears = 1350;
            this.abrInvoiceDate.TabIndex = 33;
            // 
            // label2
            // 
            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(289, 67);
            this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label2.Name = "label2";
            this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label2.Size = new System.Drawing.Size(46, 20);
            this.label2.TabIndex = 21;
            this.label2.Text = "مشتری";
            // 
            // label3
            // 
            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(259, 545);
            this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label3.Name = "label3";
            this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label3.Size = new System.Drawing.Size(71, 20);
            this.label3.TabIndex = 21;
            this.label3.Text = "تاریخ فاکتور";
            // 
            // btnAddCustomer
            // 
            this.btnAddCustomer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddCustomer.Image = global::Store.Properties.Resources.edit_add;
            this.btnAddCustomer.Location = new System.Drawing.Point(29, 57);
            this.btnAddCustomer.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAddCustomer.Name = "btnAddCustomer";
            this.btnAddCustomer.Size = new System.Drawing.Size(36, 42);
            this.btnAddCustomer.TabIndex = 11;
            this.btnAddCustomer.UseVisualStyleBackColor = true;
            this.btnAddCustomer.Click += new System.EventHandler(this.btnAddCustomer_Click);
            // 
            // btnSeparateInvoices
            // 
            this.btnSeparateInvoices.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnSeparateInvoices.Image = global::Store.Properties.Resources.edit_add;
            this.btnSeparateInvoices.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnSeparateInvoices.Location = new System.Drawing.Point(348, 22);
            this.btnSeparateInvoices.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnSeparateInvoices.Name = "btnSeparateInvoices";
            this.btnSeparateInvoices.Size = new System.Drawing.Size(152, 42);
            this.btnSeparateInvoices.TabIndex = 11;
            this.btnSeparateInvoices.Text = "انتقال به فاکتور جدید";
            this.btnSeparateInvoices.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnSeparateInvoices.UseVisualStyleBackColor = true;
            this.btnSeparateInvoices.Click += new System.EventHandler(this.btnSeparateInvoices_Click);
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 300;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // listTimer
            // 
            this.listTimer.Enabled = true;
            this.listTimer.Interval = 500;
            this.listTimer.Tick += new System.EventHandler(this.listTimer_Tick);
            // 
            // itemTableAdapter
            // 
            this.itemTableAdapter.ClearBeforeFill = true;
            // 
            // invoiceTableAdapter
            // 
            this.invoiceTableAdapter.ClearBeforeFill = true;
            // 
            // invoiceItemTableAdapter
            // 
            this.invoiceItemTableAdapter.ClearBeforeFill = true;
            // 
            // chkChangeTextForID
            // 
            this.chkChangeTextForID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkChangeTextForID.AutoSize = true;
            this.chkChangeTextForID.Checked = true;
            this.chkChangeTextForID.CheckState = System.Windows.Forms.CheckState.Checked;
            this.chkChangeTextForID.Location = new System.Drawing.Point(902, 36);
            this.chkChangeTextForID.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkChangeTextForID.Name = "chkChangeTextForID";
            this.chkChangeTextForID.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkChangeTextForID.Size = new System.Drawing.Size(110, 24);
            this.chkChangeTextForID.TabIndex = 3;
            this.chkChangeTextForID.Text = "کد جایگزین شود";
            this.chkChangeTextForID.UseVisualStyleBackColor = true;
            // 
            // lblTimestamp
            // 
            this.lblTimestamp.AutoSize = true;
            this.lblTimestamp.Location = new System.Drawing.Point(3, 3);
            this.lblTimestamp.Name = "lblTimestamp";
            this.lblTimestamp.Size = new System.Drawing.Size(44, 20);
            this.lblTimestamp.TabIndex = 34;
            this.lblTimestamp.Text = "label4";
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(270, 173);
            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label1.Name = "label1";
            this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label1.Size = new System.Drawing.Size(51, 20);
            this.label1.TabIndex = 23;
            this.label1.Text = "مجموع :";
            // 
            // lblTotalPrice
            // 
            this.lblTotalPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTotalPrice.AutoSize = true;
            this.lblTotalPrice.Location = new System.Drawing.Point(65, 178);
            this.lblTotalPrice.Name = "lblTotalPrice";
            this.lblTotalPrice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lblTotalPrice.Size = new System.Drawing.Size(89, 20);
            this.lblTotalPrice.TabIndex = 22;
            this.lblTotalPrice.Text = "----------";
            this.lblTotalPrice.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // lblTotalPayable
            // 
            this.lblTotalPayable.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTotalPayable.AutoSize = true;
            this.lblTotalPayable.Font = new System.Drawing.Font("XB Roya", 14F);
            this.lblTotalPayable.Location = new System.Drawing.Point(59, 293);
            this.lblTotalPayable.Name = "lblTotalPayable";
            this.lblTotalPayable.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lblTotalPayable.Size = new System.Drawing.Size(123, 30);
            this.lblTotalPayable.TabIndex = 22;
            this.lblTotalPayable.Text = "----------";
            this.lblTotalPayable.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // label6
            // 
            this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label6.AutoSize = true;
            this.label6.Font = new System.Drawing.Font("XB Roya", 14F);
            this.label6.Location = new System.Drawing.Point(210, 293);
            this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
            this.label6.Name = "label6";
            this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label6.Size = new System.Drawing.Size(112, 30);
            this.label6.TabIndex = 23;
            this.label6.Text = "قابل دریافت:";
            // 
            // InvoiceSaleForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Lime;
            this.ClientSize = new System.Drawing.Size(1362, 643);
            this.Controls.Add(this.lblTimestamp);
            this.Controls.Add(this.abrInvoiceDate);
            this.Controls.Add(this.cmbCustomers);
            this.Controls.Add(this.chkChangeTextForID);
            this.Controls.Add(this.chkReportOutput);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.btnAddToInvoice);
            this.Controls.Add(this.btnSeparateInvoices);
            this.Controls.Add(this.btnAddCustomer);
            this.Controls.Add(this.btnDeleteInvoiceItem);
            this.Controls.Add(this.btnCreateInvoice);
            this.Controls.Add(this.lstTotal);
            this.Controls.Add(this.lstItems);
            this.Controls.Add(this.label11);
            this.Controls.Add(this.txtItemNameID);
            this.Font = new System.Drawing.Font("XB Roya", 9.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.KeyPreview = true;
            this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.Name = "InvoiceSaleForm";
            this.Text = "فاکتور فروش";
            this.Activated += new System.EventHandler(this.InvoiceSaleForm_Activated);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.InvoiceSaleForm_FormClosing);
            this.Load += new System.EventHandler(this.InvoiceSaleForm_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.InvoiceSaleForm_KeyDown);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.InvoiceSaleForm_KeyPress);
            ((System.ComponentModel.ISupportInitialize)(this.customerBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numExpenses)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numDiscount)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.bankAccountBindingSource)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }