コード例 #1
0
        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();

        }
コード例 #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();

        }
コード例 #3
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.txtItemNameID = new System.Windows.Forms.TextBox();
            this.btnReturnItem = new System.Windows.Forms.Button();
            this.lstInvoiceItems = new System.Windows.Forms.ListView();
            this.checkboxes = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            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.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.numCount = new System.Windows.Forms.NumericUpDown();
            this.rdbtnSale = new System.Windows.Forms.RadioButton();
            this.rdbtnBuy = new System.Windows.Forms.RadioButton();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.lstCustomers = new System.Windows.Forms.ListView();
            this.columnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader10 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader11 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.lstDistributors = new System.Windows.Forms.ListView();
            this.columnHeader8 = ((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.btnUncheckAllDistributors = new System.Windows.Forms.Button();
            this.btnCheckallDistributors = new System.Windows.Forms.Button();
            this.btnCheckAllCustomers = new System.Windows.Forms.Button();
            this.btnUnckeckAllCustomers = new System.Windows.Forms.Button();
            this.abrStartDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.abrEndDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.chkNameID = new System.Windows.Forms.CheckBox();
            this.chkCount = new System.Windows.Forms.CheckBox();
            this.chkStartDate = new System.Windows.Forms.CheckBox();
            this.chkEndDate = new System.Windows.Forms.CheckBox();
            this.numReturn = new System.Windows.Forms.NumericUpDown();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.rdbtnReturnSpecific = new System.Windows.Forms.RadioButton();
            this.rdbtnReturnAll = new System.Windows.Forms.RadioButton();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            ((System.ComponentModel.ISupportInitialize)(this.numCount)).BeginInit();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numReturn)).BeginInit();
            this.groupBox2.SuspendLayout();
            this.SuspendLayout();
            // 
            // txtItemNameID
            // 
            this.txtItemNameID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtItemNameID.Enabled = false;
            this.txtItemNameID.Location = new System.Drawing.Point(982, 34);
            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(140, 27);
            this.txtItemNameID.TabIndex = 32;
            this.txtItemNameID.TextChanged += new System.EventHandler(this.txtItemNameID_TextChanged);
            // 
            // btnReturnItem
            // 
            this.btnReturnItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnReturnItem.AutoSize = true;
            this.btnReturnItem.Location = new System.Drawing.Point(937, 600);
            this.btnReturnItem.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnReturnItem.Name = "btnReturnItem";
            this.btnReturnItem.Size = new System.Drawing.Size(282, 51);
            this.btnReturnItem.TabIndex = 37;
            this.btnReturnItem.Text = "تصحیح فاکتور مربوطه برای مرجوع کالا";
            this.btnReturnItem.UseVisualStyleBackColor = true;
            this.btnReturnItem.Click += new System.EventHandler(this.btnReturnItem_Click);
            // 
            // lstInvoiceItems
            // 
            this.lstInvoiceItems.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.checkboxes,
            this.columnHeader7,
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3,
            this.columnHeader4,
            this.columnHeader5,
            this.columnHeader6,
            this.columnHeader12});
            this.lstInvoiceItems.Dock = System.Windows.Forms.DockStyle.Left;
            this.lstInvoiceItems.Font = new System.Drawing.Font("XB Roya", 10F);
            this.lstInvoiceItems.FullRowSelect = true;
            this.lstInvoiceItems.GridLines = true;
            this.lstInvoiceItems.HideSelection = false;
            this.lstInvoiceItems.Location = new System.Drawing.Point(0, 0);
            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(747, 655);
            this.lstInvoiceItems.TabIndex = 38;
            this.lstInvoiceItems.UseCompatibleStateImageBehavior = false;
            this.lstInvoiceItems.View = System.Windows.Forms.View.Details;
            this.lstInvoiceItems.VirtualMode = true;
            this.lstInvoiceItems.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ColumnClick);
            this.lstInvoiceItems.RetrieveVirtualItem += new System.Windows.Forms.RetrieveVirtualItemEventHandler(this.lstInvoiceItems_RetrieveVirtualItem);
            this.lstInvoiceItems.SelectedIndexChanged += new System.EventHandler(this.lstInvoiceItems_SelectedIndexChanged);
            // 
            // checkboxes
            // 
            this.checkboxes.Text = "";
            this.checkboxes.Width = 0;
            // 
            // columnHeader7
            // 
            this.columnHeader7.Text = "ردیف";
            this.columnHeader7.Width = 55;
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "کد کالا";
            this.columnHeader1.Width = 150;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "نام کالا";
            this.columnHeader2.Width = 240;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "ش فاکتور";
            this.columnHeader3.Width = 70;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "تاریخ فاکتور";
            this.columnHeader4.Width = 100;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "تعداد";
            this.columnHeader5.Width = 40;
            // 
            // columnHeader6
            // 
            this.columnHeader6.Text = "قیمت";
            this.columnHeader6.Width = 70;
            // 
            // numCount
            // 
            this.numCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.numCount.Enabled = false;
            this.numCount.Location = new System.Drawing.Point(982, 72);
            this.numCount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.numCount.Name = "numCount";
            this.numCount.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.numCount.Size = new System.Drawing.Size(58, 27);
            this.numCount.TabIndex = 41;
            this.numCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            this.numCount.ValueChanged += new System.EventHandler(this.numCount_ValueChanged);
            // 
            // rdbtnSale
            // 
            this.rdbtnSale.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnSale.AutoSize = true;
            this.rdbtnSale.Checked = true;
            this.rdbtnSale.Location = new System.Drawing.Point(380, 30);
            this.rdbtnSale.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnSale.Name = "rdbtnSale";
            this.rdbtnSale.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdbtnSale.Size = new System.Drawing.Size(58, 24);
            this.rdbtnSale.TabIndex = 42;
            this.rdbtnSale.TabStop = true;
            this.rdbtnSale.Text = "فروش";
            this.rdbtnSale.UseVisualStyleBackColor = true;
            this.rdbtnSale.CheckedChanged += new System.EventHandler(this.rdbtnSale_CheckedChanged);
            // 
            // rdbtnBuy
            // 
            this.rdbtnBuy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnBuy.AutoSize = true;
            this.rdbtnBuy.Location = new System.Drawing.Point(173, 28);
            this.rdbtnBuy.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnBuy.Name = "rdbtnBuy";
            this.rdbtnBuy.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdbtnBuy.Size = new System.Drawing.Size(51, 24);
            this.rdbtnBuy.TabIndex = 42;
            this.rdbtnBuy.Text = "خرید";
            this.rdbtnBuy.UseVisualStyleBackColor = true;
            this.rdbtnBuy.CheckedChanged += new System.EventHandler(this.rdbtnBuy_CheckedChanged);
            // 
            // groupBox1
            // 
            this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.lstCustomers);
            this.groupBox1.Controls.Add(this.lstDistributors);
            this.groupBox1.Controls.Add(this.rdbtnSale);
            this.groupBox1.Controls.Add(this.rdbtnBuy);
            this.groupBox1.Controls.Add(this.btnUncheckAllDistributors);
            this.groupBox1.Controls.Add(this.btnCheckallDistributors);
            this.groupBox1.Controls.Add(this.btnCheckAllCustomers);
            this.groupBox1.Controls.Add(this.btnUnckeckAllCustomers);
            this.groupBox1.Location = new System.Drawing.Point(769, 122);
            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(450, 279);
            this.groupBox1.TabIndex = 43;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "نوع فاکتور";
            // 
            // 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.columnHeader9,
            this.columnHeader10,
            this.columnHeader11});
            this.lstCustomers.FullRowSelect = true;
            this.lstCustomers.HideSelection = false;
            this.lstCustomers.Location = new System.Drawing.Point(231, 61);
            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(207, 207);
            this.lstCustomers.TabIndex = 43;
            this.lstCustomers.UseCompatibleStateImageBehavior = false;
            this.lstCustomers.View = System.Windows.Forms.View.Details;
            this.lstCustomers.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ColumnClick);
            // 
            // columnHeader9
            // 
            this.columnHeader9.Text = "";
            this.columnHeader9.Width = 20;
            // 
            // columnHeader10
            // 
            this.columnHeader10.Text = "شناسه";
            this.columnHeader10.Width = 43;
            // 
            // columnHeader11
            // 
            this.columnHeader11.Text = "نام";
            this.columnHeader11.Width = 97;
            // 
            // 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.columnHeader8,
            this.AccountantID,
            this.AccountantName});
            this.lstDistributors.FullRowSelect = true;
            this.lstDistributors.HideSelection = false;
            this.lstDistributors.Location = new System.Drawing.Point(8, 61);
            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(215, 207);
            this.lstDistributors.TabIndex = 43;
            this.lstDistributors.UseCompatibleStateImageBehavior = false;
            this.lstDistributors.View = System.Windows.Forms.View.Details;
            this.lstDistributors.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.ColumnClick);
            // 
            // columnHeader8
            // 
            this.columnHeader8.Text = "";
            this.columnHeader8.Width = 20;
            // 
            // AccountantID
            // 
            this.AccountantID.Text = "شناسه";
            this.AccountantID.Width = 43;
            // 
            // AccountantName
            // 
            this.AccountantName.Text = "نام";
            this.AccountantName.Width = 97;
            // 
            // btnUncheckAllDistributors
            // 
            this.btnUncheckAllDistributors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnUncheckAllDistributors.AutoSize = true;
            this.btnUncheckAllDistributors.Enabled = false;
            this.btnUncheckAllDistributors.Location = new System.Drawing.Point(6, 27);
            this.btnUncheckAllDistributors.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnUncheckAllDistributors.Name = "btnUncheckAllDistributors";
            this.btnUncheckAllDistributors.Size = new System.Drawing.Size(70, 34);
            this.btnUncheckAllDistributors.TabIndex = 37;
            this.btnUncheckAllDistributors.Text = "حذف همه";
            this.btnUncheckAllDistributors.UseVisualStyleBackColor = true;
            this.btnUncheckAllDistributors.Click += new System.EventHandler(this.btnUncheckAllDistributors_Click);
            // 
            // btnCheckallDistributors
            // 
            this.btnCheckallDistributors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnCheckallDistributors.AutoSize = true;
            this.btnCheckallDistributors.Location = new System.Drawing.Point(78, 27);
            this.btnCheckallDistributors.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnCheckallDistributors.Name = "btnCheckallDistributors";
            this.btnCheckallDistributors.Size = new System.Drawing.Size(78, 34);
            this.btnCheckallDistributors.TabIndex = 37;
            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.AutoSize = true;
            this.btnCheckAllCustomers.Location = new System.Drawing.Point(300, 27);
            this.btnCheckAllCustomers.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnCheckAllCustomers.Name = "btnCheckAllCustomers";
            this.btnCheckAllCustomers.Size = new System.Drawing.Size(78, 34);
            this.btnCheckAllCustomers.TabIndex = 37;
            this.btnCheckAllCustomers.Text = "انتخاب همه";
            this.btnCheckAllCustomers.UseVisualStyleBackColor = true;
            this.btnCheckAllCustomers.Click += new System.EventHandler(this.btnCheckAllCustomers_Click);
            // 
            // btnUnckeckAllCustomers
            // 
            this.btnUnckeckAllCustomers.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnUnckeckAllCustomers.AutoSize = true;
            this.btnUnckeckAllCustomers.Location = new System.Drawing.Point(229, 27);
            this.btnUnckeckAllCustomers.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnUnckeckAllCustomers.Name = "btnUnckeckAllCustomers";
            this.btnUnckeckAllCustomers.Size = new System.Drawing.Size(70, 34);
            this.btnUnckeckAllCustomers.TabIndex = 37;
            this.btnUnckeckAllCustomers.Text = "حذف همه";
            this.btnUnckeckAllCustomers.UseVisualStyleBackColor = true;
            this.btnUnckeckAllCustomers.Click += new System.EventHandler(this.btnUnckeckAllCustomers_Click);
            // 
            // abrStartDate
            // 
            this.abrStartDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrStartDate.EndOfYears = 1900;
            this.abrStartDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrStartDate.isBorder3D = true;
            this.abrStartDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrStartDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrStartDate.Location = new System.Drawing.Point(948, 410);
            this.abrStartDate.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
            this.abrStartDate.MaximumSize = new System.Drawing.Size(175, 36);
            this.abrStartDate.MinimumSize = new System.Drawing.Size(175, 36);
            this.abrStartDate.Name = "abrStartDate";
            this.abrStartDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrStartDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrStartDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrStartDate.SelectedDate = new System.DateTime(2014, 3, 21, 1, 1, 1, 1);
            this.abrStartDate.SelectedDateString = "1393/01/01";
            this.abrStartDate.SelectedMonthName = null;
            this.abrStartDate.Size = new System.Drawing.Size(175, 36);
            this.abrStartDate.StartOfYears = 1350;
            this.abrStartDate.TabIndex = 44;
            // 
            // abrEndDate
            // 
            this.abrEndDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrEndDate.EndOfYears = 1900;
            this.abrEndDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrEndDate.isBorder3D = true;
            this.abrEndDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEndDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEndDate.Location = new System.Drawing.Point(950, 454);
            this.abrEndDate.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
            this.abrEndDate.MaximumSize = new System.Drawing.Size(175, 36);
            this.abrEndDate.MinimumSize = new System.Drawing.Size(175, 36);
            this.abrEndDate.Name = "abrEndDate";
            this.abrEndDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrEndDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrEndDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrEndDate.SelectedDate = new System.DateTime(2014, 3, 21, 1, 1, 1, 1);
            this.abrEndDate.SelectedDateString = "1393/01/01";
            this.abrEndDate.SelectedMonthName = null;
            this.abrEndDate.Size = new System.Drawing.Size(175, 36);
            this.abrEndDate.StartOfYears = 1350;
            this.abrEndDate.TabIndex = 44;
            // 
            // chkNameID
            // 
            this.chkNameID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkNameID.AutoSize = true;
            this.chkNameID.Location = new System.Drawing.Point(1146, 36);
            this.chkNameID.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkNameID.Name = "chkNameID";
            this.chkNameID.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkNameID.Size = new System.Drawing.Size(73, 24);
            this.chkNameID.TabIndex = 45;
            this.chkNameID.Text = "نام یا کد";
            this.chkNameID.UseVisualStyleBackColor = true;
            this.chkNameID.CheckedChanged += new System.EventHandler(this.chkNameID_CheckedChanged);
            // 
            // chkCount
            // 
            this.chkCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkCount.AutoSize = true;
            this.chkCount.Location = new System.Drawing.Point(1113, 73);
            this.chkCount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkCount.Name = "chkCount";
            this.chkCount.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkCount.Size = new System.Drawing.Size(106, 24);
            this.chkCount.TabIndex = 45;
            this.chkCount.Text = "تعداد در فاکتور";
            this.chkCount.UseVisualStyleBackColor = true;
            this.chkCount.CheckedChanged += new System.EventHandler(this.chkCount_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.Checked = true;
            this.chkStartDate.CheckState = System.Windows.Forms.CheckState.Checked;
            this.chkStartDate.Location = new System.Drawing.Point(1152, 418);
            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 = 45;
            this.chkStartDate.Text = "از تاریخ";
            this.chkStartDate.UseVisualStyleBackColor = true;
            this.chkStartDate.CheckedChanged += new System.EventHandler(this.chkStartDate_CheckedChanged);
            // 
            // chkEndDate
            // 
            this.chkEndDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkEndDate.AutoSize = true;
            this.chkEndDate.Checked = true;
            this.chkEndDate.CheckState = System.Windows.Forms.CheckState.Checked;
            this.chkEndDate.Location = new System.Drawing.Point(1153, 460);
            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 = 45;
            this.chkEndDate.Text = "تا تاریخ";
            this.chkEndDate.UseVisualStyleBackColor = true;
            this.chkEndDate.CheckedChanged += new System.EventHandler(this.chkEndDate_CheckedChanged);
            // 
            // numReturn
            // 
            this.numReturn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.numReturn.Enabled = false;
            this.numReturn.Location = new System.Drawing.Point(7, 61);
            this.numReturn.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.numReturn.Name = "numReturn";
            this.numReturn.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.numReturn.Size = new System.Drawing.Size(58, 27);
            this.numReturn.TabIndex = 41;
            this.numReturn.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            // 
            // groupBox2
            // 
            this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox2.Controls.Add(this.rdbtnReturnSpecific);
            this.groupBox2.Controls.Add(this.rdbtnReturnAll);
            this.groupBox2.Controls.Add(this.numReturn);
            this.groupBox2.Enabled = false;
            this.groupBox2.Location = new System.Drawing.Point(937, 492);
            this.groupBox2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.groupBox2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBox2.Size = new System.Drawing.Size(282, 99);
            this.groupBox2.TabIndex = 46;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "تعداد مرجوع";
            // 
            // rdbtnReturnSpecific
            // 
            this.rdbtnReturnSpecific.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnReturnSpecific.AutoSize = true;
            this.rdbtnReturnSpecific.Location = new System.Drawing.Point(175, 61);
            this.rdbtnReturnSpecific.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnReturnSpecific.Name = "rdbtnReturnSpecific";
            this.rdbtnReturnSpecific.Size = new System.Drawing.Size(97, 24);
            this.rdbtnReturnSpecific.TabIndex = 0;
            this.rdbtnReturnSpecific.Text = "تعداد مشخص";
            this.rdbtnReturnSpecific.UseVisualStyleBackColor = true;
            this.rdbtnReturnSpecific.CheckedChanged += new System.EventHandler(this.rdbtnReturnSpecific_CheckedChanged);
            // 
            // rdbtnReturnAll
            // 
            this.rdbtnReturnAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnReturnAll.AutoSize = true;
            this.rdbtnReturnAll.Checked = true;
            this.rdbtnReturnAll.Location = new System.Drawing.Point(197, 28);
            this.rdbtnReturnAll.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnReturnAll.Name = "rdbtnReturnAll";
            this.rdbtnReturnAll.Size = new System.Drawing.Size(74, 24);
            this.rdbtnReturnAll.TabIndex = 0;
            this.rdbtnReturnAll.TabStop = true;
            this.rdbtnReturnAll.Text = "همه اقلام";
            this.rdbtnReturnAll.UseVisualStyleBackColor = true;
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // columnHeader12
            // 
            this.columnHeader12.Text = "طرف حساب";
            this.columnHeader12.Width = 70;
            // 
            // ReturnItemForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.DarkGray;
            this.ClientSize = new System.Drawing.Size(1233, 655);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.chkEndDate);
            this.Controls.Add(this.chkStartDate);
            this.Controls.Add(this.chkCount);
            this.Controls.Add(this.chkNameID);
            this.Controls.Add(this.abrEndDate);
            this.Controls.Add(this.abrStartDate);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.numCount);
            this.Controls.Add(this.lstInvoiceItems);
            this.Controls.Add(this.btnReturnItem);
            this.Controls.Add(this.txtItemNameID);
            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 = "ReturnItemForm";
            this.Text = "مرجوع کالا";
            this.Activated += new System.EventHandler(this.ReturnItemForm_Activated);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ReturnItemForm_FormClosing);
            this.Load += new System.EventHandler(this.ReturnItemForm_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ReturnItemForm_KeyDown);
            ((System.ComponentModel.ISupportInitialize)(this.numCount)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.numReturn)).EndInit();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #4
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.groupBox2 = new GroupBox();
            this.btnDeletePayment = new Button();
            this.label3 = new Label();
            this.txtPaymentTotal = new TextBox();
            this.lblOtherPayments = new Label();
            this.btnSavePayment = new Button();
            this.cmbBankAccounts = new ComboBox();
            this.bankAccountBindingSource = new BindingSource(this.components);
            this.storeDBDataSet = new Store.DB.StoreDBDataSet();
            this.cmbPaymentTypes = new ComboBox();
            this.label6 = new Label();
            this.lstPayments = new ListView();
            this.PeymentID = ((ColumnHeader)(new ColumnHeader()));
            this.PaymentDescription = ((ColumnHeader)(new ColumnHeader()));
            this.PaymentPrice = ((ColumnHeader)(new ColumnHeader()));
            this.lblPaymentPrice = new Label();
            this.txtPaymentDescription = new TextBox();
            this.txtPaymentPrice = new TextBox();
            this.groupBox1 = new GroupBox();
            this.btnDeleteReceipt = new Button();
            this.cmbReceiptType = new ComboBox();
            this.label2 = new Label();
            this.txtReceiptPrice = new TextBox();
            this.lstReceipts = new ListView();
            this.ID = ((ColumnHeader)(new ColumnHeader()));
            this.ReceiptDescription = ((ColumnHeader)(new ColumnHeader()));
            this.ReceiptPrice = ((ColumnHeader)(new ColumnHeader()));
            this.txtReceiptTotal = new TextBox();
            this.txtReceiptDescription = new TextBox();
            this.btnSaveReceipt = new Button();
            this.lblRecieptPrice = new Label();
            this.label4 = new Label();
            this.abrDateToday = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.dailyTransactionTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.DailyTransactionTableAdapter();
            this.bankAccountTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.BankAccountTableAdapter();
            this.errorProvider = new ErrorProvider(this.components);
            this.invoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceTableAdapter();
            this.abrEditDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.btnEditDate = new Button();
            this.txtChangePrice = new TextBox();
            this.btnChangePrice = new Button();
            this.lstAllTrans = new ListView();
            this.columnHeader1 = ((ColumnHeader)(new ColumnHeader()));
            this.columnHeader2 = ((ColumnHeader)(new ColumnHeader()));
            this.columnHeader3 = ((ColumnHeader)(new ColumnHeader()));
            this.columnHeader4 = ((ColumnHeader)(new ColumnHeader()));
            this.lblWeekDay = new Label();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.groupBox2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.bankAccountBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).BeginInit();
            this.groupBox1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
            this.SuspendLayout();
            // 
            // groupBox2
            // 
            this.groupBox2.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Bottom) 
            | AnchorStyles.Right)));
            this.groupBox2.Controls.Add(this.btnDeletePayment);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Controls.Add(this.txtPaymentTotal);
            this.groupBox2.Controls.Add(this.lblOtherPayments);
            this.groupBox2.Controls.Add(this.btnSavePayment);
            this.groupBox2.Controls.Add(this.cmbBankAccounts);
            this.groupBox2.Controls.Add(this.cmbPaymentTypes);
            this.groupBox2.Controls.Add(this.label6);
            this.groupBox2.Controls.Add(this.lstPayments);
            this.groupBox2.Controls.Add(this.lblPaymentPrice);
            this.groupBox2.Controls.Add(this.txtPaymentDescription);
            this.groupBox2.Controls.Add(this.txtPaymentPrice);
            this.groupBox2.Font = new System.Drawing.Font("XB Kayhan", 12F, System.Drawing.FontStyle.Bold);
            this.groupBox2.Location = new System.Drawing.Point(912, 91);
            this.groupBox2.Margin = new Padding(3, 4, 3, 4);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Padding = new Padding(3, 4, 3, 4);
            this.groupBox2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBox2.Size = new System.Drawing.Size(418, 595);
            this.groupBox2.TabIndex = 0;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "پرداخت ها";
            // 
            // btnDeletePayment
            // 
            this.btnDeletePayment.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right)));
            this.btnDeletePayment.Location = new System.Drawing.Point(327, 557);
            this.btnDeletePayment.Margin = new Padding(3, 4, 3, 4);
            this.btnDeletePayment.Name = "btnDeletePayment";
            this.btnDeletePayment.Size = new System.Drawing.Size(87, 34);
            this.btnDeletePayment.TabIndex = 6;
            this.btnDeletePayment.Text = "حذف";
            this.btnDeletePayment.UseVisualStyleBackColor = true;
            this.btnDeletePayment.Click += new System.EventHandler(this.btnDeletePayment_Click);
            // 
            // label3
            // 
            this.label3.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Left)));
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(127, 565);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(56, 24);
            this.label3.TabIndex = 10;
            this.label3.Text = "جمع کل";
            // 
            // txtPaymentTotal
            // 
            this.txtPaymentTotal.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Left)));
            this.txtPaymentTotal.Location = new System.Drawing.Point(3, 560);
            this.txtPaymentTotal.Margin = new Padding(3, 4, 3, 4);
            this.txtPaymentTotal.Name = "txtPaymentTotal";
            this.txtPaymentTotal.Size = new System.Drawing.Size(116, 31);
            this.txtPaymentTotal.TabIndex = 11;
            // 
            // lblOtherPayments
            // 
            this.lblOtherPayments.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblOtherPayments.AutoSize = true;
            this.lblOtherPayments.Location = new System.Drawing.Point(3, 25);
            this.lblOtherPayments.Name = "lblOtherPayments";
            this.lblOtherPayments.Size = new System.Drawing.Size(244, 24);
            this.lblOtherPayments.TabIndex = 9;
            this.lblOtherPayments.Text = "شرح هزینه های قابل محاسبه در ترازنامه";
            // 
            // btnSavePayment
            // 
            this.btnSavePayment.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnSavePayment.Location = new System.Drawing.Point(5, 79);
            this.btnSavePayment.Margin = new Padding(3, 4, 3, 4);
            this.btnSavePayment.Name = "btnSavePayment";
            this.btnSavePayment.Size = new System.Drawing.Size(57, 34);
            this.btnSavePayment.TabIndex = 4;
            this.btnSavePayment.Text = "ثبت";
            this.btnSavePayment.UseVisualStyleBackColor = true;
            this.btnSavePayment.Click += new System.EventHandler(this.btnSavePayment_Click);
            // 
            // cmbBankAccounts
            // 
            this.cmbBankAccounts.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.cmbBankAccounts.DataSource = this.bankAccountBindingSource;
            this.cmbBankAccounts.DisplayMember = "NumberName";
            this.cmbBankAccounts.DropDownStyle = ComboBoxStyle.DropDownList;
            this.cmbBankAccounts.FormattingEnabled = true;
            this.cmbBankAccounts.Location = new System.Drawing.Point(22, 22);
            this.cmbBankAccounts.Margin = new Padding(3, 4, 3, 4);
            this.cmbBankAccounts.Name = "cmbBankAccounts";
            this.cmbBankAccounts.Size = new System.Drawing.Size(216, 32);
            this.cmbBankAccounts.TabIndex = 1;
            this.cmbBankAccounts.ValueMember = "ID";
            this.cmbBankAccounts.Visible = false;
            this.cmbBankAccounts.SelectedIndexChanged += new System.EventHandler(this.cmbBankAccounts_SelectedIndexChanged);
            // 
            // bankAccountBindingSource
            // 
            this.bankAccountBindingSource.DataMember = "BankAccount";
            this.bankAccountBindingSource.DataSource = this.storeDBDataSet;
            // 
            // storeDBDataSet
            // 
            this.storeDBDataSet.DataSetName = "StoreDBDataSet";
            this.storeDBDataSet.EnforceConstraints = false;
            this.storeDBDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // cmbPaymentTypes
            // 
            this.cmbPaymentTypes.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.cmbPaymentTypes.DropDownStyle = ComboBoxStyle.DropDownList;
            this.cmbPaymentTypes.FormattingEnabled = true;
            this.cmbPaymentTypes.Items.AddRange(new object[] {
            "موجودی نقد",
            "کارتخوان",
            "واریز به حساب",
            "برداشت شخصی",
            "قبض (برق، آب و تلفن)",
            "حقوق و بیمه",
            "سایر"});
            this.cmbPaymentTypes.Location = new System.Drawing.Point(246, 22);
            this.cmbPaymentTypes.Margin = new Padding(3, 4, 3, 4);
            this.cmbPaymentTypes.Name = "cmbPaymentTypes";
            this.cmbPaymentTypes.Size = new System.Drawing.Size(164, 32);
            this.cmbPaymentTypes.TabIndex = 0;
            this.cmbPaymentTypes.SelectedIndexChanged += new System.EventHandler(this.cmbPaymentTypes_SelectedIndexChanged);
            // 
            // label6
            // 
            this.label6.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(373, 58);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(39, 24);
            this.label6.TabIndex = 7;
            this.label6.Text = "شرح";
            // 
            // lstPayments
            // 
            this.lstPayments.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom) 
            | AnchorStyles.Left) 
            | AnchorStyles.Right)));
            this.lstPayments.Columns.AddRange(new ColumnHeader[] {
            this.PeymentID,
            this.PaymentDescription,
            this.PaymentPrice});
            this.lstPayments.FullRowSelect = true;
            this.lstPayments.HideSelection = false;
            this.lstPayments.Location = new System.Drawing.Point(3, 120);
            this.lstPayments.Margin = new Padding(3, 4, 3, 4);
            this.lstPayments.MultiSelect = false;
            this.lstPayments.Name = "lstPayments";
            this.lstPayments.RightToLeftLayout = true;
            this.lstPayments.Size = new System.Drawing.Size(410, 436);
            this.lstPayments.TabIndex = 5;
            this.lstPayments.UseCompatibleStateImageBehavior = false;
            this.lstPayments.View = View.Details;
            this.lstPayments.ColumnClick += new ColumnClickEventHandler(this.list_ColumnClick);
            this.lstPayments.SelectedIndexChanged += new System.EventHandler(this.lstPayments_SelectedIndexChanged);
            this.lstPayments.KeyDown += new KeyEventHandler(this.lstPayments_KeyDown);
            this.lstPayments.KeyPress += new KeyPressEventHandler(this.lstPayments_KeyPress);
            // 
            // PeymentID
            // 
            this.PeymentID.Text = "ردیف";
            this.PeymentID.Width = 45;
            // 
            // PaymentDescription
            // 
            this.PaymentDescription.Text = "شرح";
            this.PaymentDescription.Width = 195;
            // 
            // PaymentPrice
            // 
            this.PaymentPrice.Text = "مبلغ";
            this.PaymentPrice.Width = 99;
            // 
            // lblPaymentPrice
            // 
            this.lblPaymentPrice.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblPaymentPrice.AutoSize = true;
            this.lblPaymentPrice.Location = new System.Drawing.Point(189, 58);
            this.lblPaymentPrice.Name = "lblPaymentPrice";
            this.lblPaymentPrice.Size = new System.Drawing.Size(36, 24);
            this.lblPaymentPrice.TabIndex = 8;
            this.lblPaymentPrice.Text = "مبلغ";
            // 
            // txtPaymentDescription
            // 
            this.txtPaymentDescription.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.txtPaymentDescription.Location = new System.Drawing.Point(229, 82);
            this.txtPaymentDescription.Margin = new Padding(3, 4, 3, 4);
            this.txtPaymentDescription.Name = "txtPaymentDescription";
            this.txtPaymentDescription.Size = new System.Drawing.Size(185, 31);
            this.txtPaymentDescription.TabIndex = 2;
            // 
            // txtPaymentPrice
            // 
            this.txtPaymentPrice.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.txtPaymentPrice.Location = new System.Drawing.Point(85, 82);
            this.txtPaymentPrice.Margin = new Padding(3, 4, 3, 4);
            this.txtPaymentPrice.Name = "txtPaymentPrice";
            this.txtPaymentPrice.Size = new System.Drawing.Size(136, 31);
            this.txtPaymentPrice.TabIndex = 3;
            this.txtPaymentPrice.KeyPress += new KeyPressEventHandler(this.txtPaymentPrice_KeyPress);
            // 
            // groupBox1
            // 
            this.groupBox1.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Bottom) 
            | AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.btnDeleteReceipt);
            this.groupBox1.Controls.Add(this.cmbReceiptType);
            this.groupBox1.Controls.Add(this.label2);
            this.groupBox1.Controls.Add(this.txtReceiptPrice);
            this.groupBox1.Controls.Add(this.lstReceipts);
            this.groupBox1.Controls.Add(this.txtReceiptTotal);
            this.groupBox1.Controls.Add(this.txtReceiptDescription);
            this.groupBox1.Controls.Add(this.btnSaveReceipt);
            this.groupBox1.Controls.Add(this.lblRecieptPrice);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Font = new System.Drawing.Font("XB Kayhan", 12F, System.Drawing.FontStyle.Bold);
            this.groupBox1.Location = new System.Drawing.Point(482, 91);
            this.groupBox1.Margin = new Padding(3, 4, 3, 4);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Padding = new Padding(3, 4, 3, 4);
            this.groupBox1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBox1.Size = new System.Drawing.Size(423, 595);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "دریافت ها";
            // 
            // btnDeleteReceipt
            // 
            this.btnDeleteReceipt.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right)));
            this.btnDeleteReceipt.Location = new System.Drawing.Point(332, 557);
            this.btnDeleteReceipt.Margin = new Padding(3, 4, 3, 4);
            this.btnDeleteReceipt.Name = "btnDeleteReceipt";
            this.btnDeleteReceipt.Size = new System.Drawing.Size(87, 34);
            this.btnDeleteReceipt.TabIndex = 5;
            this.btnDeleteReceipt.Text = "حذف";
            this.btnDeleteReceipt.UseVisualStyleBackColor = true;
            this.btnDeleteReceipt.Click += new System.EventHandler(this.btnDeleteReceipt_Click);
            // 
            // cmbReceiptType
            // 
            this.cmbReceiptType.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.cmbReceiptType.DropDownStyle = ComboBoxStyle.DropDownList;
            this.cmbReceiptType.FormattingEnabled = true;
            this.cmbReceiptType.Items.AddRange(new object[] {
            "موجودی از قبل",
            "فروش امروز(صندوق)",
            "سایر"});
            this.cmbReceiptType.Location = new System.Drawing.Point(275, 22);
            this.cmbReceiptType.Margin = new Padding(3, 4, 3, 4);
            this.cmbReceiptType.Name = "cmbReceiptType";
            this.cmbReceiptType.Size = new System.Drawing.Size(140, 32);
            this.cmbReceiptType.TabIndex = 0;
            this.cmbReceiptType.SelectedIndexChanged += new System.EventHandler(this.cmbIncomeType_SelectedIndexChanged);
            // 
            // label2
            // 
            this.label2.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Left)));
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(127, 565);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(56, 24);
            this.label2.TabIndex = 8;
            this.label2.Text = "جمع کل";
            // 
            // txtReceiptPrice
            // 
            this.txtReceiptPrice.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.txtReceiptPrice.Location = new System.Drawing.Point(84, 82);
            this.txtReceiptPrice.Margin = new Padding(3, 4, 3, 4);
            this.txtReceiptPrice.Name = "txtReceiptPrice";
            this.txtReceiptPrice.Size = new System.Drawing.Size(129, 31);
            this.txtReceiptPrice.TabIndex = 2;
            this.txtReceiptPrice.KeyPress += new KeyPressEventHandler(this.txtReceiptPrice_KeyPress);
            // 
            // lstReceipts
            // 
            this.lstReceipts.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom) 
            | AnchorStyles.Left) 
            | AnchorStyles.Right)));
            this.lstReceipts.Columns.AddRange(new ColumnHeader[] {
            this.ID,
            this.ReceiptDescription,
            this.ReceiptPrice});
            this.lstReceipts.FullRowSelect = true;
            this.lstReceipts.HideSelection = false;
            this.lstReceipts.Location = new System.Drawing.Point(3, 121);
            this.lstReceipts.Margin = new Padding(3, 4, 3, 4);
            this.lstReceipts.Name = "lstReceipts";
            this.lstReceipts.RightToLeftLayout = true;
            this.lstReceipts.Size = new System.Drawing.Size(416, 434);
            this.lstReceipts.TabIndex = 4;
            this.lstReceipts.UseCompatibleStateImageBehavior = false;
            this.lstReceipts.View = View.Details;
            this.lstReceipts.ColumnClick += new ColumnClickEventHandler(this.list_ColumnClick);
            this.lstReceipts.SelectedIndexChanged += new System.EventHandler(this.lstReceipts_SelectedIndexChanged);
            this.lstReceipts.KeyDown += new KeyEventHandler(this.lstReceipts_KeyDown);
            // 
            // ID
            // 
            this.ID.Text = "ردیف";
            this.ID.Width = 45;
            // 
            // ReceiptDescription
            // 
            this.ReceiptDescription.Text = "شرح";
            this.ReceiptDescription.Width = 195;
            // 
            // ReceiptPrice
            // 
            this.ReceiptPrice.Text = "مبلغ";
            this.ReceiptPrice.Width = 100;
            // 
            // txtReceiptTotal
            // 
            this.txtReceiptTotal.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Left)));
            this.txtReceiptTotal.Location = new System.Drawing.Point(3, 560);
            this.txtReceiptTotal.Margin = new Padding(3, 4, 3, 4);
            this.txtReceiptTotal.Name = "txtReceiptTotal";
            this.txtReceiptTotal.Size = new System.Drawing.Size(116, 31);
            this.txtReceiptTotal.TabIndex = 9;
            // 
            // txtReceiptDescription
            // 
            this.txtReceiptDescription.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.txtReceiptDescription.Location = new System.Drawing.Point(220, 82);
            this.txtReceiptDescription.Margin = new Padding(3, 4, 3, 4);
            this.txtReceiptDescription.Name = "txtReceiptDescription";
            this.txtReceiptDescription.Size = new System.Drawing.Size(199, 31);
            this.txtReceiptDescription.TabIndex = 1;
            // 
            // btnSaveReceipt
            // 
            this.btnSaveReceipt.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnSaveReceipt.Location = new System.Drawing.Point(6, 79);
            this.btnSaveReceipt.Margin = new Padding(3, 4, 3, 4);
            this.btnSaveReceipt.Name = "btnSaveReceipt";
            this.btnSaveReceipt.Size = new System.Drawing.Size(57, 34);
            this.btnSaveReceipt.TabIndex = 3;
            this.btnSaveReceipt.Text = "ثبت";
            this.btnSaveReceipt.UseVisualStyleBackColor = true;
            this.btnSaveReceipt.Click += new System.EventHandler(this.btnSaveReceipt_Click);
            // 
            // lblRecieptPrice
            // 
            this.lblRecieptPrice.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblRecieptPrice.AutoSize = true;
            this.lblRecieptPrice.Location = new System.Drawing.Point(187, 58);
            this.lblRecieptPrice.Name = "lblRecieptPrice";
            this.lblRecieptPrice.Size = new System.Drawing.Size(36, 24);
            this.lblRecieptPrice.TabIndex = 7;
            this.lblRecieptPrice.Text = "مبلغ";
            // 
            // label4
            // 
            this.label4.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(378, 58);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(39, 24);
            this.label4.TabIndex = 6;
            this.label4.Text = "شرح";
            // 
            // abrDateToday
            // 
            this.abrDateToday.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.abrDateToday.EndOfYears = 1900;
            this.abrDateToday.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrDateToday.isBorder3D = true;
            this.abrDateToday.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateToday.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDateToday.Location = new System.Drawing.Point(1155, 19);
            this.abrDateToday.Margin = new Padding(5, 6, 5, 6);
            this.abrDateToday.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrDateToday.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrDateToday.Name = "abrDateToday";
            this.abrDateToday.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrDateToday.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrDateToday.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrDateToday.SelectedDate = new System.DateTime(2012, 3, 14, 1, 1, 1, 1);
            this.abrDateToday.SelectedDateString = "1390/12/24";
            this.abrDateToday.SelectedMonthName = null;
            this.abrDateToday.Size = new System.Drawing.Size(175, 37);
            this.abrDateToday.StartOfYears = 1350;
            this.abrDateToday.TabIndex = 2;
            this.abrDateToday.Paint += new PaintEventHandler(this.abrDateToday_Paint);
            // 
            // dailyTransactionTableAdapter
            // 
            this.dailyTransactionTableAdapter.ClearBeforeFill = true;
            // 
            // bankAccountTableAdapter
            // 
            this.bankAccountTableAdapter.ClearBeforeFill = true;
            // 
            // errorProvider
            // 
            this.errorProvider.ContainerControl = this;
            this.errorProvider.RightToLeft = true;
            // 
            // invoiceTableAdapter
            // 
            this.invoiceTableAdapter.ClearBeforeFill = true;
            // 
            // abrEditDate
            // 
            this.abrEditDate.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.abrEditDate.Enabled = false;
            this.abrEditDate.EndOfYears = 1900;
            this.abrEditDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrEditDate.isBorder3D = true;
            this.abrEditDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEditDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEditDate.Location = new System.Drawing.Point(484, 13);
            this.abrEditDate.Margin = new Padding(5, 6, 5, 6);
            this.abrEditDate.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrEditDate.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrEditDate.Name = "abrEditDate";
            this.abrEditDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrEditDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrEditDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrEditDate.SelectedDate = new System.DateTime(2012, 3, 14, 1, 1, 1, 1);
            this.abrEditDate.SelectedDateString = "1390/12/24";
            this.abrEditDate.SelectedMonthName = null;
            this.abrEditDate.Size = new System.Drawing.Size(175, 37);
            this.abrEditDate.StartOfYears = 1350;
            this.abrEditDate.TabIndex = 2;
            // 
            // btnEditDate
            // 
            this.btnEditDate.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnEditDate.Enabled = false;
            this.btnEditDate.Location = new System.Drawing.Point(668, 18);
            this.btnEditDate.Margin = new Padding(3, 4, 3, 4);
            this.btnEditDate.Name = "btnEditDate";
            this.btnEditDate.Size = new System.Drawing.Size(106, 34);
            this.btnEditDate.TabIndex = 3;
            this.btnEditDate.Text = "تغییر تاریخ";
            this.btnEditDate.UseVisualStyleBackColor = true;
            this.btnEditDate.Click += new System.EventHandler(this.btnEditDate_Click);
            // 
            // txtChangePrice
            // 
            this.txtChangePrice.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.txtChangePrice.Location = new System.Drawing.Point(484, 60);
            this.txtChangePrice.Margin = new Padding(3, 4, 3, 4);
            this.txtChangePrice.Name = "txtChangePrice";
            this.txtChangePrice.Size = new System.Drawing.Size(174, 27);
            this.txtChangePrice.TabIndex = 2;
            this.txtChangePrice.KeyPress += new KeyPressEventHandler(this.txtReceiptPrice_KeyPress);
            // 
            // btnChangePrice
            // 
            this.btnChangePrice.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnChangePrice.Enabled = false;
            this.btnChangePrice.Location = new System.Drawing.Point(668, 56);
            this.btnChangePrice.Margin = new Padding(3, 4, 3, 4);
            this.btnChangePrice.Name = "btnChangePrice";
            this.btnChangePrice.Size = new System.Drawing.Size(106, 34);
            this.btnChangePrice.TabIndex = 3;
            this.btnChangePrice.Text = "تغییر مبلغ";
            this.btnChangePrice.UseVisualStyleBackColor = true;
            this.btnChangePrice.Click += new System.EventHandler(this.btnChangePrice_Click);
            // 
            // lstAllTrans
            // 
            this.lstAllTrans.Columns.AddRange(new ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader2,
            this.columnHeader3,
            this.columnHeader4});
            this.lstAllTrans.Dock = DockStyle.Left;
            this.lstAllTrans.Font = new System.Drawing.Font("XB Kayhan", 12F, System.Drawing.FontStyle.Bold);
            this.lstAllTrans.FullRowSelect = true;
            this.lstAllTrans.HideSelection = false;
            this.lstAllTrans.Location = new System.Drawing.Point(0, 0);
            this.lstAllTrans.Margin = new Padding(3, 4, 3, 4);
            this.lstAllTrans.Name = "lstAllTrans";
            this.lstAllTrans.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstAllTrans.RightToLeftLayout = true;
            this.lstAllTrans.Size = new System.Drawing.Size(476, 704);
            this.lstAllTrans.TabIndex = 4;
            this.lstAllTrans.UseCompatibleStateImageBehavior = false;
            this.lstAllTrans.View = View.Details;
            this.lstAllTrans.ColumnClick += new ColumnClickEventHandler(this.list_ColumnClick);
            this.lstAllTrans.SelectedIndexChanged += new System.EventHandler(this.lstAllTrans_SelectedIndexChanged);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "تاریخ";
            this.columnHeader1.Width = 103;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "پرداخت (بدهکار)";
            this.columnHeader2.Width = 132;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "دریافت (بستانکار)";
            this.columnHeader3.Width = 136;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "تراز";
            this.columnHeader4.Width = 105;
            // 
            // lblWeekDay
            // 
            this.lblWeekDay.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblWeekDay.Location = new System.Drawing.Point(1039, 25);
            this.lblWeekDay.Name = "lblWeekDay";
            this.lblWeekDay.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lblWeekDay.Size = new System.Drawing.Size(115, 19);
            this.lblWeekDay.TabIndex = 8;
            this.lblWeekDay.Text = "-";
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // DailyTransactionForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Tan;
            this.ClientSize = new System.Drawing.Size(1344, 704);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.abrEditDate);
            this.Controls.Add(this.lblWeekDay);
            this.Controls.Add(this.abrDateToday);
            this.Controls.Add(this.txtChangePrice);
            this.Controls.Add(this.lstAllTrans);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.btnChangePrice);
            this.Controls.Add(this.btnEditDate);
            this.Font = new System.Drawing.Font("XB Roya", 9.25F);
            this.KeyPreview = true;
            this.Margin = new Padding(3, 4, 3, 4);
            this.Name = "DailyTransactionForm";
            this.Text = "ثبت تراکنشهای روزانه";
            this.Activated += new System.EventHandler(this.DailyTransactionForm_Activated);
            this.Load += new System.EventHandler(this.DailyTransactionForm_Load);
            this.KeyPress += new KeyPressEventHandler(this.DailyTransactionForm_KeyPress);
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.bankAccountBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #5
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();

        }
