SVN-Revision: r292
This commit is contained in:
cyf
2025-02-27 08:32:48 +00:00
parent 185f67f173
commit 639945df2f
3 changed files with 24 additions and 56 deletions
@@ -880,17 +880,6 @@ namespace Lskj.PubAccraditation
{ {
List<GridDetailModel> details = new List<GridDetailModel>(); List<GridDetailModel> details = new List<GridDetailModel>();
if (ProcessExists)
{
DataTable table = Lskj.Data.Caches.CacheSYSConfig.Instance().AccessToContent();
foreach (DataRow item in table.Rows)
{
DataTable dtGridColumns = Lskj.Data.Caches.CacheSYSConfig.Instance().GetReportDetailColumns(item["formKey"] + "");//获取报表明细列
details.Add(new GridDetailModel(item, dtGridColumns, GridCustomColumnStruct.AuditPopupBasicInfoGridView + item["formKey"] + ""));
}
}
else
{
DataTable table = BaseAuditImpl.GetAttachTabs(this.SysModel.ModuleCode, this.SysModel.StepCode); DataTable table = BaseAuditImpl.GetAttachTabs(this.SysModel.ModuleCode, this.SysModel.StepCode);
foreach (DataRow item in table.Rows) foreach (DataRow item in table.Rows)
{ {
@@ -910,7 +899,7 @@ namespace Lskj.PubAccraditation
} }
} }
}
return details; return details;
} }
@@ -1885,6 +1874,7 @@ namespace Lskj.PubAccraditation
//frmBackSelNew.FrmBackSelectEx.StepSelection.Hide(); //frmBackSelNew.FrmBackSelectEx.StepSelection.Hide();
frmBackSelNew.SysModel = this.SysModel; frmBackSelNew.SysModel = this.SysModel;
frmBackSelNew.BillModelObj = this.BillModelObj; frmBackSelNew.BillModelObj = this.BillModelObj;
frmBackSelNew.FrmBackSelectEx.LabelAdvice.EditText = this.CheckSuggestion.EditText;
frmBackSelNew.InitControlSpecial(); frmBackSelNew.InitControlSpecial();
if (frmBackSelNew.ShowDialog() != DialogResult.OK) return -9; if (frmBackSelNew.ShowDialog() != DialogResult.OK) return -9;
this._auditAdvice = frmBackSelNew.ComfirmMsg; this._auditAdvice = frmBackSelNew.ComfirmMsg;
@@ -1894,6 +1884,7 @@ namespace Lskj.PubAccraditation
FrmBackSelect frmBackSel = new FrmBackSelect(); FrmBackSelect frmBackSel = new FrmBackSelect();
frmBackSel.SysModel = this.SysModel; frmBackSel.SysModel = this.SysModel;
frmBackSel.BillModelObj = this.BillModelObj; frmBackSel.BillModelObj = this.BillModelObj;
frmBackSel.FrmBackSelectEx.LabelAdvice.EditText = this.CheckSuggestion.EditText;
frmBackSel.InitControl(); frmBackSel.InitControl();
if (frmBackSel.ShowDialog() != DialogResult.OK) return -9; if (frmBackSel.ShowDialog() != DialogResult.OK) return -9;
this._auditAdvice = frmBackSel.ComfirmMsg; this._auditAdvice = frmBackSel.ComfirmMsg;
@@ -113,33 +113,4 @@ namespace Lskj.PubAccraditation
catch (Exception ex) catch (Exception ex)
{ {
string Message = ErrorMessage.PromptErrorMessage(ex); string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
/// <summary>
/// <para>说明:取消事件</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-01-23</para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
private void btnCancel_CallBack(object sender, EventArgs e)
{
try
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
}
}
+8 -2
View File
@@ -251,6 +251,7 @@ namespace Lskj.PubAccraditation
string[] args = defaultArgs.Concat(menuArgs).ToArray(); string[] args = defaultArgs.Concat(menuArgs).ToArray();
FrmAccraditation frm = new FrmAccraditation(); FrmAccraditation frm = new FrmAccraditation();
frm.SysModel = new DynamicPubAccraditionPopModel(args); frm.SysModel = new DynamicPubAccraditionPopModel(args);
frm.SysModel.DataCaches = new Dictionary<object, Hashtable>();
if (SystemInfo.Instance.OptimizationSpeed) frm.GetDataCaches(frm.SysModel.DataCaches); if (SystemInfo.Instance.OptimizationSpeed) frm.GetDataCaches(frm.SysModel.DataCaches);
frm.Text = this.Text; frm.Text = this.Text;
@@ -277,7 +278,8 @@ namespace Lskj.PubAccraditation
DllName = "", DllName = "",
Id = SysModel.ModuleId + "", Id = SysModel.ModuleId + "",
Name = SysModel.FormText, Name = SysModel.FormText,
BeforePage = ERPInfo.Instance.PageControl.SelectedTabPage BeforePage = ERPInfo.Instance.PageControl.SelectedTabPage,
ModuleForm = frm
}; };
frm.refreshThePage += new FrmAccraditation.RefreshThePage(refreshThePage); frm.refreshThePage += new FrmAccraditation.RefreshThePage(refreshThePage);
string guid = Guid.NewGuid().ToString(); string guid = Guid.NewGuid().ToString();
@@ -334,7 +336,10 @@ namespace Lskj.PubAccraditation
string[] menuArgs = { this.SysModel.ModuleId + "", "", dr[this.auditPanelEx.TmpPrefix + this.BaseAccraditModelObj.DefaultStepField] + "", dr[this.auditPanelEx.TmpPrefix + this.BaseAccraditModelObj.DefaultParmaryField] + "", "", "1" }; string[] menuArgs = { this.SysModel.ModuleId + "", "", dr[this.auditPanelEx.TmpPrefix + this.BaseAccraditModelObj.DefaultStepField] + "", dr[this.auditPanelEx.TmpPrefix + this.BaseAccraditModelObj.DefaultParmaryField] + "", "", "1" };
string[] args = defaultArgs.Concat(menuArgs).ToArray(); string[] args = defaultArgs.Concat(menuArgs).ToArray();
FrmAccraditation frm = new FrmAccraditation(); FrmAccraditation frm = new FrmAccraditation();
frm.SysModel = new DynamicPubAccraditionPopModel(args); frm.SysModel = new DynamicPubAccraditionPopModel(args);
frm.SysModel.DataCaches = new Dictionary<object, Hashtable>();
if (SystemInfo.Instance.OptimizationSpeed) frm.GetDataCaches(frm.SysModel.DataCaches);
frm.Text = this.Text; frm.Text = this.Text;
if (SystemInfo.Instance.PageOpen) if (SystemInfo.Instance.PageOpen)
@@ -359,7 +364,8 @@ namespace Lskj.PubAccraditation
DllName = "", DllName = "",
Id = SysModel.ModuleId + "", Id = SysModel.ModuleId + "",
Name = SysModel.FormText, Name = SysModel.FormText,
BeforePage = ERPInfo.Instance.PageControl.SelectedTabPage BeforePage = ERPInfo.Instance.PageControl.SelectedTabPage,
ModuleForm = frm
}; };
frm.refreshThePage += new FrmAccraditation.RefreshThePage(refreshThePage); frm.refreshThePage += new FrmAccraditation.RefreshThePage(refreshThePage);
string guid = Guid.NewGuid().ToString(); string guid = Guid.NewGuid().ToString();