SVN-Revision: r447
This commit is contained in:
tdx
2025-04-05 13:35:39 +00:00
parent 3e200b3382
commit 7182a88649
2 changed files with 26 additions and 8 deletions
+6 -7
View File
@@ -28,7 +28,6 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.ssc_main = new DevExpress.XtraEditors.SplitContainerControl();
this.ssc_main_top = new DevExpress.XtraEditors.SplitContainerControl();
this.pl_left = new DevExpress.XtraEditors.PanelControl();
@@ -41,7 +40,7 @@
this.pl_treeview_detault_search = new DevExpress.XtraEditors.PanelControl();
this.panelControl4 = new DevExpress.XtraEditors.PanelControl();
this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
this.barManager1 = new DevExpress.XtraBars.BarManager(this.components);
this.barManager1 = new DevExpress.XtraBars.BarManager();
this.barDockControl1 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl2 = new DevExpress.XtraBars.BarDockControl();
this.barDockControl3 = new DevExpress.XtraBars.BarDockControl();
@@ -51,7 +50,7 @@
this.btnTreeSearch = new DevExpress.XtraEditors.SimpleButton();
this.pl_main_bottom = new DevExpress.XtraEditors.PanelControl();
this.dbpFP = new DevExpress.XtraEditors.DropDownButton();
this.pmFP = new DevExpress.XtraBars.PopupMenu(this.components);
this.pmFP = new DevExpress.XtraBars.PopupMenu();
this.btnRefresh = new DevExpress.XtraEditors.SimpleButton();
this.btnHiding = new DevExpress.XtraEditors.SimpleButton();
this.btnHelp = new DevExpress.XtraEditors.SimpleButton();
@@ -64,15 +63,15 @@
this.labelControl2 = new DevExpress.XtraEditors.LabelControl();
this.btn_input = new DevExpress.XtraEditors.SimpleButton();
this.dpbImport = new DevExpress.XtraEditors.DropDownButton();
this.pmBillExp = new DevExpress.XtraBars.PopupMenu(this.components);
this.pmBillExp = new DevExpress.XtraBars.PopupMenu();
this.btnBillAdd = new DevExpress.XtraEditors.SimpleButton();
this.btnBillApply = new DevExpress.XtraEditors.SimpleButton();
this.dpCopyBill = new DevExpress.XtraEditors.DropDownButton();
this.pmBill = new DevExpress.XtraBars.PopupMenu(this.components);
this.pmBill = new DevExpress.XtraBars.PopupMenu();
this.btnPrint = new DevExpress.XtraEditors.DropDownButton();
this.pMprint = new DevExpress.XtraBars.PopupMenu(this.components);
this.pMprint = new DevExpress.XtraBars.PopupMenu();
this.dpbTools = new DevExpress.XtraEditors.DropDownButton();
this.pMenu = new DevExpress.XtraBars.PopupMenu(this.components);
this.pMenu = new DevExpress.XtraBars.PopupMenu();
this.btnDelete = new DevExpress.XtraEditors.SimpleButton();
this.btnBillSave = new DevExpress.XtraEditors.SimpleButton();
this.pl_main_top = new DevExpress.XtraEditors.PanelControl();
+20 -1
View File
@@ -2586,6 +2586,25 @@ namespace Lskj.PubBill
if (!string.IsNullOrWhiteSpace(e.MemuModel.ResultSQL))
{
string resultSql = e.MemuModel.ResultSQL;
if (e.DialogModel != null && e.DialogModel.DialogDllName.Equals("Lskj.PubBomImport.dll", StringComparison.OrdinalIgnoreCase)&& e.DialogModel.ReturnTag.ToString()=="3")
{
DataRow dataRow = this.gcMain.GridView.GetFocusedDataRow();
string[] strArrlist = resultSql.Split('^');
if (strArrlist.Count() != 3) return;
string selectSql = ReplaceHelper.ReplaceRowParam(dataRow, strArrlist[0]);
string isUpadSql = ReplaceHelper.ReplaceRowParam(dataRow, strArrlist[1]);
DataRow fileRow = BaseImpl.GetDataRowResult(selectSql);
string Billdocument_Id = fileRow != null ? fileRow["Billdocument_Id"] + "" : string.Empty;
dataRow["qms_laddf_RelatedId"] = Billdocument_Id;
if (fileRow!=null && BaseImpl.GetDataRowResult(isUpadSql) != null)
{
string upadSql = ReplaceHelper.ReplaceRowParam(fileRow, strArrlist[2]);
upadSql = ReplaceHelper.ReplaceRowParam(dataRow, strArrlist[2]);
SqlHelper.ExecuteNonQuery(upadSql);
}
this.gcMain.GridView.UpdateCurrentRow();
this.gcMain.GridView.ShowEditor();
}else
if (e.DialogModel != null && e.DialogModel.DialogDllName.Equals("lskj.pubadd.dll", StringComparison.OrdinalIgnoreCase) && e.DialogModel.PubDialogType == DialogType.PubAddRecord)
{
if (e.DialogModel.ReturnTag != null && e.DialogModel.ReturnTag is MyControl)
@@ -2599,7 +2618,7 @@ namespace Lskj.PubBill
{
this.AddRowToGridView(item);
}
}
}
else
{
resultSql = this.ControlObj.ReplaceControlValue(resultSql);