| | |
| | | public SelectCgMx(string _suppId, string _receiveOrgId) |
| | | { |
| | | InitializeComponent(); |
| | | #region MyRegion |
| | | 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; |
| | |
| | | int status = Convert.ToInt32(view.GetListSourceRowCellValue(e.RowHandle, "chkInt")); |
| | | if (status == 1) |
| | | { |
| | | string _colCaption=e.Item.ToString(); |
| | | 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 { |
| | | else |
| | | { |
| | | if (_colCaption.Contains("已收")) |
| | | { |
| | | decimal amount2 = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "yssl")); |
| | | e.TotalValue = Convert.ToDecimal(e.TotalValue) + amount2; |
| | | } |
| | | else { |
| | | else |
| | | { |
| | | if (_colCaption.Contains("未收")) |
| | | { |
| | | decimal amount3 = Convert.ToDecimal(view.GetListSourceRowCellValue(e.RowHandle, "wssl")); |
| | |
| | | e.TotalValue = e.TotalValue; |
| | | } |
| | | }; |
| | | #endregion |
| | | 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; |