From dd0af4a5532c251fd655024ba475f72eaf9c93a0 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期一, 18 八月 2025 16:20:10 +0800 Subject: [PATCH] 汇总 --- DevApp/Gs.DevApp/UserControl/SelectCgMx.cs | 54 ++++++++++++++++- DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs | 4 + DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.Designer.cs | 74 ++++++++++++------------ DevApp/Gs.DevApp/UserControl/SelectCgMx.Designer.cs | 29 ++++++--- 4 files changed, 107 insertions(+), 54 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.Designer.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.Designer.cs index 1d9a7de..781ccf8 100644 --- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.Designer.cs +++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.Designer.cs @@ -2600,11 +2600,11 @@ // this.layShuLiang.Controls.Add(this.txt_iCount_1); this.layShuLiang.Controls.Add(this.txt_yuliang_1); - this.layShuLiang.Location = new System.Drawing.Point(662, 44); + this.layShuLiang.Location = new System.Drawing.Point(654, 44); this.layShuLiang.Name = "layShuLiang"; this.layShuLiang.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(133, 518, 812, 500); this.layShuLiang.Root = this.layoutControlGroup3; - this.layShuLiang.Size = new System.Drawing.Size(321, 28); + this.layShuLiang.Size = new System.Drawing.Size(317, 28); this.layShuLiang.TabIndex = 475; this.layShuLiang.Text = "dataLayoutControl1"; // @@ -2613,16 +2613,16 @@ this.txt_iCount_1.Location = new System.Drawing.Point(89, 2); this.txt_iCount_1.Name = "txt_iCount_1"; this.txt_iCount_1.Properties.ReadOnly = true; - this.txt_iCount_1.Size = new System.Drawing.Size(69, 24); + this.txt_iCount_1.Size = new System.Drawing.Size(67, 24); this.txt_iCount_1.StyleController = this.layShuLiang; this.txt_iCount_1.TabIndex = 5; // // txt_yuliang_1 // - this.txt_yuliang_1.Location = new System.Drawing.Point(249, 2); + this.txt_yuliang_1.Location = new System.Drawing.Point(247, 2); this.txt_yuliang_1.Name = "txt_yuliang_1"; this.txt_yuliang_1.Properties.ReadOnly = true; - this.txt_yuliang_1.Size = new System.Drawing.Size(70, 24); + this.txt_yuliang_1.Size = new System.Drawing.Size(68, 24); this.txt_yuliang_1.StyleController = this.layShuLiang; this.txt_yuliang_1.TabIndex = 6; // @@ -2647,7 +2647,7 @@ this.layoutControlGroup3.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { rowDefinition7}); this.layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - this.layoutControlGroup3.Size = new System.Drawing.Size(321, 28); + this.layoutControlGroup3.Size = new System.Drawing.Size(317, 28); this.layoutControlGroup3.TextVisible = false; // // layoutControlItem25 @@ -2655,7 +2655,7 @@ this.layoutControlItem25.Control = this.txt_iCount_1; this.layoutControlItem25.Location = new System.Drawing.Point(0, 0); this.layoutControlItem25.Name = "layoutControlItem25"; - this.layoutControlItem25.Size = new System.Drawing.Size(160, 28); + this.layoutControlItem25.Size = new System.Drawing.Size(158, 28); this.layoutControlItem25.Text = "鎵撳嵃鏁村紶鏁�"; this.layoutControlItem25.TextSize = new System.Drawing.Size(75, 18); // @@ -2663,16 +2663,16 @@ // this.layoutControlItem39.Control = this.txt_yuliang_1; this.layoutControlItem39.CustomizationFormText = "鎵撳嵃浣欐暟"; - this.layoutControlItem39.Location = new System.Drawing.Point(160, 0); + this.layoutControlItem39.Location = new System.Drawing.Point(158, 0); this.layoutControlItem39.Name = "layoutControlItem39"; this.layoutControlItem39.OptionsTableLayoutItem.ColumnIndex = 1; - this.layoutControlItem39.Size = new System.Drawing.Size(161, 28); + this.layoutControlItem39.Size = new System.Drawing.Size(159, 28); this.layoutControlItem39.Text = "鎵撳嵃浣欐暟"; this.layoutControlItem39.TextSize = new System.Drawing.Size(75, 18); // // radOut // - this.radOut.Location = new System.Drawing.Point(985, 10); + this.radOut.Location = new System.Drawing.Point(973, 10); this.radOut.Margin = new System.Windows.Forms.Padding(0); this.radOut.Name = "radOut"; this.radOut.Properties.ItemHorzAlignment = DevExpress.XtraEditors.RadioItemHorzAlignment.Near; @@ -2681,7 +2681,7 @@ new DevExpress.XtraEditors.Controls.RadioGroupItem(null, "鍙墦鏁村紶"), new DevExpress.XtraEditors.Controls.RadioGroupItem(null, "鎵嬪姩鎵�")}); this.radOut.Properties.Padding = new System.Windows.Forms.Padding(0); - this.radOut.Size = new System.Drawing.Size(325, 32); + this.radOut.Size = new System.Drawing.Size(321, 32); this.radOut.StyleController = this.layoutMx99; this.radOut.TabIndex = 473; // @@ -2689,29 +2689,29 @@ // this.ucBtnPrint1.allClickKey = null; this.ucBtnPrint1.guidKey = null; - this.ucBtnPrint1.Location = new System.Drawing.Point(985, 42); + this.ucBtnPrint1.Location = new System.Drawing.Point(973, 42); this.ucBtnPrint1.Margin = new System.Windows.Forms.Padding(0); this.ucBtnPrint1.Name = "ucBtnPrint1"; this.ucBtnPrint1.rptParameter = null; - this.ucBtnPrint1.Size = new System.Drawing.Size(325, 32); + this.ucBtnPrint1.Size = new System.Drawing.Size(321, 32); this.ucBtnPrint1.TabIndex = 464; // // txt_psnQty_1 // - this.txt_psnQty_1.Location = new System.Drawing.Point(749, 12); + this.txt_psnQty_1.Location = new System.Drawing.Point(741, 12); this.txt_psnQty_1.Name = "txt_psnQty_1"; this.txt_psnQty_1.Properties.Appearance.Options.UseFont = true; - this.txt_psnQty_1.Size = new System.Drawing.Size(234, 24); + this.txt_psnQty_1.Size = new System.Drawing.Size(230, 24); this.txt_psnQty_1.StyleController = this.layoutMx99; this.txt_psnQty_1.TabIndex = 330; this.txt_psnQty_1.Tag = "readOnly-1"; // // txt_printRemark // - this.txt_printRemark.Location = new System.Drawing.Point(424, 44); + this.txt_printRemark.Location = new System.Drawing.Point(420, 44); this.txt_printRemark.Name = "txt_printRemark"; this.txt_printRemark.Properties.Appearance.Options.UseFont = true; - this.txt_printRemark.Size = new System.Drawing.Size(234, 24); + this.txt_printRemark.Size = new System.Drawing.Size(230, 24); this.txt_printRemark.StyleController = this.layoutMx99; this.txt_printRemark.TabIndex = 334; this.txt_printRemark.Tag = "readOnly-1"; @@ -2719,11 +2719,11 @@ // txt_kQty // this.txt_kQty.EditValue = ""; - this.txt_kQty.Location = new System.Drawing.Point(424, 12); + this.txt_kQty.Location = new System.Drawing.Point(420, 12); this.txt_kQty.Name = "txt_kQty"; this.txt_kQty.Properties.Appearance.Options.UseFont = true; this.txt_kQty.Properties.ReadOnly = true; - this.txt_kQty.Size = new System.Drawing.Size(234, 24); + this.txt_kQty.Size = new System.Drawing.Size(230, 24); this.txt_kQty.StyleController = this.layoutMx99; this.txt_kQty.TabIndex = 472; this.txt_kQty.Tag = "readonly"; @@ -2734,7 +2734,7 @@ this.txt_yQty.Name = "txt_yQty"; this.txt_yQty.Properties.Appearance.Options.UseFont = true; this.txt_yQty.Properties.ReadOnly = true; - this.txt_yQty.Size = new System.Drawing.Size(234, 24); + this.txt_yQty.Size = new System.Drawing.Size(230, 24); this.txt_yQty.StyleController = this.layoutMx99; this.txt_yQty.TabIndex = 470; this.txt_yQty.Tag = "readonly"; @@ -2744,7 +2744,7 @@ this.txt_zQty.Location = new System.Drawing.Point(99, 12); this.txt_zQty.Name = "txt_zQty"; this.txt_zQty.Properties.ReadOnly = true; - this.txt_zQty.Size = new System.Drawing.Size(234, 24); + this.txt_zQty.Size = new System.Drawing.Size(230, 24); this.txt_zQty.StyleController = this.layoutMx99; this.txt_zQty.TabIndex = 474; // @@ -2772,7 +2772,7 @@ columnDefinition10.SizeType = System.Windows.Forms.SizeType.Percent; columnDefinition10.Width = 100D; columnDefinition11.SizeType = System.Windows.Forms.SizeType.AutoSize; - columnDefinition11.Width = 328D; + columnDefinition11.Width = 323D; this.layoutControlGroup1.OptionsTableLayoutGroup.ColumnDefinitions.AddRange(new DevExpress.XtraLayout.ColumnDefinition[] { columnDefinition7, columnDefinition8, @@ -2786,7 +2786,7 @@ this.layoutControlGroup1.OptionsTableLayoutGroup.RowDefinitions.AddRange(new DevExpress.XtraLayout.RowDefinition[] { rowDefinition8, rowDefinition9}); - this.layoutControlGroup1.Size = new System.Drawing.Size(1648, 84); + this.layoutControlGroup1.Size = new System.Drawing.Size(1627, 84); this.layoutControlGroup1.TextVisible = false; // // layoutControlItem23 @@ -2794,21 +2794,21 @@ this.layoutControlItem23.AppearanceItemCaption.Options.UseTextOptions = true; this.layoutControlItem23.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.layoutControlItem23.Control = this.txt_kQty; - this.layoutControlItem23.Location = new System.Drawing.Point(325, 0); + this.layoutControlItem23.Location = new System.Drawing.Point(321, 0); this.layoutControlItem23.Name = "layoutControlItem23"; this.layoutControlItem23.OptionsTableLayoutItem.ColumnIndex = 1; - this.layoutControlItem23.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem23.Size = new System.Drawing.Size(321, 32); this.layoutControlItem23.Text = "鍙墦鍗版暟閲�"; this.layoutControlItem23.TextSize = new System.Drawing.Size(75, 18); // // layoutControlItem35 // this.layoutControlItem35.Control = this.radOut; - this.layoutControlItem35.Location = new System.Drawing.Point(975, 0); + this.layoutControlItem35.Location = new System.Drawing.Point(963, 0); this.layoutControlItem35.Name = "layoutControlItem35"; this.layoutControlItem35.OptionsTableLayoutItem.ColumnIndex = 3; this.layoutControlItem35.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - this.layoutControlItem35.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem35.Size = new System.Drawing.Size(321, 32); this.layoutControlItem35.Text = "鑷姩璁$畻"; this.layoutControlItem35.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem35.TextVisible = false; @@ -2818,12 +2818,12 @@ this.layoutControlItem26.AppearanceItemCaption.Options.UseTextOptions = true; this.layoutControlItem26.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.layoutControlItem26.Control = this.ucBtnPrint1; - this.layoutControlItem26.Location = new System.Drawing.Point(975, 32); + this.layoutControlItem26.Location = new System.Drawing.Point(963, 32); this.layoutControlItem26.Name = "layoutControlItem26"; this.layoutControlItem26.OptionsTableLayoutItem.ColumnIndex = 3; this.layoutControlItem26.OptionsTableLayoutItem.RowIndex = 1; this.layoutControlItem26.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - this.layoutControlItem26.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem26.Size = new System.Drawing.Size(321, 32); this.layoutControlItem26.Text = "鎵樻澘鎵撳嵃"; this.layoutControlItem26.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem26.TextVisible = false; @@ -2836,18 +2836,18 @@ this.layoutControlItem22.Location = new System.Drawing.Point(0, 32); this.layoutControlItem22.Name = "layoutControlItem22"; this.layoutControlItem22.OptionsTableLayoutItem.RowIndex = 1; - this.layoutControlItem22.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem22.Size = new System.Drawing.Size(321, 32); this.layoutControlItem22.Text = "宸叉墦鍗版暟閲�"; this.layoutControlItem22.TextSize = new System.Drawing.Size(75, 18); // // layoutControlItem21 // this.layoutControlItem21.Control = this.txt_printRemark; - this.layoutControlItem21.Location = new System.Drawing.Point(325, 32); + this.layoutControlItem21.Location = new System.Drawing.Point(321, 32); this.layoutControlItem21.Name = "layoutControlItem21"; this.layoutControlItem21.OptionsTableLayoutItem.ColumnIndex = 1; this.layoutControlItem21.OptionsTableLayoutItem.RowIndex = 1; - this.layoutControlItem21.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem21.Size = new System.Drawing.Size(321, 32); this.layoutControlItem21.Text = "鎵撳嵃澶囨敞"; this.layoutControlItem21.TextSize = new System.Drawing.Size(75, 18); // @@ -2857,21 +2857,21 @@ this.layoutControlItem24.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; this.layoutControlItem24.Control = this.txt_psnQty_1; this.layoutControlItem24.CustomizationFormText = "鍐呭寘瑁呮暟閲�"; - this.layoutControlItem24.Location = new System.Drawing.Point(650, 0); + this.layoutControlItem24.Location = new System.Drawing.Point(642, 0); this.layoutControlItem24.Name = "layoutControlItem24"; this.layoutControlItem24.OptionsTableLayoutItem.ColumnIndex = 2; - this.layoutControlItem24.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem24.Size = new System.Drawing.Size(321, 32); this.layoutControlItem24.Text = "鍐呭寘瑁呮暟閲�"; this.layoutControlItem24.TextSize = new System.Drawing.Size(75, 18); // // layoutControlItem38 // this.layoutControlItem38.Control = this.layShuLiang; - this.layoutControlItem38.Location = new System.Drawing.Point(650, 32); + this.layoutControlItem38.Location = new System.Drawing.Point(642, 32); this.layoutControlItem38.Name = "layoutControlItem38"; this.layoutControlItem38.OptionsTableLayoutItem.ColumnIndex = 2; this.layoutControlItem38.OptionsTableLayoutItem.RowIndex = 1; - this.layoutControlItem38.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem38.Size = new System.Drawing.Size(321, 32); this.layoutControlItem38.Text = "鎵撳嵃鏁伴噺"; this.layoutControlItem38.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem38.TextVisible = false; @@ -2881,7 +2881,7 @@ this.layoutControlItem36.Control = this.txt_zQty; this.layoutControlItem36.Location = new System.Drawing.Point(0, 0); this.layoutControlItem36.Name = "layoutControlItem36"; - this.layoutControlItem36.Size = new System.Drawing.Size(325, 32); + this.layoutControlItem36.Size = new System.Drawing.Size(321, 32); this.layoutControlItem36.Text = "宸ュ崟鎬婚噺"; this.layoutControlItem36.TextSize = new System.Drawing.Size(75, 18); // diff --git a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs index ce4f47a..d2f96cd 100644 --- a/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs +++ b/DevApp/Gs.DevApp/DevFrm/WOM/Frm_Womdaa.cs @@ -1,4 +1,6 @@ +using DevExpress.Data; using DevExpress.Utils; +using DevExpress.XtraGrid.Views.Grid; using Gs.DevApp.DevFrm.Rpt; using Gs.DevApp.DevFrm.Sys; using Gs.DevApp.DevFrm.WOM; @@ -790,7 +792,7 @@ txt_psnQty_1.Text = txt_printRemark.Text = txt_iCount_1.Text = txt_printRemark98.Text = txt_iCount_98.Text = txt_yuliang_1.Text = ""; txt_iCount_98.Text = txt_kQty98.Text;//杩芥函鐮� txt_iCount_100.Text = txt_kQty100.Text;//鍚庣洊鐮� - + } else ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + _rtn.rtnMsg); diff --git a/DevApp/Gs.DevApp/UserControl/SelectCgMx.Designer.cs b/DevApp/Gs.DevApp/UserControl/SelectCgMx.Designer.cs index 9780866..fe632be 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectCgMx.Designer.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectCgMx.Designer.cs @@ -67,10 +67,10 @@ this.gv_userName = new DevExpress.XtraGrid.Columns.GridColumn(); this.gv_Btn = new DevExpress.XtraGrid.Columns.GridColumn(); this.rptSrm = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); + this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); this.panelControl3 = new DevExpress.XtraEditors.PanelControl(); this.label1 = new System.Windows.Forms.Label(); this.radioGroup1 = new DevExpress.XtraEditors.RadioGroup(); - this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit(); this.panelControl2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); @@ -160,6 +160,7 @@ this.gridView1.OptionsFind.ShowSearchNavButtons = false; this.gridView1.OptionsSelection.CheckBoxSelectorColumnWidth = 60; this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowFooter = true; this.gridView1.OptionsView.ShowGroupPanel = false; // // colChkInt @@ -258,6 +259,8 @@ this.gridColumn6.MinWidth = 10; this.gridColumn6.Name = "gridColumn6"; this.gridColumn6.OptionsColumn.ReadOnly = true; + this.gridColumn6.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { + new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "purchaseQty", "閲囪喘:{0:0.##}")}); this.gridColumn6.Visible = true; this.gridColumn6.VisibleIndex = 5; this.gridColumn6.Width = 11; @@ -269,6 +272,8 @@ this.gridColumn9.MinWidth = 10; this.gridColumn9.Name = "gridColumn9"; this.gridColumn9.OptionsColumn.ReadOnly = true; + this.gridColumn9.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { + new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "yssl", "宸叉敹:{0:0.##}")}); this.gridColumn9.Visible = true; this.gridColumn9.VisibleIndex = 6; this.gridColumn9.Width = 50; @@ -284,6 +289,8 @@ this.gridColumn7.MinWidth = 10; this.gridColumn7.Name = "gridColumn7"; this.gridColumn7.OptionsColumn.ReadOnly = true; + this.gridColumn7.Summary.AddRange(new DevExpress.XtraGrid.GridSummaryItem[] { + new DevExpress.XtraGrid.GridColumnSummaryItem(DevExpress.Data.SummaryItemType.Sum, "wssl", "鏈敹={0:0.##}")}); this.gridColumn7.Visible = true; this.gridColumn7.VisibleIndex = 7; this.gridColumn7.Width = 10; @@ -495,6 +502,16 @@ this.rptSrm.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; this.rptSrm.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.rptSrm_ButtonClick); // + // gridColumn11 + // + this.gridColumn11.Caption = "寤虹珛鏃堕棿"; + this.gridColumn11.FieldName = "createDate"; + this.gridColumn11.MinWidth = 25; + this.gridColumn11.Name = "gridColumn11"; + this.gridColumn11.Visible = true; + this.gridColumn11.VisibleIndex = 4; + this.gridColumn11.Width = 94; + // // panelControl3 // this.panelControl3.Controls.Add(this.label1); @@ -524,16 +541,6 @@ new DevExpress.XtraEditors.Controls.RadioGroupItem(((short)(1)), "濮斿")}); this.radioGroup1.Size = new System.Drawing.Size(197, 34); this.radioGroup1.TabIndex = 0; - // - // gridColumn11 - // - this.gridColumn11.Caption = "寤虹珛鏃堕棿"; - this.gridColumn11.FieldName = "createDate"; - this.gridColumn11.MinWidth = 25; - this.gridColumn11.Name = "gridColumn11"; - this.gridColumn11.Visible = true; - this.gridColumn11.VisibleIndex = 4; - this.gridColumn11.Width = 94; // // SelectCgMx // diff --git a/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs b/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs index 60ab5b4..db725f4 100644 --- a/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs +++ b/DevApp/Gs.DevApp/UserControl/SelectCgMx.cs @@ -1,4 +1,6 @@ -锘縰sing DevExpress.XtraEditors; +锘縰sing DevExpress.Data; +using DevExpress.XtraEditors; +using DevExpress.XtraGrid.Views.Grid; using Gs.DevApp.Entity; using Gs.DevApp.ToolBox; using Newtonsoft.Json; @@ -11,7 +13,6 @@ { public partial class SelectCgMx : XtraForm { - private readonly string _webServiceName = "MesInvItemArnManager/"; private string suppId = ""; private string receiveOrgId = ""; @@ -24,6 +25,52 @@ public SelectCgMx(string _suppId, string _receiveOrgId) { InitializeComponent(); + gridView1.Columns["purchaseQty"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom; + gridView1.Columns["yssl"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom; + gridView1.Columns["wssl"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Custom; + gridView1.CustomSummaryCalculate += (sender, e) => + { + GridView view = sender as GridView; + object obj = e.FieldValue; + if (e.SummaryProcess == CustomSummaryProcess.Start) + { + // 鍒濆鍖栨眹鎬诲�� + e.TotalValue = 0; + } + else if (e.SummaryProcess == CustomSummaryProcess.Calculate) + { + // 妫�鏌ュ綋鍓嶈鐨凷tatus瀛楁鏄惁涓�1 + int status = Convert.ToInt32(view.GetListSourceRowCellValue(e.RowHandle, "chkInt")); + if (status == 1) + { + string _colCaption=e.Item.ToString(); + if (_colCaption.Contains("閲囪喘")) + { + decimal amount = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "purchaseQty")); + e.TotalValue = Convert.ToDecimal(e.TotalValue) + amount; + } + else { + if (_colCaption.Contains("宸叉敹")) + { + decimal amount2 = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "yssl")); + e.TotalValue = Convert.ToDecimal(e.TotalValue) + amount2; + } + else { + if (_colCaption.Contains("鏈敹")) + { + decimal amount3 = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "wssl")); + e.TotalValue = Convert.ToDecimal(e.TotalValue) + amount3; + } + } + } + } + } + else if (e.SummaryProcess == CustomSummaryProcess.Finalize) + { + // 璁剧疆鏈�缁堟眹鎬诲�� + e.TotalValue = e.TotalValue; + } + }; this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; this.gridView1.MouseUp += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomMouseUp(s, e, gcMain, gridView1); }; this.colChkInt.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; @@ -103,7 +150,6 @@ } } - #region SRM鐨勫垪琛ㄥ拰閫夋嫨浜嬩欢 /// <summary> /// </summary> @@ -177,7 +223,5 @@ } } #endregion - - } } \ No newline at end of file -- Gitblit v1.9.3