//protected double PrintablePageWidth; //protected double PrintablePageHeight; public DocumentPaginatorExtention(PrintableListView listview, Thickness margin, Size printPageArea) { printableListView = listview; PageMargin = margin; pageHeight = printPageArea.Height - PageMargin.Top - PageMargin.Bottom; PageSize = printPageArea; headerSize = listview.HeaderSize; footerSize = listview.FooterSize; if (listview.PageHeaderTemplate != null) { pageHeight -= headerSize.Height; } if (listview.PageFooterTemplate != null) { pageHeight -= footerSize.Height; } if (listview.ReportBody == null) { listview.ReportBody = UIUtility.CreateDeepCopy(listview.View); } for (int index = 0; index < (listview.View as GridView).Columns.Count; index++) { var col = (listview.View as GridView).Columns[index]; (listview.ReportBody as GridView).Columns[index].Width = col.ActualWidth; } ListCollectionView originalData = new ListCollectionView((IList)listview.ItemsSource);// (ListCollectionView)listview.ItemsSource; CollectionViewSource source = new CollectionViewSource(); source.Source = originalData.SourceCollection;//(listview.ItemsSource as ListCollectionView) if (printableListView.Group != null && printableListView.Group.GroupDescriptions != null) { foreach (GroupDescription groupDescription in printableListView.Group.GroupDescriptions) { source.GroupDescriptions.Add(groupDescription); } } if (printableListView.Group != null) { printableListView.Group.groupIndex = 0; printableListView.Group.groupPage = 0; } sourceView = source.View as ListCollectionView; createPages(); pageCount = Pages.Count; isPageCountValid = true; documentPaginatorSource = new DocumentPaginatorSource(this); sourceView.MoveCurrentToFirst(); groupIndex = 0; currentGroupPageCount = 0; }
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(); }