コード例 #6
0
ファイル: SummaryForm.cs プロジェクト: sunshinemistery/Store
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.abrEndDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.abrStartDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.label1 = new Label();
            this.label2 = new Label();
            this.lstAvailableAtEndDate = new PrintableListView.PrintableListView();
            this.ID = ((ColumnHeader)(new ColumnHeader()));
            this.ItemName = ((ColumnHeader)(new ColumnHeader()));
            this.Number = ((ColumnHeader)(new ColumnHeader()));
            this.columnHeader2 = ((ColumnHeader)(new ColumnHeader()));
            this.lstAvailableAtStartDate = new PrintableListView.PrintableListView();
            this.columnHeader4 = ((ColumnHeader)(new ColumnHeader()));
            this.columnHeader5 = ((ColumnHeader)(new ColumnHeader()));
            this.columnHeader6 = ((ColumnHeader)(new ColumnHeader()));
            this.columnHeader1 = ((ColumnHeader)(new ColumnHeader()));
            this.label5 = new Label();
            this.btnCalculateSum = new Button();
            this.label3 = new Label();
            this.lblTotalStartDate = new Label();
            this.lblTotalEndDate = new Label();
            this.label19 = new Label();
            this.label20 = new Label();
            this.label21 = new Label();
            this.label24 = new Label();
            this.label25 = new Label();
            this.lblTotalOtherPayment = new Label();
            this.lblTotalSalary = new Label();
            this.lblTotalBills = new Label();
            this.lblTotalSales = new Label();
            this.lblTotalCheques = new Label();
            this.lblPaymentTotalSum = new Label();
            this.label6 = new Label();
            this.lblTotalPersonal = new Label();
            this.label8 = new Label();
            this.storeDBDataSet = new Store.DB.StoreDBDataSet();
            this.viewInvoiceItemOnInvoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ViewInvoiceItemOnInvoiceTableAdapter();
            this.dailyTransactionTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.DailyTransactionTableAdapter();
            this.chequeTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ChequeTableAdapter();
            this.invoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceTableAdapter();
            this.lblTotalBuy = new Label();
            this.label7 = new Label();
            this.btnExportStartToFile = new Button();
            this.btnExportEndToFile = new Button();
            this.label4 = new Label();
            this.label9 = new Label();
            this.btnPrintStartList = new Button();
            this.btnPrintEndList = new Button();
            this.prgCalculate = new ProgressBar();
            this.lblTotalSaleDiscount = new Label();
            this.lblTotalBuyDiscount = new Label();
            this.label12 = new Label();
            this.label13 = new Label();
            this.lblProfit = new Label();
            this.label11 = new Label();
            this.lblProfitPercentage = new Label();
            this.label15 = new Label();
            this.groupBox1 = new GroupBox();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            // 
            // abrEndDate
            // 
            this.abrEndDate.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.abrEndDate.EndOfYears = 1900;
            this.abrEndDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrEndDate.isBorder3D = true;
            this.abrEndDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEndDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEndDate.Location = new System.Drawing.Point(484, 6);
            this.abrEndDate.MaximumSize = new System.Drawing.Size(150, 25);
            this.abrEndDate.MinimumSize = new System.Drawing.Size(150, 25);
            this.abrEndDate.Name = "abrEndDate";
            this.abrEndDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrEndDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrEndDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrEndDate.SelectedDate = new System.DateTime(2013, 12, 9, 1, 1, 1, 1);
            this.abrEndDate.SelectedDateString = "1392/09/18";
            this.abrEndDate.SelectedMonthName = null;
            this.abrEndDate.Size = new System.Drawing.Size(150, 25);
            this.abrEndDate.StartOfYears = 1350;
            this.abrEndDate.TabIndex = 0;
            // 
            // abrStartDate
            // 
            this.abrStartDate.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.abrStartDate.EndOfYears = 1900;
            this.abrStartDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrStartDate.isBorder3D = true;
            this.abrStartDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrStartDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrStartDate.Location = new System.Drawing.Point(920, 6);
            this.abrStartDate.MaximumSize = new System.Drawing.Size(150, 25);
            this.abrStartDate.MinimumSize = new System.Drawing.Size(150, 25);
            this.abrStartDate.Name = "abrStartDate";
            this.abrStartDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrStartDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrStartDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrStartDate.SelectedDate = new System.DateTime(2013, 12, 9, 1, 1, 1, 1);
            this.abrStartDate.SelectedDateString = "1392/09/18";
            this.abrStartDate.SelectedMonthName = null;
            this.abrStartDate.Size = new System.Drawing.Size(150, 25);
            this.abrStartDate.StartOfYears = 1350;
            this.abrStartDate.TabIndex = 0;
            // 
            // label1
            // 
            this.label1.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(1075, 11);
            this.label1.Margin = new Padding(2, 0, 2, 0);
            this.label1.Name = "label1";
            this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label1.Size = new System.Drawing.Size(68, 13);
            this.label1.TabIndex = 1;
            this.label1.Text = "تاریخ شروع :";
            // 
            // label2
            // 
            this.label2.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(639, 11);
            this.label2.Margin = new Padding(2, 0, 2, 0);
            this.label2.Name = "label2";
            this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label2.Size = new System.Drawing.Size(64, 13);
            this.label2.TabIndex = 2;
            this.label2.Text = "تاریخ پایان :";
            // 
            // lstAvailableAtEndDate
            // 
            this.lstAvailableAtEndDate.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Bottom) 
            | AnchorStyles.Right)));
            this.lstAvailableAtEndDate.Columns.AddRange(new ColumnHeader[] {
            this.ID,
            this.ItemName,
            this.Number,
            this.columnHeader2});
            this.lstAvailableAtEndDate.FitToPage = false;
            this.lstAvailableAtEndDate.FullRowSelect = true;
            this.lstAvailableAtEndDate.GridLines = true;
            this.lstAvailableAtEndDate.HideSelection = false;
            this.lstAvailableAtEndDate.Location = new System.Drawing.Point(275, 70);
            this.lstAvailableAtEndDate.Margin = new Padding(2);
            this.lstAvailableAtEndDate.Name = "lstAvailableAtEndDate";
            this.lstAvailableAtEndDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstAvailableAtEndDate.RightToLeftLayout = true;
            this.lstAvailableAtEndDate.Size = new System.Drawing.Size(425, 353);
            this.lstAvailableAtEndDate.TabIndex = 3;
            this.lstAvailableAtEndDate.Title = "";
            this.lstAvailableAtEndDate.UseCompatibleStateImageBehavior = false;
            this.lstAvailableAtEndDate.View = View.Details;
            this.lstAvailableAtEndDate.ColumnClick += new ColumnClickEventHandler(this.lst_ColumnClick);
            // 
            // ID
            // 
            this.ID.Text = "کد";
            // 
            // ItemName
            // 
            this.ItemName.Text = "نام";
            // 
            // Number
            // 
            this.Number.Text = "تعداد";
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "آخرین خرید";
            this.columnHeader2.Width = 65;
            // 
            // lstAvailableAtStartDate
            // 
            this.lstAvailableAtStartDate.Anchor = ((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Bottom) 
            | AnchorStyles.Right)));
            this.lstAvailableAtStartDate.Columns.AddRange(new ColumnHeader[] {
            this.columnHeader4,
            this.columnHeader5,
            this.columnHeader6,
            this.columnHeader1});
            this.lstAvailableAtStartDate.FitToPage = false;
            this.lstAvailableAtStartDate.FullRowSelect = true;
            this.lstAvailableAtStartDate.GridLines = true;
            this.lstAvailableAtStartDate.HideSelection = false;
            this.lstAvailableAtStartDate.Location = new System.Drawing.Point(713, 70);
            this.lstAvailableAtStartDate.Margin = new Padding(2);
            this.lstAvailableAtStartDate.Name = "lstAvailableAtStartDate";
            this.lstAvailableAtStartDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstAvailableAtStartDate.RightToLeftLayout = true;
            this.lstAvailableAtStartDate.Size = new System.Drawing.Size(427, 353);
            this.lstAvailableAtStartDate.TabIndex = 7;
            this.lstAvailableAtStartDate.Title = "";
            this.lstAvailableAtStartDate.UseCompatibleStateImageBehavior = false;
            this.lstAvailableAtStartDate.View = View.Details;
            this.lstAvailableAtStartDate.ColumnClick += new ColumnClickEventHandler(this.lst_ColumnClick);
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "کد";
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "نام";
            // 
            // columnHeader6
            // 
            this.columnHeader6.Text = "تعداد";
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "آخرین خرید";
            this.columnHeader1.Width = 63;
            // 
            // label5
            // 
            this.label5.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(590, 48);
            this.label5.Margin = new Padding(2, 0, 2, 0);
            this.label5.Name = "label5";
            this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label5.Size = new System.Drawing.Size(113, 13);
            this.label5.TabIndex = 8;
            this.label5.Text = "موجودی در تاریخ پایان";
            // 
            // btnCalculateSum
            // 
            this.btnCalculateSum.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnCalculateSum.AutoSize = true;
            this.btnCalculateSum.Location = new System.Drawing.Point(275, 6);
            this.btnCalculateSum.Margin = new Padding(2);
            this.btnCalculateSum.Name = "btnCalculateSum";
            this.btnCalculateSum.Size = new System.Drawing.Size(84, 23);
            this.btnCalculateSum.TabIndex = 9;
            this.btnCalculateSum.Text = "انجام محاسبات";
            this.btnCalculateSum.UseVisualStyleBackColor = true;
            this.btnCalculateSum.Click += new System.EventHandler(this.btnCalculateSum_Click);
            // 
            // label3
            // 
            this.label3.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(1026, 48);
            this.label3.Margin = new Padding(2, 0, 2, 0);
            this.label3.Name = "label3";
            this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label3.Size = new System.Drawing.Size(117, 13);
            this.label3.TabIndex = 10;
            this.label3.Text = "موجودی در تاریخ شروع";
            // 
            // lblTotalStartDate
            // 
            this.lblTotalStartDate.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalStartDate.Location = new System.Drawing.Point(11, 70);
            this.lblTotalStartDate.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalStartDate.Name = "lblTotalStartDate";
            this.lblTotalStartDate.Size = new System.Drawing.Size(92, 18);
            this.lblTotalStartDate.TabIndex = 11;
            this.lblTotalStartDate.Text = "00";
            // 
            // lblTotalEndDate
            // 
            this.lblTotalEndDate.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalEndDate.Location = new System.Drawing.Point(11, 93);
            this.lblTotalEndDate.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalEndDate.Name = "lblTotalEndDate";
            this.lblTotalEndDate.Size = new System.Drawing.Size(92, 18);
            this.lblTotalEndDate.TabIndex = 12;
            this.lblTotalEndDate.Text = "00";
            // 
            // label19
            // 
            this.label19.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label19.Location = new System.Drawing.Point(107, 317);
            this.label19.Margin = new Padding(2, 0, 2, 0);
            this.label19.Name = "label19";
            this.label19.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label19.Size = new System.Drawing.Size(165, 18);
            this.label19.TabIndex = 22;
            this.label19.Text = "هزینه متفرقه";
            // 
            // label20
            // 
            this.label20.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label20.Location = new System.Drawing.Point(107, 271);
            this.label20.Margin = new Padding(2, 0, 2, 0);
            this.label20.Name = "label20";
            this.label20.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label20.Size = new System.Drawing.Size(165, 18);
            this.label20.TabIndex = 25;
            this.label20.Text = "حقوق";
            // 
            // label21
            // 
            this.label21.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label21.Location = new System.Drawing.Point(107, 249);
            this.label21.Margin = new Padding(2, 0, 2, 0);
            this.label21.Name = "label21";
            this.label21.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label21.Size = new System.Drawing.Size(165, 18);
            this.label21.TabIndex = 24;
            this.label21.Text = "قبوض پرداختی";
            // 
            // label24
            // 
            this.label24.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label24.Location = new System.Drawing.Point(107, 160);
            this.label24.Margin = new Padding(2, 0, 2, 0);
            this.label24.Name = "label24";
            this.label24.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label24.Size = new System.Drawing.Size(165, 18);
            this.label24.TabIndex = 27;
            this.label24.Text = "مجموع فروش";
            // 
            // label25
            // 
            this.label25.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label25.Location = new System.Drawing.Point(107, 124);
            this.label25.Margin = new Padding(2, 0, 2, 0);
            this.label25.Name = "label25";
            this.label25.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label25.Size = new System.Drawing.Size(165, 18);
            this.label25.TabIndex = 26;
            this.label25.Text = "مجموع چکهای پرداخت شده";
            // 
            // lblTotalOtherPayment
            // 
            this.lblTotalOtherPayment.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalOtherPayment.Location = new System.Drawing.Point(11, 317);
            this.lblTotalOtherPayment.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalOtherPayment.Name = "lblTotalOtherPayment";
            this.lblTotalOtherPayment.Size = new System.Drawing.Size(92, 18);
            this.lblTotalOtherPayment.TabIndex = 17;
            this.lblTotalOtherPayment.Text = "00";
            // 
            // lblTotalSalary
            // 
            this.lblTotalSalary.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalSalary.Location = new System.Drawing.Point(11, 271);
            this.lblTotalSalary.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalSalary.Name = "lblTotalSalary";
            this.lblTotalSalary.Size = new System.Drawing.Size(92, 18);
            this.lblTotalSalary.TabIndex = 18;
            this.lblTotalSalary.Text = "00";
            // 
            // lblTotalBills
            // 
            this.lblTotalBills.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalBills.Location = new System.Drawing.Point(11, 249);
            this.lblTotalBills.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalBills.Name = "lblTotalBills";
            this.lblTotalBills.Size = new System.Drawing.Size(92, 18);
            this.lblTotalBills.TabIndex = 15;
            this.lblTotalBills.Text = "00";
            // 
            // lblTotalSales
            // 
            this.lblTotalSales.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalSales.Location = new System.Drawing.Point(11, 160);
            this.lblTotalSales.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalSales.Name = "lblTotalSales";
            this.lblTotalSales.Size = new System.Drawing.Size(92, 18);
            this.lblTotalSales.TabIndex = 20;
            this.lblTotalSales.Text = "00";
            // 
            // lblTotalCheques
            // 
            this.lblTotalCheques.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalCheques.Location = new System.Drawing.Point(11, 124);
            this.lblTotalCheques.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalCheques.Name = "lblTotalCheques";
            this.lblTotalCheques.Size = new System.Drawing.Size(92, 18);
            this.lblTotalCheques.TabIndex = 19;
            this.lblTotalCheques.Text = "00";
            // 
            // lblPaymentTotalSum
            // 
            this.lblPaymentTotalSum.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblPaymentTotalSum.Location = new System.Drawing.Point(11, 339);
            this.lblPaymentTotalSum.Margin = new Padding(2, 0, 2, 0);
            this.lblPaymentTotalSum.Name = "lblPaymentTotalSum";
            this.lblPaymentTotalSum.Size = new System.Drawing.Size(92, 18);
            this.lblPaymentTotalSum.TabIndex = 17;
            this.lblPaymentTotalSum.Text = "00";
            // 
            // label6
            // 
            this.label6.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label6.Location = new System.Drawing.Point(107, 339);
            this.label6.Margin = new Padding(2, 0, 2, 0);
            this.label6.Name = "label6";
            this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label6.Size = new System.Drawing.Size(165, 18);
            this.label6.TabIndex = 22;
            this.label6.Text = "مجموع هزینه ها";
            // 
            // lblTotalPersonal
            // 
            this.lblTotalPersonal.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalPersonal.Location = new System.Drawing.Point(11, 294);
            this.lblTotalPersonal.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalPersonal.Name = "lblTotalPersonal";
            this.lblTotalPersonal.Size = new System.Drawing.Size(92, 18);
            this.lblTotalPersonal.TabIndex = 18;
            this.lblTotalPersonal.Text = "00";
            // 
            // label8
            // 
            this.label8.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label8.Location = new System.Drawing.Point(107, 294);
            this.label8.Margin = new Padding(2, 0, 2, 0);
            this.label8.Name = "label8";
            this.label8.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label8.Size = new System.Drawing.Size(165, 18);
            this.label8.TabIndex = 25;
            this.label8.Text = "برداشت نقد";
            // 
            // storeDBDataSet
            // 
            this.storeDBDataSet.DataSetName = "StoreDBDataSet";
            this.storeDBDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // viewInvoiceItemOnInvoiceTableAdapter
            // 
            this.viewInvoiceItemOnInvoiceTableAdapter.ClearBeforeFill = true;
            // 
            // dailyTransactionTableAdapter
            // 
            this.dailyTransactionTableAdapter.ClearBeforeFill = true;
            // 
            // chequeTableAdapter
            // 
            this.chequeTableAdapter.ClearBeforeFill = true;
            // 
            // invoiceTableAdapter
            // 
            this.invoiceTableAdapter.ClearBeforeFill = true;
            // 
            // lblTotalBuy
            // 
            this.lblTotalBuy.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalBuy.Location = new System.Drawing.Point(11, 183);
            this.lblTotalBuy.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalBuy.Name = "lblTotalBuy";
            this.lblTotalBuy.Size = new System.Drawing.Size(92, 18);
            this.lblTotalBuy.TabIndex = 20;
            this.lblTotalBuy.Text = "00";
            // 
            // label7
            // 
            this.label7.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label7.Location = new System.Drawing.Point(107, 183);
            this.label7.Margin = new Padding(2, 0, 2, 0);
            this.label7.Name = "label7";
            this.label7.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label7.Size = new System.Drawing.Size(165, 18);
            this.label7.TabIndex = 27;
            this.label7.Text = "مجموع خرید";
            // 
            // btnExportStartToFile
            // 
            this.btnExportStartToFile.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnExportStartToFile.AutoSize = true;
            this.btnExportStartToFile.Location = new System.Drawing.Point(713, 43);
            this.btnExportStartToFile.Margin = new Padding(2);
            this.btnExportStartToFile.Name = "btnExportStartToFile";
            this.btnExportStartToFile.Size = new System.Drawing.Size(84, 23);
            this.btnExportStartToFile.TabIndex = 9;
            this.btnExportStartToFile.Text = "ثبت در فایل";
            this.btnExportStartToFile.UseVisualStyleBackColor = true;
            this.btnExportStartToFile.Click += new System.EventHandler(this.btnExportStartToFile_Click);
            // 
            // btnExportEndToFile
            // 
            this.btnExportEndToFile.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnExportEndToFile.AutoSize = true;
            this.btnExportEndToFile.Location = new System.Drawing.Point(275, 43);
            this.btnExportEndToFile.Margin = new Padding(2);
            this.btnExportEndToFile.Name = "btnExportEndToFile";
            this.btnExportEndToFile.Size = new System.Drawing.Size(84, 23);
            this.btnExportEndToFile.TabIndex = 9;
            this.btnExportEndToFile.Text = "ثبت در فایل";
            this.btnExportEndToFile.UseVisualStyleBackColor = true;
            this.btnExportEndToFile.Click += new System.EventHandler(this.btnExportEndToFile_Click);
            // 
            // label4
            // 
            this.label4.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label4.Location = new System.Drawing.Point(107, 93);
            this.label4.Margin = new Padding(2, 0, 2, 0);
            this.label4.Name = "label4";
            this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label4.Size = new System.Drawing.Size(165, 18);
            this.label4.TabIndex = 26;
            this.label4.Text = "مجموع موجودی در تاریخ پایان";
            // 
            // label9
            // 
            this.label9.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label9.Location = new System.Drawing.Point(107, 70);
            this.label9.Margin = new Padding(2, 0, 2, 0);
            this.label9.Name = "label9";
            this.label9.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label9.Size = new System.Drawing.Size(165, 18);
            this.label9.TabIndex = 26;
            this.label9.Text = "مجموع موجودی در تاریخ شروع";
            // 
            // btnPrintStartList
            // 
            this.btnPrintStartList.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnPrintStartList.AutoSize = true;
            this.btnPrintStartList.Location = new System.Drawing.Point(801, 43);
            this.btnPrintStartList.Margin = new Padding(2);
            this.btnPrintStartList.Name = "btnPrintStartList";
            this.btnPrintStartList.Size = new System.Drawing.Size(84, 23);
            this.btnPrintStartList.TabIndex = 9;
            this.btnPrintStartList.Text = "پرینت";
            this.btnPrintStartList.UseVisualStyleBackColor = true;
            this.btnPrintStartList.Click += new System.EventHandler(this.btnPrintStartList_Click);
            // 
            // btnPrintEndList
            // 
            this.btnPrintEndList.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.btnPrintEndList.AutoSize = true;
            this.btnPrintEndList.Location = new System.Drawing.Point(363, 43);
            this.btnPrintEndList.Margin = new Padding(2);
            this.btnPrintEndList.Name = "btnPrintEndList";
            this.btnPrintEndList.Size = new System.Drawing.Size(84, 23);
            this.btnPrintEndList.TabIndex = 9;
            this.btnPrintEndList.Text = "پرینت";
            this.btnPrintEndList.UseVisualStyleBackColor = true;
            this.btnPrintEndList.Click += new System.EventHandler(this.btnPrintStartList_Click);
            // 
            // prgCalculate
            // 
            this.prgCalculate.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.prgCalculate.Location = new System.Drawing.Point(275, 32);
            this.prgCalculate.Name = "prgCalculate";
            this.prgCalculate.Size = new System.Drawing.Size(425, 10);
            this.prgCalculate.TabIndex = 28;
            // 
            // lblTotalSaleDiscount
            // 
            this.lblTotalSaleDiscount.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalSaleDiscount.Location = new System.Drawing.Point(11, 205);
            this.lblTotalSaleDiscount.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalSaleDiscount.Name = "lblTotalSaleDiscount";
            this.lblTotalSaleDiscount.Size = new System.Drawing.Size(92, 18);
            this.lblTotalSaleDiscount.TabIndex = 20;
            this.lblTotalSaleDiscount.Text = "00";
            // 
            // lblTotalBuyDiscount
            // 
            this.lblTotalBuyDiscount.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblTotalBuyDiscount.Location = new System.Drawing.Point(11, 228);
            this.lblTotalBuyDiscount.Margin = new Padding(2, 0, 2, 0);
            this.lblTotalBuyDiscount.Name = "lblTotalBuyDiscount";
            this.lblTotalBuyDiscount.Size = new System.Drawing.Size(92, 18);
            this.lblTotalBuyDiscount.TabIndex = 20;
            this.lblTotalBuyDiscount.Text = "00";
            // 
            // label12
            // 
            this.label12.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label12.Location = new System.Drawing.Point(107, 205);
            this.label12.Margin = new Padding(2, 0, 2, 0);
            this.label12.Name = "label12";
            this.label12.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label12.Size = new System.Drawing.Size(165, 18);
            this.label12.TabIndex = 27;
            this.label12.Text = "مجموع تخفیف فروش";
            // 
            // label13
            // 
            this.label13.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label13.Location = new System.Drawing.Point(107, 228);
            this.label13.Margin = new Padding(2, 0, 2, 0);
            this.label13.Name = "label13";
            this.label13.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label13.Size = new System.Drawing.Size(165, 18);
            this.label13.TabIndex = 27;
            this.label13.Text = "مجموع تخفیف خرید";
            // 
            // lblProfit
            // 
            this.lblProfit.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblProfit.Location = new System.Drawing.Point(9, 17);
            this.lblProfit.Margin = new Padding(2, 0, 2, 0);
            this.lblProfit.Name = "lblProfit";
            this.lblProfit.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblProfit.Size = new System.Drawing.Size(90, 18);
            this.lblProfit.TabIndex = 17;
            this.lblProfit.Text = "00";
            // 
            // label11
            // 
            this.label11.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label11.Location = new System.Drawing.Point(103, 17);
            this.label11.Margin = new Padding(2, 0, 2, 0);
            this.label11.Name = "label11";
            this.label11.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label11.Size = new System.Drawing.Size(157, 18);
            this.label11.TabIndex = 22;
            this.label11.Text = "سود خالص";
            // 
            // lblProfitPercentage
            // 
            this.lblProfitPercentage.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.lblProfitPercentage.Location = new System.Drawing.Point(9, 37);
            this.lblProfitPercentage.Margin = new Padding(2, 0, 2, 0);
            this.lblProfitPercentage.Name = "lblProfitPercentage";
            this.lblProfitPercentage.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.lblProfitPercentage.Size = new System.Drawing.Size(90, 18);
            this.lblProfitPercentage.TabIndex = 17;
            this.lblProfitPercentage.Text = "00";
            // 
            // label15
            // 
            this.label15.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.label15.Location = new System.Drawing.Point(103, 37);
            this.label15.Margin = new Padding(2, 0, 2, 0);
            this.label15.Name = "label15";
            this.label15.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label15.Size = new System.Drawing.Size(157, 18);
            this.label15.TabIndex = 22;
            this.label15.Text = "نسبت سود فروش";
            // 
            // groupBox1
            // 
            this.groupBox1.Anchor = ((AnchorStyles)((AnchorStyles.Top | AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.label11);
            this.groupBox1.Controls.Add(this.lblProfit);
            this.groupBox1.Controls.Add(this.label15);
            this.groupBox1.Controls.Add(this.lblProfitPercentage);
            this.groupBox1.Location = new System.Drawing.Point(4, 360);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.groupBox1.Size = new System.Drawing.Size(266, 65);
            this.groupBox1.TabIndex = 29;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "سود";
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // SummaryForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoSize = true;
            this.BackColor = System.Drawing.Color.LightGreen;
            this.ClientSize = new System.Drawing.Size(1151, 434);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.prgCalculate);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label19);
            this.Controls.Add(this.label8);
            this.Controls.Add(this.label20);
            this.Controls.Add(this.label21);
            this.Controls.Add(this.label13);
            this.Controls.Add(this.label12);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.label24);
            this.Controls.Add(this.label9);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label25);
            this.Controls.Add(this.lblPaymentTotalSum);
            this.Controls.Add(this.lblTotalOtherPayment);
            this.Controls.Add(this.lblTotalPersonal);
            this.Controls.Add(this.lblTotalSalary);
            this.Controls.Add(this.lblTotalBuyDiscount);
            this.Controls.Add(this.lblTotalBills);
            this.Controls.Add(this.lblTotalSaleDiscount);
            this.Controls.Add(this.lblTotalBuy);
            this.Controls.Add(this.lblTotalSales);
            this.Controls.Add(this.lblTotalCheques);
            this.Controls.Add(this.lblTotalEndDate);
            this.Controls.Add(this.lblTotalStartDate);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.btnExportEndToFile);
            this.Controls.Add(this.btnPrintEndList);
            this.Controls.Add(this.btnPrintStartList);
            this.Controls.Add(this.btnExportStartToFile);
            this.Controls.Add(this.btnCalculateSum);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.lstAvailableAtStartDate);
            this.Controls.Add(this.lstAvailableAtEndDate);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.abrStartDate);
            this.Controls.Add(this.abrEndDate);
            this.KeyPreview = true;
            this.Margin = new Padding(2);
            this.Name = "SummaryForm";
            this.Text = "Summary";
            this.WindowState = FormWindowState.Maximized;
            this.Activated += new System.EventHandler(this.SummaryForm_Activated);
            this.FormClosed += new FormClosedEventHandler(this.SummaryForm_FormClosed);
            this.Load += new System.EventHandler(this.SummaryForm_Load);
            this.KeyPress += new KeyPressEventHandler(this.SummaryForm_KeyPress);
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #7
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.lstInvoiceForCheque = new System.Windows.Forms.ListView();
            this.InvoiceID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ChequePerson = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Date = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.Price = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.label1 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.invoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.InvoiceTableAdapter();
            this.distributorTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.DistributorTableAdapter();
            this.cmbAccountants = new System.Windows.Forms.ComboBox();
            this.distributorBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.storeDBDataSet = new Store.DB.StoreDBDataSet();
            this.viewDistributorNameOnInvoiceTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ViewDistributorNameOnInvoiceTableAdapter();
            this.txtChequeNumber = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.txtChequePrice = new System.Windows.Forms.TextBox();
            this.bankAccountTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.BankAccountTableAdapter();
            this.btnSaveChequeData = new System.Windows.Forms.Button();
            this.txtInvoiceID = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
            this.bankAccountBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.cmbBankNameAccount = new System.Windows.Forms.ComboBox();
            this.txtBankAccount = new System.Windows.Forms.TextBox();
            this.abrChequeDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.label2 = new System.Windows.Forms.Label();
            this.chequeTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ChequeTableAdapter();
            this.label7 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.lblPrice = new System.Windows.Forms.Label();
            this.chkPaidInvoices = new System.Windows.Forms.CheckBox();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.distributorBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.bankAccountBindingSource)).BeginInit();
            this.SuspendLayout();
            // 
            // lstInvoiceForCheque
            // 
            this.lstInvoiceForCheque.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.lstInvoiceForCheque.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.InvoiceID,
            this.ChequePerson,
            this.Date,
            this.Price,
            this.columnHeader2,
            this.columnHeader1});
            this.lstInvoiceForCheque.FullRowSelect = true;
            this.lstInvoiceForCheque.HideSelection = false;
            this.lstInvoiceForCheque.Location = new System.Drawing.Point(191, 83);
            this.lstInvoiceForCheque.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstInvoiceForCheque.MultiSelect = false;
            this.lstInvoiceForCheque.Name = "lstInvoiceForCheque";
            this.lstInvoiceForCheque.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstInvoiceForCheque.RightToLeftLayout = true;
            this.lstInvoiceForCheque.Size = new System.Drawing.Size(545, 537);
            this.lstInvoiceForCheque.TabIndex = 2;
            this.lstInvoiceForCheque.UseCompatibleStateImageBehavior = false;
            this.lstInvoiceForCheque.View = System.Windows.Forms.View.Details;
            this.lstInvoiceForCheque.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstInvoiceForCheque_ColumnClick);
            this.lstInvoiceForCheque.SelectedIndexChanged += new System.EventHandler(this.lstInvoiceForCheque_SelectedIndexChanged);
            // 
            // InvoiceID
            // 
            this.InvoiceID.Text = "شماره فاکتور";
            this.InvoiceID.Width = 82;
            // 
            // ChequePerson
            // 
            this.ChequePerson.Text = "نام طرف حساب";
            this.ChequePerson.Width = 114;
            // 
            // Date
            // 
            this.Date.Text = "تاریخ";
            this.Date.Width = 75;
            // 
            // Price
            // 
            this.Price.Text = "مبلغ";
            this.Price.Width = 71;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "تخفیف";
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "پرداخت";
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.label1.AutoSize = true;
            this.label1.Font = new System.Drawing.Font("B Roya", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.label1.Location = new System.Drawing.Point(675, 42);
            this.label1.Name = "label1";
            this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label1.Size = new System.Drawing.Size(63, 31);
            this.label1.TabIndex = 2;
            this.label1.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(154, 355);
            this.label3.Name = "label3";
            this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label3.Size = new System.Drawing.Size(33, 20);
            this.label3.TabIndex = 2;
            this.label3.Text = "مبلغ";
            // 
            // invoiceTableAdapter
            // 
            this.invoiceTableAdapter.ClearBeforeFill = true;
            // 
            // distributorTableAdapter
            // 
            this.distributorTableAdapter.ClearBeforeFill = true;
            // 
            // cmbAccountants
            // 
            this.cmbAccountants.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cmbAccountants.DataSource = this.distributorBindingSource;
            this.cmbAccountants.DisplayMember = "Name";
            this.cmbAccountants.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbAccountants.FormattingEnabled = true;
            this.cmbAccountants.Location = new System.Drawing.Point(493, 9);
            this.cmbAccountants.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.cmbAccountants.Name = "cmbAccountants";
            this.cmbAccountants.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.cmbAccountants.Size = new System.Drawing.Size(173, 27);
            this.cmbAccountants.TabIndex = 0;
            this.cmbAccountants.ValueMember = "ID";
            this.cmbAccountants.SelectedIndexChanged += new System.EventHandler(this.cmbAccountants_SelectedIndexChanged);
            // 
            // distributorBindingSource
            // 
            this.distributorBindingSource.DataSource = typeof(Store.DB.Distributor);
            // 
            // storeDBDataSet
            // 
            this.storeDBDataSet.DataSetName = "StoreDBDataSet";
            this.storeDBDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // viewDistributorNameOnInvoiceTableAdapter
            // 
            this.viewDistributorNameOnInvoiceTableAdapter.ClearBeforeFill = true;
            // 
            // txtChequeNumber
            // 
            this.txtChequeNumber.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtChequeNumber.Location = new System.Drawing.Point(10, 308);
            this.txtChequeNumber.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtChequeNumber.Name = "txtChequeNumber";
            this.txtChequeNumber.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtChequeNumber.Size = new System.Drawing.Size(173, 27);
            this.txtChequeNumber.TabIndex = 5;
            this.txtChequeNumber.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.NumberTextBox_KeyPress);
            // 
            // 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(107, 143);
            this.label4.Name = "label4";
            this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label4.Size = new System.Drawing.Size(72, 20);
            this.label4.TabIndex = 17;
            this.label4.Text = "حساب بانکی";
            // 
            // 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(122, 285);
            this.label5.Name = "label5";
            this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label5.Size = new System.Drawing.Size(64, 20);
            this.label5.TabIndex = 17;
            this.label5.Text = "شماره چک";
            // 
            // txtChequePrice
            // 
            this.txtChequePrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtChequePrice.Location = new System.Drawing.Point(10, 379);
            this.txtChequePrice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtChequePrice.Name = "txtChequePrice";
            this.txtChequePrice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtChequePrice.Size = new System.Drawing.Size(173, 27);
            this.txtChequePrice.TabIndex = 6;
            this.txtChequePrice.TextChanged += new System.EventHandler(this.txtChequePrice_TextChanged);
            this.txtChequePrice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.NumberTextBox_KeyPress);
            // 
            // bankAccountTableAdapter
            // 
            this.bankAccountTableAdapter.ClearBeforeFill = true;
            // 
            // btnSaveChequeData
            // 
            this.btnSaveChequeData.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnSaveChequeData.Location = new System.Drawing.Point(10, 576);
            this.btnSaveChequeData.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnSaveChequeData.Name = "btnSaveChequeData";
            this.btnSaveChequeData.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnSaveChequeData.Size = new System.Drawing.Size(174, 47);
            this.btnSaveChequeData.TabIndex = 9;
            this.btnSaveChequeData.Text = "ثبت چک";
            this.btnSaveChequeData.UseVisualStyleBackColor = true;
            this.btnSaveChequeData.Click += new System.EventHandler(this.btnSaveChequeData_Click);
            // 
            // txtInvoiceID
            // 
            this.txtInvoiceID.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtInvoiceID.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
            this.txtInvoiceID.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
            this.txtInvoiceID.BackColor = System.Drawing.Color.NavajoWhite;
            this.txtInvoiceID.Enabled = false;
            this.txtInvoiceID.Location = new System.Drawing.Point(12, 96);
            this.txtInvoiceID.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtInvoiceID.Name = "txtInvoiceID";
            this.txtInvoiceID.ReadOnly = true;
            this.txtInvoiceID.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtInvoiceID.Size = new System.Drawing.Size(174, 27);
            this.txtInvoiceID.TabIndex = 0;
            this.txtInvoiceID.TextChanged += new System.EventHandler(this.txtInvoiceID_TextChanged);
            this.txtInvoiceID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.NumberTextBox_KeyPress);
            // 
            // 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(104, 73);
            this.label6.Name = "label6";
            this.label6.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label6.Size = new System.Drawing.Size(75, 20);
            this.label6.TabIndex = 2;
            this.label6.Text = "شماره فاکتور";
            // 
            // errorProvider
            // 
            this.errorProvider.ContainerControl = this;
            this.errorProvider.RightToLeft = true;
            // 
            // bankAccountBindingSource
            // 
            this.bankAccountBindingSource.DataMember = "BankAccount";
            this.bankAccountBindingSource.DataSource = this.storeDBDataSet;
            // 
            // cmbBankNameAccount
            // 
            this.cmbBankNameAccount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cmbBankNameAccount.DataSource = this.bankAccountBindingSource;
            this.cmbBankNameAccount.DisplayMember = "NumberName";
            this.cmbBankNameAccount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbBankNameAccount.FormattingEnabled = true;
            this.cmbBankNameAccount.Location = new System.Drawing.Point(10, 167);
            this.cmbBankNameAccount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.cmbBankNameAccount.Name = "cmbBankNameAccount";
            this.cmbBankNameAccount.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.cmbBankNameAccount.Size = new System.Drawing.Size(173, 27);
            this.cmbBankNameAccount.TabIndex = 3;
            this.cmbBankNameAccount.ValueMember = "ID";
            this.cmbBankNameAccount.SelectedIndexChanged += new System.EventHandler(this.cmbBankNameAccount_SelectedIndexChanged);
            // 
            // txtBankAccount
            // 
            this.txtBankAccount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtBankAccount.Enabled = false;
            this.txtBankAccount.Location = new System.Drawing.Point(10, 238);
            this.txtBankAccount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtBankAccount.Name = "txtBankAccount";
            this.txtBankAccount.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtBankAccount.Size = new System.Drawing.Size(173, 27);
            this.txtBankAccount.TabIndex = 4;
            // 
            // abrChequeDate
            // 
            this.abrChequeDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrChequeDate.EndOfYears = 1900;
            this.abrChequeDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrChequeDate.isBorder3D = true;
            this.abrChequeDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrChequeDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrChequeDate.Location = new System.Drawing.Point(9, 484);
            this.abrChequeDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrChequeDate.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrChequeDate.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrChequeDate.Name = "abrChequeDate";
            this.abrChequeDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrChequeDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrChequeDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrChequeDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.abrChequeDate.SelectedDate = new System.DateTime(2012, 3, 30, 1, 1, 1, 1);
            this.abrChequeDate.SelectedDateString = "1391/01/11";
            this.abrChequeDate.SelectedMonthName = null;
            this.abrChequeDate.Size = new System.Drawing.Size(175, 37);
            this.abrChequeDate.StartOfYears = 1350;
            this.abrChequeDate.TabIndex = 7;
            // 
            // 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(100, 460);
            this.label2.Name = "label2";
            this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label2.Size = new System.Drawing.Size(81, 20);
            this.label2.TabIndex = 23;
            this.label2.Text = "تاریخ سررسید";
            // 
            // chequeTableAdapter
            // 
            this.chequeTableAdapter.ClearBeforeFill = true;
            // 
            // 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(674, 13);
            this.label7.Name = "label7";
            this.label7.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label7.Size = new System.Drawing.Size(72, 20);
            this.label7.TabIndex = 24;
            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(100, 215);
            this.label8.Name = "label8";
            this.label8.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label8.Size = new System.Drawing.Size(77, 20);
            this.label8.TabIndex = 26;
            this.label8.Text = "موجودی فعلی";
            // 
            // lblPrice
            // 
            this.lblPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lblPrice.Location = new System.Drawing.Point(12, 412);
            this.lblPrice.Name = "lblPrice";
            this.lblPrice.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lblPrice.Size = new System.Drawing.Size(174, 19);
            this.lblPrice.TabIndex = 27;
            // 
            // chkPaidInvoices
            // 
            this.chkPaidInvoices.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkPaidInvoices.AutoSize = true;
            this.chkPaidInvoices.Location = new System.Drawing.Point(300, 12);
            this.chkPaidInvoices.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkPaidInvoices.Name = "chkPaidInvoices";
            this.chkPaidInvoices.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkPaidInvoices.Size = new System.Drawing.Size(187, 24);
            this.chkPaidInvoices.TabIndex = 1;
            this.chkPaidInvoices.Text = "نمایش فاکتورهای پرداخت شده";
            this.chkPaidInvoices.UseVisualStyleBackColor = true;
            this.chkPaidInvoices.CheckedChanged += new System.EventHandler(this.chkPaidInvoices_CheckedChanged);
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // ChequeAddForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.IndianRed;
            this.ClientSize = new System.Drawing.Size(757, 639);
            this.Controls.Add(this.chkPaidInvoices);
            this.Controls.Add(this.lblPrice);
            this.Controls.Add(this.label8);
            this.Controls.Add(this.label7);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.abrChequeDate);
            this.Controls.Add(this.txtBankAccount);
            this.Controls.Add(this.cmbBankNameAccount);
            this.Controls.Add(this.btnSaveChequeData);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.cmbAccountants);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.lstInvoiceForCheque);
            this.Controls.Add(this.txtChequePrice);
            this.Controls.Add(this.txtChequeNumber);
            this.Controls.Add(this.txtInvoiceID);
            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 = "ChequeAddForm";
            this.Text = "ثبت چک";
            this.Activated += new System.EventHandler(this.ChequeAddForm_Activated);
            this.Load += new System.EventHandler(this.ChequeAddForm_Load);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ChequeAddForm_KeyPress);
            ((System.ComponentModel.ISupportInitialize)(this.distributorBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.storeDBDataSet)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.bankAccountBindingSource)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #8
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.lstCheques = new System.Windows.Forms.ListView();
            this.ChequeID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ChequeNum = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.BankNameAccNum = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ChequeDate = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ChequePrice = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.ChequePaid = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.AccountantName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.InvoicePrice = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.InvoiceID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.txtSearchChequeNumber = new System.Windows.Forms.TextBox();
            this.abrDateStart = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.abrDateEnd = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.chkDateStart = new System.Windows.Forms.CheckBox();
            this.chkDateEnd = new System.Windows.Forms.CheckBox();
            this.chkPriceStart = new System.Windows.Forms.CheckBox();
            this.chkPriceEnd = new System.Windows.Forms.CheckBox();
            this.txtPriceStart = new System.Windows.Forms.TextBox();
            this.txtPriceEnd = new System.Windows.Forms.TextBox();
            this.lstAccountants = 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.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.AccountantPhone = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.label1 = new System.Windows.Forms.Label();
            this.btnFilter = new System.Windows.Forms.Button();
            this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
            this.btnSearchChequeNum = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.btnClear = new System.Windows.Forms.Button();
            this.btnChangePaid = new System.Windows.Forms.Button();
            this.label3 = new System.Windows.Forms.Label();
            this.lstBankAccounts = new System.Windows.Forms.ListView();
            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.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.distributorTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.DistributorTableAdapter();
            this.viewDistributorNameOnInvoiceOnChequeTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ViewDistributorNameOnInvoiceOnChequeTableAdapter();
            this.chequeTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ChequeTableAdapter();
            this.bankAccountTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.BankAccountTableAdapter();
            this.rdBtnAllCheques = new System.Windows.Forms.RadioButton();
            this.rdBtnNonPaidCheques = new System.Windows.Forms.RadioButton();
            this.rdBtnPaidCheques = new System.Windows.Forms.RadioButton();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.btnDeleteCheck = new System.Windows.Forms.Button();
            this.btnUncheckAllDistributors = new System.Windows.Forms.Button();
            this.btnCheckAllDistributors = new System.Windows.Forms.Button();
            this.btnUncheckAllBankAccounts = new System.Windows.Forms.Button();
            this.btnCheckAllBankAccounts = new System.Windows.Forms.Button();
            this.tmrList = new System.Windows.Forms.Timer(this.components);
            this.lblTotal = new System.Windows.Forms.Label();
            this.lstChequesMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.SaveDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.lstChequesMenuStrip.SuspendLayout();
            this.SuspendLayout();
            // 
            // lstCheques
            // 
            this.lstCheques.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstCheques.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.ChequeID,
            this.ChequeNum,
            this.BankNameAccNum,
            this.ChequeDate,
            this.ChequePrice,
            this.ChequePaid,
            this.AccountantName,
            this.InvoicePrice,
            this.InvoiceID});
            this.lstCheques.ContextMenuStrip = this.lstChequesMenuStrip;
            this.lstCheques.FullRowSelect = true;
            this.lstCheques.Location = new System.Drawing.Point(14, 48);
            this.lstCheques.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstCheques.MultiSelect = false;
            this.lstCheques.Name = "lstCheques";
            this.lstCheques.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstCheques.RightToLeftLayout = true;
            this.lstCheques.Size = new System.Drawing.Size(793, 556);
            this.lstCheques.TabIndex = 0;
            this.lstCheques.UseCompatibleStateImageBehavior = false;
            this.lstCheques.View = System.Windows.Forms.View.Details;
            this.lstCheques.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.list_ColumnClick);
            this.lstCheques.SelectedIndexChanged += new System.EventHandler(this.lstCheques_SelectedIndexChanged);
            this.lstCheques.DoubleClick += new System.EventHandler(this.lstCheques_DoubleClick);
            // 
            // ChequeID
            // 
            this.ChequeID.Text = "کد چک";
            this.ChequeID.Width = 50;
            // 
            // ChequeNum
            // 
            this.ChequeNum.Text = "شماره چک";
            this.ChequeNum.Width = 80;
            // 
            // BankNameAccNum
            // 
            this.BankNameAccNum.Text = "بانک/حساب";
            this.BankNameAccNum.Width = 125;
            // 
            // ChequeDate
            // 
            this.ChequeDate.Text = " تاریخ";
            this.ChequeDate.Width = 80;
            // 
            // ChequePrice
            // 
            this.ChequePrice.Text = "مبلغ چک";
            this.ChequePrice.Width = 80;
            // 
            // ChequePaid
            // 
            this.ChequePaid.Text = "وضعیت ";
            this.ChequePaid.Width = 80;
            // 
            // AccountantName
            // 
            this.AccountantName.Text = "طرف حساب";
            this.AccountantName.Width = 125;
            // 
            // InvoicePrice
            // 
            this.InvoicePrice.Text = "مبلغ فاکتور";
            this.InvoicePrice.Width = 90;
            // 
            // InvoiceID
            // 
            this.InvoiceID.Text = "ش فاکتور";
            // 
            // txtSearchChequeNumber
            // 
            this.txtSearchChequeNumber.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.txtSearchChequeNumber.Location = new System.Drawing.Point(642, 9);
            this.txtSearchChequeNumber.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtSearchChequeNumber.Name = "txtSearchChequeNumber";
            this.txtSearchChequeNumber.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtSearchChequeNumber.Size = new System.Drawing.Size(96, 27);
            this.txtSearchChequeNumber.TabIndex = 1;
            this.txtSearchChequeNumber.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSearchChequeNumber_KeyPress);
            // 
            // 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(833, 26);
            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.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.abrDateStart.SelectedDate = new System.DateTime(2012, 4, 3, 1, 1, 1, 1);
            this.abrDateStart.SelectedDateString = "1391/01/15";
            this.abrDateStart.SelectedMonthName = null;
            this.abrDateStart.Size = new System.Drawing.Size(175, 37);
            this.abrDateStart.StartOfYears = 1350;
            this.abrDateStart.TabIndex = 2;
            // 
            // 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(833, 72);
            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.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.abrDateEnd.SelectedDate = new System.DateTime(2012, 4, 3, 1, 1, 1, 1);
            this.abrDateEnd.SelectedDateString = "1391/01/15";
            this.abrDateEnd.SelectedMonthName = null;
            this.abrDateEnd.Size = new System.Drawing.Size(175, 37);
            this.abrDateEnd.StartOfYears = 1350;
            this.abrDateEnd.TabIndex = 2;
            // 
            // chkDateStart
            // 
            this.chkDateStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkDateStart.AutoSize = true;
            this.chkDateStart.Location = new System.Drawing.Point(1020, 26);
            this.chkDateStart.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkDateStart.Name = "chkDateStart";
            this.chkDateStart.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkDateStart.Size = new System.Drawing.Size(67, 24);
            this.chkDateStart.TabIndex = 3;
            this.chkDateStart.Text = "از تاریخ";
            this.chkDateStart.UseVisualStyleBackColor = true;
            this.chkDateStart.CheckedChanged += new System.EventHandler(this.chkDateStart_CheckedChanged);
            // 
            // chkDateEnd
            // 
            this.chkDateEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkDateEnd.AutoSize = true;
            this.chkDateEnd.Location = new System.Drawing.Point(1021, 82);
            this.chkDateEnd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkDateEnd.Name = "chkDateEnd";
            this.chkDateEnd.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkDateEnd.Size = new System.Drawing.Size(66, 24);
            this.chkDateEnd.TabIndex = 4;
            this.chkDateEnd.Text = "تا تاریخ";
            this.chkDateEnd.UseVisualStyleBackColor = true;
            this.chkDateEnd.CheckedChanged += new System.EventHandler(this.chkDateEnd_CheckedChanged);
            // 
            // chkPriceStart
            // 
            this.chkPriceStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkPriceStart.AutoSize = true;
            this.chkPriceStart.Location = new System.Drawing.Point(1022, 115);
            this.chkPriceStart.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkPriceStart.Name = "chkPriceStart";
            this.chkPriceStart.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkPriceStart.Size = new System.Drawing.Size(65, 24);
            this.chkPriceStart.TabIndex = 4;
            this.chkPriceStart.Text = "از مبلغ";
            this.chkPriceStart.UseVisualStyleBackColor = true;
            this.chkPriceStart.CheckedChanged += new System.EventHandler(this.chkPriceStart_CheckedChanged);
            // 
            // chkPriceEnd
            // 
            this.chkPriceEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.chkPriceEnd.AutoSize = true;
            this.chkPriceEnd.Location = new System.Drawing.Point(1023, 156);
            this.chkPriceEnd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkPriceEnd.Name = "chkPriceEnd";
            this.chkPriceEnd.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkPriceEnd.Size = new System.Drawing.Size(64, 24);
            this.chkPriceEnd.TabIndex = 4;
            this.chkPriceEnd.Text = "تا مبلغ";
            this.chkPriceEnd.UseVisualStyleBackColor = true;
            this.chkPriceEnd.CheckedChanged += new System.EventHandler(this.chkPriceEnd_CheckedChanged);
            // 
            // 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(912, 115);
            this.txtPriceStart.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtPriceStart.Name = "txtPriceStart";
            this.txtPriceStart.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtPriceStart.Size = new System.Drawing.Size(102, 27);
            this.txtPriceStart.TabIndex = 1;
            this.txtPriceStart.TextChanged += new System.EventHandler(this.txtPriceStart_TextChanged);
            this.txtPriceStart.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtNumberOnly_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(912, 153);
            this.txtPriceEnd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtPriceEnd.Name = "txtPriceEnd";
            this.txtPriceEnd.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtPriceEnd.Size = new System.Drawing.Size(102, 27);
            this.txtPriceEnd.TabIndex = 1;
            this.txtPriceEnd.TextChanged += new System.EventHandler(this.txtPriceEnd_TextChanged);
            this.txtPriceEnd.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtNumberOnly_KeyPress);
            // 
            // lstAccountants
            // 
            this.lstAccountants.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstAccountants.CheckBoxes = true;
            this.lstAccountants.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.checkboxes,
            this.AccountantID,
            this.columnHeader1,
            this.AccountantPhone});
            this.lstAccountants.FullRowSelect = true;
            this.lstAccountants.HideSelection = false;
            this.lstAccountants.Location = new System.Drawing.Point(818, 444);
            this.lstAccountants.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstAccountants.MultiSelect = false;
            this.lstAccountants.Name = "lstAccountants";
            this.lstAccountants.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstAccountants.RightToLeftLayout = true;
            this.lstAccountants.Size = new System.Drawing.Size(272, 160);
            this.lstAccountants.TabIndex = 12;
            this.lstAccountants.UseCompatibleStateImageBehavior = false;
            this.lstAccountants.View = System.Windows.Forms.View.Details;
            this.lstAccountants.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.list_ColumnClick);
            this.lstAccountants.SelectedIndexChanged += new System.EventHandler(this.lstAccountants_SelectedIndexChanged);
            // 
            // checkboxes
            // 
            this.checkboxes.Text = "";
            this.checkboxes.Width = 20;
            // 
            // AccountantID
            // 
            this.AccountantID.Text = "کد";
            this.AccountantID.Width = 35;
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "نام";
            this.columnHeader1.Width = 95;
            // 
            // AccountantPhone
            // 
            this.AccountantPhone.Text = "تلفن";
            this.AccountantPhone.Width = 80;
            // 
            // 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(1006, 421);
            this.label1.Name = "label1";
            this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label1.Size = new System.Drawing.Size(87, 20);
            this.label1.TabIndex = 13;
            this.label1.Text = "طرف حساب ها";
            // 
            // btnFilter
            // 
            this.btnFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnFilter.Location = new System.Drawing.Point(980, 615);
            this.btnFilter.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnFilter.Name = "btnFilter";
            this.btnFilter.Size = new System.Drawing.Size(111, 44);
            this.btnFilter.TabIndex = 14;
            this.btnFilter.Text = "فیلتر گذاری";
            this.btnFilter.UseVisualStyleBackColor = true;
            this.btnFilter.Click += new System.EventHandler(this.btnFilter_Click);
            // 
            // errorProvider
            // 
            this.errorProvider.ContainerControl = this;
            this.errorProvider.RightToLeft = true;
            // 
            // btnSearchChequeNum
            // 
            this.btnSearchChequeNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnSearchChequeNum.Location = new System.Drawing.Point(374, 6);
            this.btnSearchChequeNum.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnSearchChequeNum.Name = "btnSearchChequeNum";
            this.btnSearchChequeNum.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnSearchChequeNum.Size = new System.Drawing.Size(260, 34);
            this.btnSearchChequeNum.TabIndex = 15;
            this.btnSearchChequeNum.Text = "جستجو بر اساس شماره چک بدون فیلتر";
            this.btnSearchChequeNum.UseVisualStyleBackColor = true;
            this.btnSearchChequeNum.Click += new System.EventHandler(this.btnSearchChequeNum_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(745, 13);
            this.label2.Name = "label2";
            this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label2.Size = new System.Drawing.Size(64, 20);
            this.label2.TabIndex = 16;
            this.label2.Text = "شماره چک";
            // 
            // btnClear
            // 
            this.btnClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnClear.Location = new System.Drawing.Point(14, 6);
            this.btnClear.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnClear.Name = "btnClear";
            this.btnClear.Size = new System.Drawing.Size(100, 34);
            this.btnClear.TabIndex = 17;
            this.btnClear.Text = "پاک کردن لیست";
            this.btnClear.UseVisualStyleBackColor = true;
            this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
            // 
            // btnChangePaid
            // 
            this.btnChangePaid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnChangePaid.Location = new System.Drawing.Point(672, 615);
            this.btnChangePaid.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnChangePaid.Name = "btnChangePaid";
            this.btnChangePaid.Size = new System.Drawing.Size(135, 44);
            this.btnChangePaid.TabIndex = 18;
            this.btnChangePaid.Text = "تغییر وضعیت پرداخت";
            this.btnChangePaid.UseVisualStyleBackColor = true;
            this.btnChangePaid.Click += new System.EventHandler(this.btnPayCheque_Click);
            // 
            // 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(1015, 210);
            this.label3.Name = "label3";
            this.label3.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label3.Size = new System.Drawing.Size(72, 20);
            this.label3.TabIndex = 19;
            this.label3.Text = "حساب بانکی";
            // 
            // lstBankAccounts
            // 
            this.lstBankAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.lstBankAccounts.CheckBoxes = true;
            this.lstBankAccounts.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader2,
            this.columnHeader3,
            this.columnHeader4,
            this.columnHeader5});
            this.lstBankAccounts.FullRowSelect = true;
            this.lstBankAccounts.HideSelection = false;
            this.lstBankAccounts.Location = new System.Drawing.Point(818, 234);
            this.lstBankAccounts.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstBankAccounts.MultiSelect = false;
            this.lstBankAccounts.Name = "lstBankAccounts";
            this.lstBankAccounts.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstBankAccounts.RightToLeftLayout = true;
            this.lstBankAccounts.Size = new System.Drawing.Size(272, 169);
            this.lstBankAccounts.TabIndex = 20;
            this.lstBankAccounts.UseCompatibleStateImageBehavior = false;
            this.lstBankAccounts.View = System.Windows.Forms.View.Details;
            this.lstBankAccounts.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.list_ColumnClick);
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "";
            this.columnHeader2.Width = 20;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "شناسه";
            this.columnHeader3.Width = 45;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "شماره حساب";
            this.columnHeader4.Width = 85;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "نام بانک";
            this.columnHeader5.Width = 80;
            // 
            // distributorTableAdapter
            // 
            this.distributorTableAdapter.ClearBeforeFill = true;
            // 
            // viewDistributorNameOnInvoiceOnChequeTableAdapter
            // 
            this.viewDistributorNameOnInvoiceOnChequeTableAdapter.ClearBeforeFill = true;
            // 
            // chequeTableAdapter
            // 
            this.chequeTableAdapter.ClearBeforeFill = true;
            // 
            // bankAccountTableAdapter
            // 
            this.bankAccountTableAdapter.ClearBeforeFill = true;
            // 
            // rdBtnAllCheques
            // 
            this.rdBtnAllCheques.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdBtnAllCheques.AutoSize = true;
            this.rdBtnAllCheques.Checked = true;
            this.rdBtnAllCheques.Location = new System.Drawing.Point(274, 23);
            this.rdBtnAllCheques.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdBtnAllCheques.Name = "rdBtnAllCheques";
            this.rdBtnAllCheques.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdBtnAllCheques.Size = new System.Drawing.Size(46, 24);
            this.rdBtnAllCheques.TabIndex = 21;
            this.rdBtnAllCheques.TabStop = true;
            this.rdBtnAllCheques.Text = "همه";
            this.rdBtnAllCheques.UseVisualStyleBackColor = true;
            this.rdBtnAllCheques.CheckedChanged += new System.EventHandler(this.rdBtnAllCheques_CheckedChanged);
            // 
            // rdBtnNonPaidCheques
            // 
            this.rdBtnNonPaidCheques.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdBtnNonPaidCheques.AutoSize = true;
            this.rdBtnNonPaidCheques.Location = new System.Drawing.Point(18, 23);
            this.rdBtnNonPaidCheques.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdBtnNonPaidCheques.Name = "rdBtnNonPaidCheques";
            this.rdBtnNonPaidCheques.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdBtnNonPaidCheques.Size = new System.Drawing.Size(120, 24);
            this.rdBtnNonPaidCheques.TabIndex = 22;
            this.rdBtnNonPaidCheques.Text = "فقط پرداخت نشده";
            this.rdBtnNonPaidCheques.UseVisualStyleBackColor = true;
            this.rdBtnNonPaidCheques.CheckedChanged += new System.EventHandler(this.rdBtnNonPaidCheques_CheckedChanged);
            // 
            // rdBtnPaidCheques
            // 
            this.rdBtnPaidCheques.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdBtnPaidCheques.AutoSize = true;
            this.rdBtnPaidCheques.Location = new System.Drawing.Point(148, 23);
            this.rdBtnPaidCheques.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdBtnPaidCheques.Name = "rdBtnPaidCheques";
            this.rdBtnPaidCheques.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdBtnPaidCheques.Size = new System.Drawing.Size(116, 24);
            this.rdBtnPaidCheques.TabIndex = 23;
            this.rdBtnPaidCheques.Text = "فقط پرداخت شده";
            this.rdBtnPaidCheques.UseVisualStyleBackColor = true;
            this.rdBtnPaidCheques.CheckedChanged += new System.EventHandler(this.rdBtnPaidCheques_CheckedChanged);
            // 
            // groupBox1
            // 
            this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.groupBox1.Controls.Add(this.rdBtnAllCheques);
            this.groupBox1.Controls.Add(this.rdBtnNonPaidCheques);
            this.groupBox1.Controls.Add(this.rdBtnPaidCheques);
            this.groupBox1.Location = new System.Drawing.Point(14, 607);
            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(327, 53);
            this.groupBox1.TabIndex = 24;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "نمایش چکها";
            // 
            // btnDeleteCheck
            // 
            this.btnDeleteCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnDeleteCheck.Image = global::Store.Properties.Resources.cancel;
            this.btnDeleteCheck.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnDeleteCheck.Location = new System.Drawing.Point(573, 615);
            this.btnDeleteCheck.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnDeleteCheck.Name = "btnDeleteCheck";
            this.btnDeleteCheck.Size = new System.Drawing.Size(91, 44);
            this.btnDeleteCheck.TabIndex = 25;
            this.btnDeleteCheck.Text = "حذف چک";
            this.btnDeleteCheck.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnDeleteCheck.UseVisualStyleBackColor = true;
            this.btnDeleteCheck.Click += new System.EventHandler(this.btnDeleteCheck_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(912, 415);
            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 = 27;
            this.btnUncheckAllDistributors.Text = "حذف همه";
            this.btnUncheckAllDistributors.UseVisualStyleBackColor = true;
            this.btnUncheckAllDistributors.Click += new System.EventHandler(this.btnUncheckAllDistributors_Click);
            // 
            // 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(818, 415);
            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 = 26;
            this.btnCheckAllDistributors.Text = "انتخاب همه";
            this.btnCheckAllDistributors.UseVisualStyleBackColor = true;
            this.btnCheckAllDistributors.Click += new System.EventHandler(this.btnCheckAllDistributors_Click);
            // 
            // btnUncheckAllBankAccounts
            // 
            this.btnUncheckAllBankAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnUncheckAllBankAccounts.Location = new System.Drawing.Point(912, 205);
            this.btnUncheckAllBankAccounts.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnUncheckAllBankAccounts.Name = "btnUncheckAllBankAccounts";
            this.btnUncheckAllBankAccounts.Size = new System.Drawing.Size(76, 29);
            this.btnUncheckAllBankAccounts.TabIndex = 29;
            this.btnUncheckAllBankAccounts.Text = "حذف همه";
            this.btnUncheckAllBankAccounts.UseVisualStyleBackColor = true;
            this.btnUncheckAllBankAccounts.Click += new System.EventHandler(this.btnUncheckAllBankAccounts_Click);
            // 
            // btnCheckAllBankAccounts
            // 
            this.btnCheckAllBankAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnCheckAllBankAccounts.Location = new System.Drawing.Point(818, 205);
            this.btnCheckAllBankAccounts.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnCheckAllBankAccounts.Name = "btnCheckAllBankAccounts";
            this.btnCheckAllBankAccounts.Size = new System.Drawing.Size(87, 29);
            this.btnCheckAllBankAccounts.TabIndex = 28;
            this.btnCheckAllBankAccounts.Text = "انتخاب همه";
            this.btnCheckAllBankAccounts.UseVisualStyleBackColor = true;
            this.btnCheckAllBankAccounts.Click += new System.EventHandler(this.btnCheckAllBankAccounts_Click);
            // 
            // tmrList
            // 
            this.tmrList.Enabled = true;
            this.tmrList.Interval = 500;
            this.tmrList.Tick += new System.EventHandler(this.tmrList_Tick);
            // 
            // lblTotal
            // 
            this.lblTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.lblTotal.Location = new System.Drawing.Point(348, 615);
            this.lblTotal.Name = "lblTotal";
            this.lblTotal.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lblTotal.Size = new System.Drawing.Size(218, 44);
            this.lblTotal.TabIndex = 13;
            this.lblTotal.Text = "مجموع مبلغ چکها";
            this.lblTotal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // lstChequesMenuStrip
            // 
            this.lstChequesMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.SaveDocumentToolStripMenuItem});
            this.lstChequesMenuStrip.Name = "lstChequesMenuStrip";
            this.lstChequesMenuStrip.Size = new System.Drawing.Size(112, 26);
            // 
            // SaveDocumentToolStripMenuItem
            // 
            this.SaveDocumentToolStripMenuItem.Name = "SaveDocumentToolStripMenuItem";
            this.SaveDocumentToolStripMenuItem.Size = new System.Drawing.Size(111, 22);
            this.SaveDocumentToolStripMenuItem.Text = "ثبت سند";
            this.SaveDocumentToolStripMenuItem.Click += new System.EventHandler(this.SaveDocumentToolStripMenuItem_Click);
            // 
            // ChequeManageForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.DarkOrange;
            this.ClientSize = new System.Drawing.Size(1094, 672);
            this.Controls.Add(this.btnUncheckAllBankAccounts);
            this.Controls.Add(this.btnCheckAllBankAccounts);
            this.Controls.Add(this.btnUncheckAllDistributors);
            this.Controls.Add(this.btnCheckAllDistributors);
            this.Controls.Add(this.btnDeleteCheck);
            this.Controls.Add(this.groupBox1);
            this.Controls.Add(this.lstBankAccounts);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.btnChangePaid);
            this.Controls.Add(this.btnClear);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.btnSearchChequeNum);
            this.Controls.Add(this.btnFilter);
            this.Controls.Add(this.lblTotal);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.lstAccountants);
            this.Controls.Add(this.chkPriceEnd);
            this.Controls.Add(this.chkPriceStart);
            this.Controls.Add(this.chkDateEnd);
            this.Controls.Add(this.chkDateStart);
            this.Controls.Add(this.abrDateEnd);
            this.Controls.Add(this.abrDateStart);
            this.Controls.Add(this.txtPriceEnd);
            this.Controls.Add(this.txtPriceStart);
            this.Controls.Add(this.txtSearchChequeNumber);
            this.Controls.Add(this.lstCheques);
            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 = "ChequeManageForm";
            this.Text = "مدیریت چکها";
            this.Activated += new System.EventHandler(this.ChequeManageForm_Activated);
            this.Load += new System.EventHandler(this.ChequeManageForm_Load);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ChequeManageForm_KeyPress);
            ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.lstChequesMenuStrip.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #9
