refactor(cqms): 整理检查模块并迁移 WBS 服务

清理旧检查页面、服务和接口,补充 WBS 检查服务及数据库脚本,同步工程引用与菜单配置,收敛 CQMS 检查功能的代码组织。
This commit is contained in:
2026-09-20 15:49:27 +08:00
parent 8efe030f47
commit dc19b6d6b6
204 changed files with 319 additions and 59884 deletions
@@ -21,12 +21,6 @@ namespace WordEdit
string filepath = model.FilePath;
url = Funs.SGGLUrl + filepath;
}
else if (a[1] == "CQMS_Check_MaterialAcceptance")
{
var model = BLL.CheckMaterialacceptanceService.GetCheck_MaterialAcceptanceById(a[0]);
string filepath = model.FilePath;
url = Funs.SGGLUrl + filepath;
}
}
@@ -73,17 +73,6 @@ namespace FineUIPro.Web.AttachFile
ViewState["Source"] = value;
}
}
public string JointCheck
{
get
{
return (string)ViewState["JointCheck"];
}
set
{
ViewState["JointCheck"] = value;
}
}
#endregion
#region 加载页面
@@ -110,7 +99,6 @@ namespace FineUIPro.Web.AttachFile
this.ParamStr = sessionName + "|" + AttachPath;
this.MenuId = Request.QueryString["menuId"];
this.Type = Request.Params["type"];
JointCheck = Request.Params["JointCheck"];//是否共检页面
Source = Request.QueryString["source"];//如果等于1则是文件柜
//Request.QueryString["type"]; ////类型:0时是上传资源页面,附件权限不需要判断 -1时只查看权限 -2查看集团公司
this.GetButtonPower();
@@ -134,17 +122,7 @@ namespace FineUIPro.Web.AttachFile
{
if (Source == "1") //文件柜
{
if (!string.IsNullOrWhiteSpace(JointCheck))
{
if (JointCheck.Equals("JointCheck"))
{
Grid1.DataSource = JointData();
}
}
else
{
Grid1.DataSource = SourceData();
}
Grid1.DataSource = SourceData();
}
else if (!string.IsNullOrEmpty(Request.Params["ConstructionLog"]))
{
@@ -159,85 +137,6 @@ namespace FineUIPro.Web.AttachFile
#endregion
private JArray JointData()
{
if (Session[sessionName] == null && !string.IsNullOrEmpty(ToKeyId))
{
//Session[sessionName] = new JArray();
StringBuilder stxt = new StringBuilder();
var jointChecks = JointCheckDetailService.GetViewLists(ToKeyId);
var liststr = new List<string>();
if (jointChecks.Count > 0)
{
foreach (var itemjointChecks in jointChecks)
{
liststr.Add(itemjointChecks.JointCheckDetailId);
liststr.Add(itemjointChecks.JointCheckDetailId + "r");
}
}
var sourlist = AttachFileService.GetfileDetaillist(liststr, MenuId);
if (sourlist.Count > 0)
{
stxt.Append("[");
foreach (var sour in sourlist)
{
int index = sourlist.IndexOf(sour);
string str = string.Empty;
if (sour != null)
{
string url = sour.AttachUrl.Replace('\\', '/');
List<string> list = Funs.GetStrListByStr(url, ',');
if (list.Count() > 0)
{
int i = 0;
foreach (var item in list)
{
string atturl = Funs.RootPath + item.Replace(';', ' ').Trim();
if (File.Exists(atturl))
{
i += 1;
break;
}
}
if (i > 0)
{
if (sourlist.Count == 1)
{
str = sour.AttachSource.Substring(0, sour.AttachSource.Length - 1);
str = str.Substring(1);
}
else if (sourlist.Count > 1)
{
var st = sour.AttachSource.Substring(0, sour.AttachSource.Length - 1);
st = st.Substring(1);
if (sourlist.Count - 1 != index)
{
st += ",";
}
str += st;
}
}
}
stxt.Append(str);
}
}
stxt.Append("]");
Session[sessionName] = JArray.Parse(stxt.ToString());
}
}
return (JArray)Session[sessionName];
}
/// <summary>
/// 文件柜专用
/// </summary>