SVN r292
SVN-Revision: r292
This commit is contained in:
@@ -880,38 +880,27 @@ namespace Lskj.PubAccraditation
|
||||
{
|
||||
List<GridDetailModel> details = new List<GridDetailModel>();
|
||||
|
||||
if (ProcessExists)
|
||||
DataTable table = BaseAuditImpl.GetAttachTabs(this.SysModel.ModuleCode, this.SysModel.StepCode);
|
||||
foreach (DataRow item in table.Rows)
|
||||
{
|
||||
DataTable table = Lskj.Data.Caches.CacheSYSConfig.Instance().AccessToContent();
|
||||
foreach (DataRow item in table.Rows)
|
||||
if (table.Columns.Contains("privilegeoper"))
|
||||
{
|
||||
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);
|
||||
foreach (DataRow item in table.Rows)
|
||||
{
|
||||
if (table.Columns.Contains("privilegeoper"))
|
||||
{
|
||||
string privilegeoper = item["privilegeoper"] + "";//配置的权限人员
|
||||
if (string.IsNullOrWhiteSpace(privilegeoper) || privilegeoper.Split(',').Contains(ERPInfo.Instance.UserName))
|
||||
{
|
||||
DataTable dtGridColumns = BaseAuditImpl.GetBottomBasicInformation(item["formKey"] + "");
|
||||
details.Add(new GridDetailModel(item, dtGridColumns, GridCustomColumnStruct.AuditPopupBasicInfoGridView + item["formKey"] + ""));
|
||||
}
|
||||
}
|
||||
else
|
||||
string privilegeoper = item["privilegeoper"] + "";//配置的权限人员
|
||||
if (string.IsNullOrWhiteSpace(privilegeoper) || privilegeoper.Split(',').Contains(ERPInfo.Instance.UserName))
|
||||
{
|
||||
DataTable dtGridColumns = BaseAuditImpl.GetBottomBasicInformation(item["formKey"] + "");
|
||||
details.Add(new GridDetailModel(item, dtGridColumns, GridCustomColumnStruct.AuditPopupBasicInfoGridView + item["formKey"] + ""));
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
DataTable dtGridColumns = BaseAuditImpl.GetBottomBasicInformation(item["formKey"] + "");
|
||||
details.Add(new GridDetailModel(item, dtGridColumns, GridCustomColumnStruct.AuditPopupBasicInfoGridView + item["formKey"] + ""));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return details;
|
||||
}
|
||||
#endregion
|
||||
@@ -1885,6 +1874,7 @@ namespace Lskj.PubAccraditation
|
||||
//frmBackSelNew.FrmBackSelectEx.StepSelection.Hide();
|
||||
frmBackSelNew.SysModel = this.SysModel;
|
||||
frmBackSelNew.BillModelObj = this.BillModelObj;
|
||||
frmBackSelNew.FrmBackSelectEx.LabelAdvice.EditText = this.CheckSuggestion.EditText;
|
||||
frmBackSelNew.InitControlSpecial();
|
||||
if (frmBackSelNew.ShowDialog() != DialogResult.OK) return -9;
|
||||
this._auditAdvice = frmBackSelNew.ComfirmMsg;
|
||||
@@ -1894,6 +1884,7 @@ namespace Lskj.PubAccraditation
|
||||
FrmBackSelect frmBackSel = new FrmBackSelect();
|
||||
frmBackSel.SysModel = this.SysModel;
|
||||
frmBackSel.BillModelObj = this.BillModelObj;
|
||||
frmBackSel.FrmBackSelectEx.LabelAdvice.EditText = this.CheckSuggestion.EditText;
|
||||
frmBackSel.InitControl();
|
||||
if (frmBackSel.ShowDialog() != DialogResult.OK) return -9;
|
||||
this._auditAdvice = frmBackSel.ComfirmMsg;
|
||||
@@ -2787,7 +2778,7 @@ namespace Lskj.PubAccraditation
|
||||
StringBuilder fields = new StringBuilder();
|
||||
StringBuilder values = new StringBuilder();
|
||||
string detailSql = @"insert into " + BillModelObj.DetailTable + "_temp" + "({0}) values({1})";
|
||||
|
||||
|
||||
fields.Append("sysstr,");
|
||||
values.Append("'" + guid + "',");
|
||||
foreach (DataColumn item in detailTable.Columns)
|
||||
|
||||
Reference in New Issue
Block a user