0
ファイル: MainForm.cs プロジェクト: sunshinemistery/Store
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this.SaleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.BuyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.ReturnItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.SearchItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.ItemManageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.chequeManageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.ChequeRegisterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.InvoiceMessageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.AccountingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.BankAccountsManageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.AccountantsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.DailyTransactionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.SummaryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.DocumentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.AccountsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.bToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.abrMainDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.lblTodayChequeDue = new System.Windows.Forms.Label();
            this.chequeTableAdapter = new Store.DB.StoreDBDataSetTableAdapters.ChequeTableAdapter();
            this.lblErrorHandled = new System.Windows.Forms.Label();
            this.tmError = new System.Windows.Forms.Timer(this.components);
            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
            this.menuStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // menuStrip1
            // 
            this.menuStrip1.BackColor = System.Drawing.SystemColors.ButtonFace;
            resources.ApplyResources(this.menuStrip1, "menuStrip1");
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.SaleToolStripMenuItem,
            this.BuyToolStripMenuItem,
            this.ReturnItemToolStripMenuItem,
            this.SearchItemToolStripMenuItem,
            this.ItemManageToolStripMenuItem,
            this.chequeManageToolStripMenuItem,
            this.ChequeRegisterToolStripMenuItem,
            this.InvoiceMessageToolStripMenuItem,
            this.AccountingToolStripMenuItem,
            this.bToolStripMenuItem});
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
            this.menuStrip1.BackColorChanged += new System.EventHandler(this.menuStrip1_BackColorChanged);
            // 
            // SaleToolStripMenuItem
            // 
            this.SaleToolStripMenuItem.AutoToolTip = true;
            this.SaleToolStripMenuItem.BackColor = System.Drawing.Color.Lime;
            this.SaleToolStripMenuItem.Name = "SaleToolStripMenuItem";
            resources.ApplyResources(this.SaleToolStripMenuItem, "SaleToolStripMenuItem");
            this.SaleToolStripMenuItem.Click += new System.EventHandler(this.SaleToolStripMenuItem_Click);
            // 
            // BuyToolStripMenuItem
            // 
            this.BuyToolStripMenuItem.AutoToolTip = true;
            this.BuyToolStripMenuItem.BackColor = System.Drawing.Color.SkyBlue;
            this.BuyToolStripMenuItem.Name = "BuyToolStripMenuItem";
            resources.ApplyResources(this.BuyToolStripMenuItem, "BuyToolStripMenuItem");
            this.BuyToolStripMenuItem.Click += new System.EventHandler(this.BuyToolStripMenuItem_Click);
            // 
            // ReturnItemToolStripMenuItem
            // 
            this.ReturnItemToolStripMenuItem.BackColor = System.Drawing.Color.DarkGray;
            this.ReturnItemToolStripMenuItem.Name = "ReturnItemToolStripMenuItem";
            resources.ApplyResources(this.ReturnItemToolStripMenuItem, "ReturnItemToolStripMenuItem");
            this.ReturnItemToolStripMenuItem.Click += new System.EventHandler(this.ReturnItemToolStripMenuItem_Click);
            // 
            // SearchItemToolStripMenuItem
            // 
            this.SearchItemToolStripMenuItem.AutoToolTip = true;
            this.SearchItemToolStripMenuItem.BackColor = System.Drawing.Color.Plum;
            this.SearchItemToolStripMenuItem.Name = "SearchItemToolStripMenuItem";
            resources.ApplyResources(this.SearchItemToolStripMenuItem, "SearchItemToolStripMenuItem");
            this.SearchItemToolStripMenuItem.Click += new System.EventHandler(this.SearchItemToolStripMenuItem_Click);
            // 
            // ItemManageToolStripMenuItem
            // 
            this.ItemManageToolStripMenuItem.AutoToolTip = true;
            this.ItemManageToolStripMenuItem.BackColor = System.Drawing.Color.LightGoldenrodYellow;
            this.ItemManageToolStripMenuItem.Name = "ItemManageToolStripMenuItem";
            resources.ApplyResources(this.ItemManageToolStripMenuItem, "ItemManageToolStripMenuItem");
            this.ItemManageToolStripMenuItem.Click += new System.EventHandler(this.ItemManageToolStripMenuItem_Click);
            // 
            // chequeManageToolStripMenuItem
            // 
            this.chequeManageToolStripMenuItem.AutoToolTip = true;
            this.chequeManageToolStripMenuItem.BackColor = System.Drawing.Color.DarkOrange;
            this.chequeManageToolStripMenuItem.Name = "chequeManageToolStripMenuItem";
            resources.ApplyResources(this.chequeManageToolStripMenuItem, "chequeManageToolStripMenuItem");
            this.chequeManageToolStripMenuItem.Click += new System.EventHandler(this.chequeManageToolStripMenuItem_Click);
            // 
            // ChequeRegisterToolStripMenuItem
            // 
            this.ChequeRegisterToolStripMenuItem.AutoToolTip = true;
            this.ChequeRegisterToolStripMenuItem.BackColor = System.Drawing.Color.IndianRed;
            this.ChequeRegisterToolStripMenuItem.Name = "ChequeRegisterToolStripMenuItem";
            resources.ApplyResources(this.ChequeRegisterToolStripMenuItem, "ChequeRegisterToolStripMenuItem");
            this.ChequeRegisterToolStripMenuItem.Click += new System.EventHandler(this.ChequeRegisterToolStripMenuItem_Click);
            // 
            // InvoiceMessageToolStripMenuItem
            // 
            this.InvoiceMessageToolStripMenuItem.AutoToolTip = true;
            this.InvoiceMessageToolStripMenuItem.BackColor = System.Drawing.Color.BlueViolet;
            this.InvoiceMessageToolStripMenuItem.Name = "InvoiceMessageToolStripMenuItem";
            resources.ApplyResources(this.InvoiceMessageToolStripMenuItem, "InvoiceMessageToolStripMenuItem");
            this.InvoiceMessageToolStripMenuItem.Click += new System.EventHandler(this.InvoiceManageToolStripMenuItem_Click);
            // 
            // AccountingToolStripMenuItem
            // 
            this.AccountingToolStripMenuItem.AutoToolTip = true;
            this.AccountingToolStripMenuItem.BackColor = System.Drawing.Color.Transparent;
            this.AccountingToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.BankAccountsManageToolStripMenuItem,
            this.AccountantsToolStripMenuItem,
            this.DailyTransactionToolStripMenuItem,
            this.SummaryToolStripMenuItem,
            this.DocumentsToolStripMenuItem,
            this.AccountsToolStripMenuItem});
            this.AccountingToolStripMenuItem.Name = "AccountingToolStripMenuItem";
            resources.ApplyResources(this.AccountingToolStripMenuItem, "AccountingToolStripMenuItem");
            // 
            // BankAccountsManageToolStripMenuItem
            // 
            this.BankAccountsManageToolStripMenuItem.BackColor = System.Drawing.Color.Salmon;
            this.BankAccountsManageToolStripMenuItem.Name = "BankAccountsManageToolStripMenuItem";
            resources.ApplyResources(this.BankAccountsManageToolStripMenuItem, "BankAccountsManageToolStripMenuItem");
            this.BankAccountsManageToolStripMenuItem.Click += new System.EventHandler(this.BankAccountsManageToolStripMenuItem_Click);
            // 
            // AccountantsToolStripMenuItem
            // 
            this.AccountantsToolStripMenuItem.BackColor = System.Drawing.Color.DarkTurquoise;
            this.AccountantsToolStripMenuItem.Name = "AccountantsToolStripMenuItem";
            resources.ApplyResources(this.AccountantsToolStripMenuItem, "AccountantsToolStripMenuItem");
            this.AccountantsToolStripMenuItem.Click += new System.EventHandler(this.AccountantsToolStripMenuItem_Click);
            // 
            // DailyTransactionToolStripMenuItem
            // 
            this.DailyTransactionToolStripMenuItem.BackColor = System.Drawing.Color.Tan;
            this.DailyTransactionToolStripMenuItem.Name = "DailyTransactionToolStripMenuItem";
            resources.ApplyResources(this.DailyTransactionToolStripMenuItem, "DailyTransactionToolStripMenuItem");
            this.DailyTransactionToolStripMenuItem.Click += new System.EventHandler(this.DailyTransactionToolStripMenuItem_Click);
            // 
            // SummaryToolStripMenuItem
            // 
            this.SummaryToolStripMenuItem.BackColor = System.Drawing.Color.LightGreen;
            this.SummaryToolStripMenuItem.Name = "SummaryToolStripMenuItem";
            resources.ApplyResources(this.SummaryToolStripMenuItem, "SummaryToolStripMenuItem");
            this.SummaryToolStripMenuItem.Click += new System.EventHandler(this.SummaryToolStripMenuItem_Click);
            // 
            // DocumentsToolStripMenuItem
            // 
            this.DocumentsToolStripMenuItem.BackColor = System.Drawing.Color.LightPink;
            this.DocumentsToolStripMenuItem.Name = "DocumentsToolStripMenuItem";
            resources.ApplyResources(this.DocumentsToolStripMenuItem, "DocumentsToolStripMenuItem");
            this.DocumentsToolStripMenuItem.Click += new System.EventHandler(this.DocumentsToolStripMenuItem_Click);
            // 
            // AccountsToolStripMenuItem
            // 
            this.AccountsToolStripMenuItem.BackColor = System.Drawing.Color.MediumAquamarine;
            this.AccountsToolStripMenuItem.Name = "AccountsToolStripMenuItem";
            resources.ApplyResources(this.AccountsToolStripMenuItem, "AccountsToolStripMenuItem");
            this.AccountsToolStripMenuItem.Click += new System.EventHandler(this.AccountsToolStripMenuItem_Click);
            // 
            // bToolStripMenuItem
            // 
            this.bToolStripMenuItem.Name = "bToolStripMenuItem";
            resources.ApplyResources(this.bToolStripMenuItem, "bToolStripMenuItem");
            this.bToolStripMenuItem.Click += new System.EventHandler(this.bToolStripMenuItem_Click);
            // 
            // abrMainDate
            // 
            resources.ApplyResources(this.abrMainDate, "abrMainDate");
            this.abrMainDate.BackColor = System.Drawing.SystemColors.ButtonFace;
            this.abrMainDate.EndOfYears = 1900;
            this.abrMainDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrMainDate.isBorder3D = false;
            this.abrMainDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.abrMainDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.abrMainDate.Name = "abrMainDate";
            this.abrMainDate.OuterBorderColor = System.Drawing.Color.White;
            this.abrMainDate.PanelEndBackColor = System.Drawing.Color.LightGray;
            this.abrMainDate.PanelStartBackColor = System.Drawing.Color.WhiteSmoke;
            this.abrMainDate.SelectedDate = new System.DateTime(2012, 4, 26, 1, 1, 1, 1);
            this.abrMainDate.SelectedDateString = "1391/02/07";
            this.abrMainDate.SelectedMonthName = null;
            this.abrMainDate.StartOfYears = 1350;
            this.abrMainDate.Paint += new System.Windows.Forms.PaintEventHandler(this.abrMainDate_Paint);
            // 
            // lblTodayChequeDue
            // 
            this.lblTodayChequeDue.BackColor = System.Drawing.Color.Orange;
            resources.ApplyResources(this.lblTodayChequeDue, "lblTodayChequeDue");
            this.lblTodayChequeDue.Name = "lblTodayChequeDue";
            this.lblTodayChequeDue.Click += new System.EventHandler(this.lblTodayChequeDue_Click);
            // 
            // chequeTableAdapter
            // 
            this.chequeTableAdapter.ClearBeforeFill = true;
            // 
            // lblErrorHandled
            // 
            this.lblErrorHandled.Image = global::Store.Properties.Resources.Desert;
            resources.ApplyResources(this.lblErrorHandled, "lblErrorHandled");
            this.lblErrorHandled.Name = "lblErrorHandled";
            this.toolTip1.SetToolTip(this.lblErrorHandled, resources.GetString("lblErrorHandled.ToolTip"));
            this.lblErrorHandled.Click += new System.EventHandler(this.lblErrorHandled_Click);
            this.lblErrorHandled.MouseEnter += new System.EventHandler(this.lblErrorHandled_MouseEnter);
            this.lblErrorHandled.MouseLeave += new System.EventHandler(this.lblErrorHandled_MouseLeave);
            // 
            // tmError
            // 
            this.tmError.Interval = 1000;
            this.tmError.Tick += new System.EventHandler(this.tmError_Tick);
            // 
            // toolTip1
            // 
            this.toolTip1.AutomaticDelay = 0;
            this.toolTip1.AutoPopDelay = 1000;
            this.toolTip1.InitialDelay = 0;
            this.toolTip1.ReshowDelay = 0;
            this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Error;
            // 
            // MainForm
            // 
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.lblErrorHandled);
            this.Controls.Add(this.lblTodayChequeDue);
            this.Controls.Add(this.abrMainDate);
            this.Controls.Add(this.menuStrip1);
            this.HelpButton = true;
            this.IsMdiContainer = true;
            this.MainMenuStrip = this.menuStrip1;
            this.Name = "MainForm";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
            this.Load += new System.EventHandler(this.MainForm_Load);
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #10
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.accountBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.cmbAccounts = new System.Windows.Forms.ComboBox();
            this.abrDocumentDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.label1 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.numValue = new System.Windows.Forms.NumericUpDown();
            this.label7 = new System.Windows.Forms.Label();
            this.txtDescription = new System.Windows.Forms.TextBox();
            this.btnAddDocument = new System.Windows.Forms.Button();
            this.btnAddAccount = new System.Windows.Forms.Button();
            this.lstDocuments = new System.Windows.Forms.ListView();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader4 = ((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.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.rdbtnDebt = new System.Windows.Forms.RadioButton();
            this.rdbtnCredit = new System.Windows.Forms.RadioButton();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.btnDeleteDoc = new System.Windows.Forms.Button();
            this.abrStartDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.abrEndDate = new AbrAfzarGostaran.Windows.Forms.AbrPersianDatePicker();
            this.btnFilter = new System.Windows.Forms.Button();
            this.chkDateStart = new System.Windows.Forms.CheckBox();
            this.chkDateEnd = new System.Windows.Forms.CheckBox();
            this.cmbSort = new System.Windows.Forms.ComboBox();
            this.label2 = new System.Windows.Forms.Label();
            this.btnNewDoc = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.accountBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numValue)).BeginInit();
            this.SuspendLayout();
            // 
            // accountBindingSource
            // 
            this.accountBindingSource.DataSource = typeof(Store.DB.Account);
            // 
            // cmbAccounts
            // 
            this.cmbAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.cmbAccounts.DataSource = this.accountBindingSource;
            this.cmbAccounts.DisplayMember = "Name";
            this.cmbAccounts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbAccounts.FormattingEnabled = true;
            this.cmbAccounts.Location = new System.Drawing.Point(926, 22);
            this.cmbAccounts.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.cmbAccounts.Name = "cmbAccounts";
            this.cmbAccounts.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.cmbAccounts.Size = new System.Drawing.Size(175, 27);
            this.cmbAccounts.TabIndex = 0;
            this.cmbAccounts.ValueMember = "Id";
            this.cmbAccounts.SelectedIndexChanged += new System.EventHandler(this.cmbAccounts_SelectedIndexChanged);
            // 
            // abrDocumentDate
            // 
            this.abrDocumentDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.abrDocumentDate.EndOfYears = 1900;
            this.abrDocumentDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrDocumentDate.isBorder3D = true;
            this.abrDocumentDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDocumentDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrDocumentDate.Location = new System.Drawing.Point(926, 170);
            this.abrDocumentDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrDocumentDate.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrDocumentDate.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrDocumentDate.Name = "abrDocumentDate";
            this.abrDocumentDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrDocumentDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrDocumentDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrDocumentDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.abrDocumentDate.SelectedDate = new System.DateTime(2015, 9, 1, 1, 1, 1, 1);
            this.abrDocumentDate.SelectedDateString = "1394/06/10";
            this.abrDocumentDate.SelectedMonthName = null;
            this.abrDocumentDate.Size = new System.Drawing.Size(175, 37);
            this.abrDocumentDate.StartOfYears = 1350;
            this.abrDocumentDate.TabIndex = 6;
            // 
            // 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(1149, 65);
            this.label1.Name = "label1";
            this.label1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label1.Size = new System.Drawing.Size(33, 20);
            this.label1.TabIndex = 16;
            this.label1.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(1111, 27);
            this.label4.Name = "label4";
            this.label4.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label4.Size = new System.Drawing.Size(72, 20);
            this.label4.TabIndex = 16;
            this.label4.Text = "طرف حساب";
            // 
            // 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(1118, 180);
            this.label5.Name = "label5";
            this.label5.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label5.Size = new System.Drawing.Size(60, 20);
            this.label5.TabIndex = 16;
            this.label5.Text = "تاریخ سند";
            // 
            // numValue
            // 
            this.numValue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.numValue.Location = new System.Drawing.Point(926, 61);
            this.numValue.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.numValue.Maximum = new decimal(new int[] {
            -1593835521,
            466537709,
            54210,
            0});
            this.numValue.Name = "numValue";
            this.numValue.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.numValue.Size = new System.Drawing.Size(176, 27);
            this.numValue.TabIndex = 2;
            this.numValue.ThousandsSeparator = true;
            // 
            // 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(1146, 104);
            this.label7.Name = "label7";
            this.label7.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label7.Size = new System.Drawing.Size(33, 20);
            this.label7.TabIndex = 16;
            this.label7.Text = "شرح";
            // 
            // 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(821, 99);
            this.txtDescription.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.txtDescription.Size = new System.Drawing.Size(280, 27);
            this.txtDescription.TabIndex = 3;
            // 
            // btnAddDocument
            // 
            this.btnAddDocument.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddDocument.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
            this.btnAddDocument.Image = global::Store.Properties.Resources.save;
            this.btnAddDocument.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnAddDocument.Location = new System.Drawing.Point(926, 215);
            this.btnAddDocument.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAddDocument.Name = "btnAddDocument";
            this.btnAddDocument.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnAddDocument.Size = new System.Drawing.Size(176, 34);
            this.btnAddDocument.TabIndex = 7;
            this.btnAddDocument.Text = "ثبت سند";
            this.btnAddDocument.UseVisualStyleBackColor = true;
            this.btnAddDocument.Click += new System.EventHandler(this.btnAddDocument_Click);
            // 
            // btnAddAccount
            // 
            this.btnAddAccount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnAddAccount.Image = global::Store.Properties.Resources.edit_add;
            this.btnAddAccount.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnAddAccount.Location = new System.Drawing.Point(821, 19);
            this.btnAddAccount.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnAddAccount.Name = "btnAddAccount";
            this.btnAddAccount.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnAddAccount.Size = new System.Drawing.Size(98, 34);
            this.btnAddAccount.TabIndex = 1;
            this.btnAddAccount.Text = "حساب جدید";
            this.btnAddAccount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnAddAccount.UseVisualStyleBackColor = true;
            this.btnAddAccount.Click += new System.EventHandler(this.btnAddAccount_Click);
            // 
            // lstDocuments
            // 
            this.lstDocuments.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader7,
            this.columnHeader4,
            this.columnHeader2,
            this.columnHeader3,
            this.columnHeader5,
            this.columnHeader6});
            this.lstDocuments.Dock = System.Windows.Forms.DockStyle.Left;
            this.lstDocuments.FullRowSelect = true;
            this.lstDocuments.GridLines = true;
            this.lstDocuments.Location = new System.Drawing.Point(0, 0);
            this.lstDocuments.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.lstDocuments.Name = "lstDocuments";
            this.lstDocuments.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.lstDocuments.RightToLeftLayout = true;
            this.lstDocuments.Size = new System.Drawing.Size(814, 707);
            this.lstDocuments.TabIndex = 8;
            this.lstDocuments.UseCompatibleStateImageBehavior = false;
            this.lstDocuments.View = System.Windows.Forms.View.Details;
            this.lstDocuments.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.lstDocuments_ColumnClick);
            this.lstDocuments.SelectedIndexChanged += new System.EventHandler(this.lstDocuments_SelectedIndexChanged);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "شماره";
            this.columnHeader1.Width = 50;
            // 
            // columnHeader7
            // 
            this.columnHeader7.Text = "تاریخ سند";
            this.columnHeader7.Width = 85;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "شرح";
            this.columnHeader4.Width = 300;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "بدهکار";
            this.columnHeader2.Width = 90;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "بستانکار";
            this.columnHeader3.Width = 90;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "مانده";
            this.columnHeader5.Width = 90;
            // 
            // columnHeader6
            // 
            this.columnHeader6.Text = "تاریخ تنظیم";
            this.columnHeader6.Width = 85;
            // 
            // rdbtnDebt
            // 
            this.rdbtnDebt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnDebt.AutoSize = true;
            this.rdbtnDebt.Checked = true;
            this.rdbtnDebt.Location = new System.Drawing.Point(1041, 137);
            this.rdbtnDebt.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnDebt.Name = "rdbtnDebt";
            this.rdbtnDebt.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdbtnDebt.Size = new System.Drawing.Size(61, 24);
            this.rdbtnDebt.TabIndex = 4;
            this.rdbtnDebt.TabStop = true;
            this.rdbtnDebt.Text = "بدهکار";
            this.rdbtnDebt.UseVisualStyleBackColor = true;
            // 
            // rdbtnCredit
            // 
            this.rdbtnCredit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rdbtnCredit.AutoSize = true;
            this.rdbtnCredit.Location = new System.Drawing.Point(959, 137);
            this.rdbtnCredit.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.rdbtnCredit.Name = "rdbtnCredit";
            this.rdbtnCredit.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.rdbtnCredit.Size = new System.Drawing.Size(70, 24);
            this.rdbtnCredit.TabIndex = 5;
            this.rdbtnCredit.Text = "بستانکار";
            this.rdbtnCredit.UseVisualStyleBackColor = true;
            // 
            // timer1
            // 
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // btnDeleteDoc
            // 
            this.btnDeleteDoc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnDeleteDoc.Image = global::Store.Properties.Resources.cancel;
            this.btnDeleteDoc.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnDeleteDoc.Location = new System.Drawing.Point(820, 167);
            this.btnDeleteDoc.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnDeleteDoc.Name = "btnDeleteDoc";
            this.btnDeleteDoc.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnDeleteDoc.Size = new System.Drawing.Size(98, 44);
            this.btnDeleteDoc.TabIndex = 17;
            this.btnDeleteDoc.Text = "حذف سند";
            this.btnDeleteDoc.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnDeleteDoc.UseVisualStyleBackColor = true;
            this.btnDeleteDoc.Click += new System.EventHandler(this.btnDelete_Click);
            // 
            // abrStartDate
            // 
            this.abrStartDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.abrStartDate.Enabled = false;
            this.abrStartDate.EndOfYears = 1900;
            this.abrStartDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrStartDate.isBorder3D = true;
            this.abrStartDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrStartDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrStartDate.Location = new System.Drawing.Point(925, 570);
            this.abrStartDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrStartDate.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrStartDate.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrStartDate.Name = "abrStartDate";
            this.abrStartDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrStartDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrStartDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrStartDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.abrStartDate.SelectedDate = new System.DateTime(2014, 11, 24, 1, 1, 1, 1);
            this.abrStartDate.SelectedDateString = "1393/09/03";
            this.abrStartDate.SelectedMonthName = null;
            this.abrStartDate.Size = new System.Drawing.Size(175, 37);
            this.abrStartDate.StartOfYears = 1350;
            this.abrStartDate.TabIndex = 6;
            // 
            // abrEndDate
            // 
            this.abrEndDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.abrEndDate.Enabled = false;
            this.abrEndDate.EndOfYears = 1900;
            this.abrEndDate.InnerBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254)))));
            this.abrEndDate.isBorder3D = true;
            this.abrEndDate.ItemsFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEndDate.LinearListFont = new System.Drawing.Font("B Roya", 15F, System.Drawing.FontStyle.Bold);
            this.abrEndDate.Location = new System.Drawing.Point(925, 616);
            this.abrEndDate.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.abrEndDate.MaximumSize = new System.Drawing.Size(175, 37);
            this.abrEndDate.MinimumSize = new System.Drawing.Size(175, 37);
            this.abrEndDate.Name = "abrEndDate";
            this.abrEndDate.OuterBorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.abrEndDate.PanelEndBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(202)))), ((int)(((byte)(202)))));
            this.abrEndDate.PanelStartBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(239)))), ((int)(((byte)(239)))));
            this.abrEndDate.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.abrEndDate.SelectedDate = new System.DateTime(2014, 11, 24, 1, 1, 1, 1);
            this.abrEndDate.SelectedDateString = "1393/09/03";
            this.abrEndDate.SelectedMonthName = null;
            this.abrEndDate.Size = new System.Drawing.Size(175, 37);
            this.abrEndDate.StartOfYears = 1350;
            this.abrEndDate.TabIndex = 6;
            // 
            // btnFilter
            // 
            this.btnFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnFilter.Location = new System.Drawing.Point(925, 661);
            this.btnFilter.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnFilter.Name = "btnFilter";
            this.btnFilter.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnFilter.Size = new System.Drawing.Size(176, 34);
            this.btnFilter.TabIndex = 7;
            this.btnFilter.Text = "فیلترگذاری";
            this.btnFilter.UseVisualStyleBackColor = true;
            this.btnFilter.Click += new System.EventHandler(this.btnFilter_Click);
            // 
            // chkDateStart
            // 
            this.chkDateStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.chkDateStart.AutoSize = true;
            this.chkDateStart.Location = new System.Drawing.Point(1108, 576);
            this.chkDateStart.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkDateStart.Name = "chkDateStart";
            this.chkDateStart.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkDateStart.Size = new System.Drawing.Size(67, 24);
            this.chkDateStart.TabIndex = 18;
            this.chkDateStart.Text = "از تاریخ";
            this.chkDateStart.UseVisualStyleBackColor = true;
            this.chkDateStart.CheckedChanged += new System.EventHandler(this.chkDateStart_CheckedChanged);
            // 
            // chkDateEnd
            // 
            this.chkDateEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.chkDateEnd.AutoSize = true;
            this.chkDateEnd.Location = new System.Drawing.Point(1108, 619);
            this.chkDateEnd.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.chkDateEnd.Name = "chkDateEnd";
            this.chkDateEnd.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.chkDateEnd.Size = new System.Drawing.Size(66, 24);
            this.chkDateEnd.TabIndex = 19;
            this.chkDateEnd.Text = "تا تاریخ";
            this.chkDateEnd.UseVisualStyleBackColor = true;
            this.chkDateEnd.CheckedChanged += new System.EventHandler(this.chkDateEnd_CheckedChanged);
            // 
            // cmbSort
            // 
            this.cmbSort.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.cmbSort.DisplayMember = "Name";
            this.cmbSort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cmbSort.FormattingEnabled = true;
            this.cmbSort.Items.AddRange(new object[] {
            "شماره سند",
            "تاریخ سند",
            "تاریخ تنظیم"});
            this.cmbSort.Location = new System.Drawing.Point(926, 531);
            this.cmbSort.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.cmbSort.Name = "cmbSort";
            this.cmbSort.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.cmbSort.Size = new System.Drawing.Size(173, 27);
            this.cmbSort.TabIndex = 0;
            // 
            // label2
            // 
            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(1109, 535);
            this.label2.Name = "label2";
            this.label2.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.label2.Size = new System.Drawing.Size(72, 20);
            this.label2.TabIndex = 16;
            this.label2.Text = "مرتب سازی";
            // 
            // btnNewDoc
            // 
            this.btnNewDoc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.btnNewDoc.Image = global::Store.Properties.Resources.edit_add;
            this.btnNewDoc.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.btnNewDoc.Location = new System.Drawing.Point(820, 215);
            this.btnNewDoc.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
            this.btnNewDoc.Name = "btnNewDoc";
            this.btnNewDoc.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
            this.btnNewDoc.Size = new System.Drawing.Size(98, 34);
            this.btnNewDoc.TabIndex = 1;
            this.btnNewDoc.Text = "سند جدید";
            this.btnNewDoc.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.btnNewDoc.UseVisualStyleBackColor = true;
            this.btnNewDoc.Click += new System.EventHandler(this.btnNewDoc_Click);
            // 
            // DocumentsManageForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.LightPink;
            this.ClientSize = new System.Drawing.Size(1193, 707);
            this.Controls.Add(this.chkDateEnd);
            this.Controls.Add(this.chkDateStart);
            this.Controls.Add(this.btnDeleteDoc);
            this.Controls.Add(this.rdbtnCredit);
            this.Controls.Add(this.rdbtnDebt);
            this.Controls.Add(this.lstDocuments);
            this.Controls.Add(this.btnNewDoc);
            this.Controls.Add(this.btnAddAccount);
            this.Controls.Add(this.numValue);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.btnFilter);
            this.Controls.Add(this.btnAddDocument);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.txtDescription);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.abrEndDate);
            this.Controls.Add(this.abrStartDate);
            this.Controls.Add(this.abrDocumentDate);
            this.Controls.Add(this.cmbSort);
            this.Controls.Add(this.cmbAccounts);
            this.Controls.Add(this.label7);
            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 = "DocumentsManageForm";
            this.Text = "مدیریت اسناد حسابداری";
            this.Activated += new System.EventHandler(this.DocumentsManageForm_Activated);
            this.Load += new System.EventHandler(this.AccountingManageForm_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.AccountingManageForm_KeyDown);
            ((System.ComponentModel.ISupportInitialize)(this.accountBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numValue)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }