From 244f6e866ed6ff7325145c96a1ac62122707f4af Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 06 十一月 2024 16:56:50 +0800
Subject: [PATCH] 到货单删除
---
DevApp/Gs.DevApp/TestForm/XtraForm2.cs | 13 ++++++
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.Designer.cs | 48 +++++++++++------------
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs | 33 ++++++++++------
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs | 3 +
4 files changed, 57 insertions(+), 40 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
index 6e3b0e4..672528b 100644
--- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
@@ -6,6 +6,7 @@
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
+using DevExpress.XtraGrid.Views.Base.ViewInfo;
using DevExpress.XtraGrid.Views.Grid;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
@@ -97,7 +98,7 @@
frm.ShowDialog();
};
}
-
+
/// <summary>
/// 鍙屽嚮浜嬩欢
@@ -212,16 +213,17 @@
MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
return;
}
-
if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鍒犻櫎鍚楋紵"))
return;
- var lst = new List<dynamic>();
- lst.Add(rowGuid);
- var _obj = lst;
+ var _obj = new
+ {
+ guid = rowGuid,
+ mxGuid = Guid.Empty.ToString(),
+ };
try
{
var strJson = UtilityHelper.HttpPost("",
- _webServiceName + "DeleteModel",
+ _webServiceName + "DeleteModelOrMx",
JsonConvert.SerializeObject(_obj));
var _rtn = UtilityHelper.ReturnToDynamic(strJson);
if (_rtn.rtnCode > 0)
@@ -479,16 +481,21 @@
gvMx1.DeleteRow(rowhandle);
return;
}
- var strJson = "";
- var lst = new List<string>();
- lst.Add(mxGuid);
+ var _obj = new
+ {
+ guid = lbGuid.Text.Trim(),
+ mxGuid = mxGuid,
+ };
try
{
- strJson = UtilityHelper.HttpPost("",
- _webServiceName + "DeleteModelMx",
- JsonConvert.SerializeObject(lst));
+ var strJson = UtilityHelper.HttpPost("",
+ _webServiceName + "DeleteModelOrMx",
+ JsonConvert.SerializeObject(_obj));
var _rtn = UtilityHelper.ReturnToDynamic(strJson);
- if (_rtn.rtnCode > 0) getModel(lbGuid.Text, true, 1);
+ if (_rtn.rtnCode > 0)
+ {
+ if (_rtn.rtnCode > 0) getModel(lbGuid.Text, true, 1);
+ }
MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg);
}
catch (Exception ex)
diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.Designer.cs
index 0428057..b61f5a8 100644
--- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.Designer.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.Designer.cs
@@ -1476,7 +1476,7 @@
this.gridBand1.Columns.Add(this.gv_changereason);
this.gridBand1.Name = "gridBand1";
this.gridBand1.VisibleIndex = 0;
- this.gridBand1.Width = 82;
+ this.gridBand1.Width = 75;
//
// gv_factory
//
@@ -1486,7 +1486,6 @@
this.gv_factory.Name = "gv_factory";
this.gv_factory.OptionsColumn.AllowEdit = false;
this.gv_factory.Visible = true;
- this.gv_factory.Width = 82;
//
// gv_qtyAcceptance
//
@@ -1710,7 +1709,7 @@
this.gridBand2.Columns.Add(this.gv_billNo);
this.gridBand2.Name = "gridBand2";
this.gridBand2.VisibleIndex = 1;
- this.gridBand2.Width = 141;
+ this.gridBand2.Width = 120;
//
// gv_billNo
//
@@ -1723,7 +1722,7 @@
this.gv_billNo.OptionsColumn.AllowEdit = false;
this.gv_billNo.Tag = "query_a.BILL_NO";
this.gv_billNo.Visible = true;
- this.gv_billNo.Width = 141;
+ this.gv_billNo.Width = 120;
//
// gridBand3
//
@@ -1734,7 +1733,7 @@
this.gridBand3.Name = "gridBand3";
this.gridBand3.RowCount = 2;
this.gridBand3.VisibleIndex = 2;
- this.gridBand3.Width = 117;
+ this.gridBand3.Width = 100;
//
// gv_documentStatus
//
@@ -1747,7 +1746,7 @@
this.gv_documentStatus.OptionsColumn.AllowEdit = false;
this.gv_documentStatus.Tag = "query_a.DOCUMENT_STATUS";
this.gv_documentStatus.Visible = true;
- this.gv_documentStatus.Width = 117;
+ this.gv_documentStatus.Width = 100;
//
// gridBand4
//
@@ -1758,7 +1757,6 @@
this.gridBand4.Name = "gridBand4";
this.gridBand4.RowCount = 2;
this.gridBand4.VisibleIndex = 3;
- this.gridBand4.Width = 82;
//
// gv_documentType
//
@@ -1771,7 +1769,7 @@
this.gv_documentType.OptionsColumn.AllowEdit = false;
this.gv_documentType.Tag = "query_a.DOCUMENT_TYPE";
this.gv_documentType.Visible = true;
- this.gv_documentType.Width = 82;
+ this.gv_documentType.Width = 70;
//
// gridBand5
//
@@ -1779,7 +1777,7 @@
this.gridBand5.Columns.Add(this.gv_businessType);
this.gridBand5.Name = "gridBand5";
this.gridBand5.VisibleIndex = 4;
- this.gridBand5.Width = 117;
+ this.gridBand5.Width = 100;
//
// gv_businessType
//
@@ -1792,7 +1790,7 @@
this.gv_businessType.OptionsColumn.AllowEdit = false;
this.gv_businessType.Tag = "query_a.BUSINESS_TYPE";
this.gv_businessType.Visible = true;
- this.gv_businessType.Width = 117;
+ this.gv_businessType.Width = 100;
//
// gridBand8
//
@@ -1800,7 +1798,7 @@
this.gridBand8.Columns.Add(this.gv_purchaseDate);
this.gridBand8.Name = "gridBand8";
this.gridBand8.VisibleIndex = 5;
- this.gridBand8.Width = 126;
+ this.gridBand8.Width = 100;
//
// gv_purchaseDate
//
@@ -1813,7 +1811,7 @@
this.gv_purchaseDate.OptionsColumn.AllowEdit = false;
this.gv_purchaseDate.Tag = "query_a.PURCHASE_DATE";
this.gv_purchaseDate.Visible = true;
- this.gv_purchaseDate.Width = 126;
+ this.gv_purchaseDate.Width = 100;
//
// gridBand6
//
@@ -1825,7 +1823,7 @@
this.gridBand7});
this.gridBand6.Name = "gridBand6";
this.gridBand6.VisibleIndex = 6;
- this.gridBand6.Width = 200;
+ this.gridBand6.Width = 150;
//
// gridBand11
//
@@ -1833,7 +1831,7 @@
this.gridBand11.Columns.Add(this.gv_supplier);
this.gridBand11.Name = "gridBand11";
this.gridBand11.VisibleIndex = 0;
- this.gridBand11.Width = 80;
+ this.gridBand11.Width = 60;
//
// gv_supplier
//
@@ -1846,14 +1844,14 @@
this.gv_supplier.OptionsColumn.AllowEdit = false;
this.gv_supplier.Tag = "query_a.SUPPLIER";
this.gv_supplier.Visible = true;
- this.gv_supplier.Width = 80;
+ this.gv_supplier.Width = 60;
//
// gridBand7
//
this.gridBand7.Caption = "鍚嶇О";
this.gridBand7.Name = "gridBand7";
this.gridBand7.VisibleIndex = 1;
- this.gridBand7.Width = 120;
+ this.gridBand7.Width = 90;
//
// gridBand9
//
@@ -1889,7 +1887,7 @@
this.gridBand13});
this.gridBand10.Name = "gridBand10";
this.gridBand10.VisibleIndex = 8;
- this.gridBand10.Width = 310;
+ this.gridBand10.Width = 234;
//
// gridBand12
//
@@ -1897,7 +1895,7 @@
this.gridBand12.Columns.Add(this.gv_purchaseDept);
this.gridBand12.Name = "gridBand12";
this.gridBand12.VisibleIndex = 0;
- this.gridBand12.Width = 110;
+ this.gridBand12.Width = 82;
//
// gv_purchaseDept
//
@@ -1910,14 +1908,14 @@
this.gv_purchaseDept.OptionsColumn.AllowEdit = false;
this.gv_purchaseDept.Tag = "query_a.PURCHASE_DEPT";
this.gv_purchaseDept.Visible = true;
- this.gv_purchaseDept.Width = 110;
+ this.gv_purchaseDept.Width = 82;
//
// gridBand13
//
this.gridBand13.Caption = "鍚嶇О";
this.gridBand13.Name = "gridBand13";
this.gridBand13.VisibleIndex = 1;
- this.gridBand13.Width = 200;
+ this.gridBand13.Width = 152;
//
// gridBand14
//
@@ -1926,7 +1924,7 @@
this.gridBand14.Caption = "鏁伴噺楠屾敹";
this.gridBand14.Name = "gridBand14";
this.gridBand14.VisibleIndex = 9;
- this.gridBand14.Width = 55;
+ this.gridBand14.Width = 11;
//
// gridBand15
//
@@ -1934,7 +1932,7 @@
this.gridBand15.Columns.Add(this.gv_purchaser);
this.gridBand15.Name = "gridBand15";
this.gridBand15.VisibleIndex = 10;
- this.gridBand15.Width = 142;
+ this.gridBand15.Width = 100;
//
// gv_purchaser
//
@@ -1947,7 +1945,7 @@
this.gv_purchaser.OptionsColumn.AllowEdit = false;
this.gv_purchaser.Tag = "query_a.PURCHASER";
this.gv_purchaser.Visible = true;
- this.gv_purchaser.Width = 142;
+ this.gv_purchaser.Width = 100;
//
// gridBand16
//
@@ -1955,7 +1953,7 @@
this.gridBand16.Columns.Add(this.gv_qualityReq);
this.gridBand16.Name = "gridBand16";
this.gridBand16.VisibleIndex = 11;
- this.gridBand16.Width = 164;
+ this.gridBand16.Width = 100;
//
// gv_qualityReq
//
@@ -1968,7 +1966,7 @@
this.gv_qualityReq.OptionsColumn.AllowEdit = false;
this.gv_qualityReq.Tag = "query_a.QUALITY_REQ";
this.gv_qualityReq.Visible = true;
- this.gv_qualityReq.Width = 164;
+ this.gv_qualityReq.Width = 100;
//
// xtraTabControl1
//
diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs
index 4257eea..098430a 100644
--- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesRohIn.cs
@@ -5,6 +5,7 @@
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
+using DevExpress.XtraGrid.Views.BandedGrid;
using DevExpress.XtraGrid.Views.Grid;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
@@ -40,7 +41,7 @@
e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5);
e.Graphics.DrawString(str, f, Brushes.Gray, r);
};
-
+
}
/// <summary>
diff --git a/DevApp/Gs.DevApp/TestForm/XtraForm2.cs b/DevApp/Gs.DevApp/TestForm/XtraForm2.cs
index 26ce58f..8a8b3e4 100644
--- a/DevApp/Gs.DevApp/TestForm/XtraForm2.cs
+++ b/DevApp/Gs.DevApp/TestForm/XtraForm2.cs
@@ -1,4 +1,7 @@
-锘縰sing DevExpress.XtraEditors;
+锘縰sing DevExpress.Data;
+using DevExpress.XtraEditors;
+using DevExpress.XtraGrid.Views.BandedGrid;
+using DevExpress.XtraGrid.Views.Grid;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -16,6 +19,14 @@
public XtraForm2()
{
InitializeComponent();
+ bandedGridView1 = new BandedGridView();
+ bandedGridView1.OptionsView.EnableAppearanceEvenRow = true;
+ bandedGridView1.OptionsView.EnableAppearanceOddRow = true;
+ bandedGridView1.OptionsCustomization.AllowSort = true;
+ // bandedGridView1.OptionsBehavior.AllowRecorderClickSort = true;
+ // ... 鍏朵粬鍒濆鍖栦唬鐮�
}
+
+
}
}
\ No newline at end of file
--
Gitblit v1.9.3