diff --git a/DataBase/版本日志/SGGLDB_V2023-03-07.sql b/DataBase/版本日志/SGGLDB_V2023-03-07.sql new file mode 100644 index 00000000..03b1e667 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-03-07.sql @@ -0,0 +1,2 @@ +alter table Plan_MainPlan add FilePath varchar(200) +alter table Plan_SubPlan add FilePath varchar(200) \ No newline at end of file diff --git a/SGGL/BLL/CQMS/Plan/CQMS_MainPlanService.cs b/SGGL/BLL/CQMS/Plan/CQMS_MainPlanService.cs index 0788d9f2..e04725c7 100644 --- a/SGGL/BLL/CQMS/Plan/CQMS_MainPlanService.cs +++ b/SGGL/BLL/CQMS/Plan/CQMS_MainPlanService.cs @@ -30,6 +30,7 @@ namespace BLL newMainPlan.State = MainPlan.State; newMainPlan.CompileMan = MainPlan.CompileMan; newMainPlan.CompileDate = MainPlan.CompileDate; + newMainPlan.FilePath = MainPlan.FilePath; db.Plan_MainPlan.InsertOnSubmit(newMainPlan); db.SubmitChanges(); } @@ -47,6 +48,7 @@ namespace BLL newMainPlan.PlanCode = MainPlan.PlanCode; newMainPlan.FileName = MainPlan.FileName; newMainPlan.State = MainPlan.State; + newMainPlan.FilePath = MainPlan.FilePath; db.SubmitChanges(); } } diff --git a/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs b/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs index bd14cf0e..18508b10 100644 --- a/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs +++ b/SGGL/BLL/CQMS/Plan/CQMS_SubPlanService.cs @@ -60,6 +60,7 @@ namespace BLL newSubPlan.CompileDate = SubPlan.CompileDate; newSubPlan.State = SubPlan.State; newSubPlan.Edition = SubPlan.Edition; + newSubPlan.FilePath=SubPlan.FilePath; db.Plan_SubPlan.InsertOnSubmit(newSubPlan); db.SubmitChanges(); } @@ -78,6 +79,7 @@ namespace BLL newSubPlan.CNProfessionalCodes = SubPlan.CNProfessionalCodes; newSubPlan.State = SubPlan.State; newSubPlan.Edition = SubPlan.Edition; + newSubPlan.FilePath = SubPlan.FilePath; db.SubmitChanges(); } diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 6c00c05f..a510325d 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -4093,6 +4093,10 @@ /// 质量共检通知单的虚拟路径 /// public const string SpotCheckTemplateUrl = "File\\Word\\CQMS\\Check\\质量共检通知单.doc"; + /// + /// 项目施工质量计划模板 + /// + public const string CQMSPlanTemplateUrl = "File\\Word\\CQMS\\Solution\\项目施工质量计划模板.doc"; #endregion #endregion diff --git a/SGGL/FineUIPro.Web/AttachFile/EditOffice.aspx.cs b/SGGL/FineUIPro.Web/AttachFile/EditOffice.aspx.cs index 988be538..f1f2f823 100644 --- a/SGGL/FineUIPro.Web/AttachFile/EditOffice.aspx.cs +++ b/SGGL/FineUIPro.Web/AttachFile/EditOffice.aspx.cs @@ -1,4 +1,5 @@ -using FineUIPro; +using BLL; +using FineUIPro; using System; using System.Collections.Generic; using System.Linq; @@ -14,12 +15,26 @@ namespace WordEdit public string url; - protected void Page_Load(object sender, EventArgs e) + protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { + + string cmd= Request.QueryString["cmd"]; + var a = cmd.Split('|'); + if (a[1] == "CQMSMainPlan") + { + var model = BLL.CQMS_MainPlanService.GetMainPlanByMainPlanId(a[0]); + string filepath = model.FilePath; + url = Funs.SGGLUrl + filepath; + } + else if (a[1]== "CQMSSubPlan") + { + var model = BLL.CQMS_SubPlanService.GetSubPlanBySubPlanId(a[0]); + string filepath = model.FilePath; + url = Funs.SGGLUrl + filepath; + } - url = "http://localhost:8899/File/Word/集团公司安全监督检查管理办法.doc"; } diff --git a/SGGL/FineUIPro.Web/AttachFile/IndexOffice.aspx b/SGGL/FineUIPro.Web/AttachFile/IndexOffice.aspx index b7971932..0e4c5a28 100644 --- a/SGGL/FineUIPro.Web/AttachFile/IndexOffice.aspx +++ b/SGGL/FineUIPro.Web/AttachFile/IndexOffice.aspx @@ -20,6 +20,11 @@ return null; } + function custom_close() { + window.opener = null; + window.open('', '_self'); + window.close();(strHello); + } function openhtml(cmd) { //判断插件是否安装 datatochildcmd = cmd; @@ -54,7 +59,7 @@ //在父页面定义的跨浏览器插件应用程序关闭事件响应方法,且方法名不能自定义,必须是ntkoCloseEvent function ntkoCloseEvent() { - if (CLOSEVENT) alert("跨浏览器插件应用程序窗口已关闭!"); + if (CLOSEVENT) { custom_close(); } } //在父页面固定OnDataParentText方法名来获取子页面传过来的数据 diff --git a/SGGL/FineUIPro.Web/AttachFile/exeindex.html b/SGGL/FineUIPro.Web/AttachFile/exeindex.html new file mode 100644 index 00000000..cefa77b4 --- /dev/null +++ b/SGGL/FineUIPro.Web/AttachFile/exeindex.html @@ -0,0 +1,51 @@ + + + + + 跨浏览器插件检测 + + + +
+
+ ! +
+
+ 本机尚未安装跨浏览器插件。 +
+
+
+
+ 点击下载安装插件 +
+ +
+ + + + diff --git a/SGGL/FineUIPro.Web/AttachFile/officecontrol/ntko.js b/SGGL/FineUIPro.Web/AttachFile/officecontrol/ntko.js index dd98acd5..ebd2fc8c 100644 --- a/SGGL/FineUIPro.Web/AttachFile/officecontrol/ntko.js +++ b/SGGL/FineUIPro.Web/AttachFile/officecontrol/ntko.js @@ -1,5 +1,6 @@ var ntko;//控件对象 var savecode = "save.aspx";//保存文档程序程序 +var fileName = ""; window.onbeforeunload=function(e){ ntkocloseparentpage(); } @@ -16,8 +17,8 @@ function init(cmd) { ntko.AddDocTypePlugin(".pdf","PDF.NtkoDocument","4.0.1.0","officecontrol/ntkooledocallx64.cab",51,true); } if (cmd != "") { - alert(cmd); ntko.OpenFromURL(cmd); + fileName = cmd; } /*if (cmd == 1) { @@ -164,7 +165,7 @@ function erropen(retHTML) { } //保存office文档 function saveFileToUrl() { - var fileName ="ntkocreatnew.docx" + /* if (fileName.length == 0) { alert("请输入文件标题!"); document.all("filetitle").focus(); return false; }//判断文件标题输入域 var result, filedot; @@ -202,10 +203,11 @@ function saveFileToUrl() { fileType = "unkownfiletype"; filedot = ".doc"; }*/ + retHTML = ntko.saveToURL("save.aspx",//提交到的url地址 "EDITFILE",//文件域的id,类似 diff --git a/SGGL/FineUIPro.Web/AttachFile/save.aspx.cs b/SGGL/FineUIPro.Web/AttachFile/save.aspx.cs new file mode 100644 index 00000000..9be0f1bd --- /dev/null +++ b/SGGL/FineUIPro.Web/AttachFile/save.aspx.cs @@ -0,0 +1,82 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WordEdit +{ + public partial class save : System.Web.UI.Page + { + + //参数savetype定义要另存的文档格式office,html,pdf + //参数filetype定义要保存的文档的文件内型 + public string savetype, filetype, fid, title, fother, fname, fname1; + + //定义文件上传路径目录 + public string filepath, htmlpath, pdfpath, attachpath, delcount; + + protected void Page_Load(object sender, EventArgs e) + { + //Response.Write("ok"); + //Response.End(); + fid = Request.Form["fileid"];//获取文件ID + fname = Request.Form["filename"];//获取已有文件的名称 + title = Request.Form["filetitle"];//获取文件的标题 + savetype = Request.Form["savetype"];//获取文件另存为格式类型 + filetype = Request.Form["filetype"];//获取当前文件的文件格式 + fother = Request.Form["fileother"]; + //filepath = db.getofficepath(); + //htmlpath = db.gethtmlpath(); + //pdfpath = db.getpdfpath(); + //attachpath = db.getattachpath(); + filepath = "D:\\我的代码\\在线文档编辑\\WordEdit\\WordEdit"; + htmlpath = ""; + pdfpath = ""; + attachpath = ""; + //根据保存类型调用相应处理方法 + switch (savetype) + { + case "1": + saveoffice(); + break; + + default: + saveoffice(); + break; + } + } + + //保存文档为office + public void saveoffice() + { + string uploadoffiepath = Server.MapPath("~/");//上传文件的路径 + // string uploadoffiepath = filepath;//上传文件的路径 + string attpath = Server.MapPath(attachpath);//上传附件文件路径 + + System.Web.HttpFileCollection uploadFiles = Request.Files; + System.Web.HttpPostedFile theFile; + theFile = uploadFiles[0]; + if (uploadFiles.GetKey(0).ToUpper() == "EDITFILE")//上传文档控件中的文档 + { + + /* string time = System.DateTime.Now.ToString(); + if (fname == "" || fname == null) + { + fname = time + "." + theFile.FileName.Substring(theFile.FileName.LastIndexOf('\\') + 1); + } + fname = fname.Replace(":", ".");//上传文件到磁盘,文件名中不允许带:符号*/ + // theFile.SaveAs(uploadoffiepath + @"\" + fname); + var path = theFile.FileName.Replace(Funs.SGGLUrl, ""); + theFile.SaveAs(uploadoffiepath + path); + + } + + } + + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/AttachFile/save.aspx.designer.cs b/SGGL/FineUIPro.Web/AttachFile/save.aspx.designer.cs new file mode 100644 index 00000000..8031e1b7 --- /dev/null +++ b/SGGL/FineUIPro.Web/AttachFile/save.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace WordEdit +{ + + + public partial class save + { + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlan.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlan.aspx.cs index f1f69c22..75497856 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlan.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlan.aspx.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.IO; using System.Linq; using System.Threading.Tasks; @@ -240,6 +241,11 @@ namespace FineUIPro.Web.CQMS.Plan } string id = Grid1.SelectedRowID; var ins = BLL.CQMS_MainPlanService.GetMainPlanByMainPlanId(id); + if (File.Exists(Funs.RootPath+ins.FilePath)) + { + File.Delete(Funs.RootPath + ins.FilePath); + + } ////删除附件表 BLL.CommonService.DeleteAttachFileById(id); BLL.CQMS_MaterialTestService.DeleteMaterialTestById(id); diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx index 8acfe3be..e9804240 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx @@ -20,7 +20,7 @@
- + @@ -57,6 +57,9 @@ + + + diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.cs index 75e1bb4c..0a646cbd 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Linq; using System.Web.UI.WebControls; using AspNet = System.Web.UI.WebControls; +using System.IO; namespace FineUIPro.Web.CQMS.Plan { @@ -46,6 +47,7 @@ namespace FineUIPro.Web.CQMS.Plan { if (!IsPostBack) { + MainPlanId = Request.Params["MainPlanId"]; this.drpHandleType.DataTextField = "Text"; this.drpHandleType.DataValueField = "Value"; @@ -62,6 +64,7 @@ namespace FineUIPro.Web.CQMS.Plan hdId.Text = this.MainPlanId; txtPlanCode.Text = MainPlan.PlanCode; txtFileName.Text = MainPlan.FileName; + List list = BLL.CQMS_MainPlanApproveService.GetAudit3PersonIds(MainPlanId); if (list.Count > 0) { @@ -107,6 +110,7 @@ namespace FineUIPro.Web.CQMS.Plan this.btnSubmit.Visible = false; this.next.Hidden = true; } + drpHandleType_SelectedIndexChanged(null, null); } else @@ -323,6 +327,7 @@ namespace FineUIPro.Web.CQMS.Plan MainPlan.ProjectId = this.CurrUser.LoginProjectId; MainPlan.PlanCode = this.txtPlanCode.Text.Trim(); MainPlan.FileName = this.txtFileName.Text.Trim(); + MainPlan.FilePath = "FileUpload/CQMSMainPlan/" + txtPlanCode.Text + ".doc"; if (saveType == "submit") { MainPlan.State = this.drpHandleType.SelectedValue; @@ -373,6 +378,7 @@ namespace FineUIPro.Web.CQMS.Plan if (string.IsNullOrEmpty(hdId.Text)) { MainPlan.MainPlanId = SQLHelper.GetNewID(); + MainPlanId = MainPlan.MainPlanId; } else { @@ -408,8 +414,11 @@ namespace FineUIPro.Web.CQMS.Plan } } LogService.AddSys_Log(CurrUser, MainPlan.PlanCode, MainPlan.MainPlanId, Const.MainPlanMenuId, "修改总包施工质量计划"); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + if (saveType== "submit") + { + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } } /// /// 表格数据验证 @@ -464,5 +473,70 @@ namespace FineUIPro.Web.CQMS.Plan } return str; } + protected void PageManager1_CustomEvent(object sender, CustomEventArgs e) + { + string rootPath = Funs.RootPath; + var model = BLL.CQMS_MainPlanService.GetMainPlanByMainPlanId(MainPlanId); + string filepath = model.FilePath; + string path = rootPath + filepath; + DirectoryInfo pathInfo = new DirectoryInfo(path); + string newPath = pathInfo.Parent.FullName; + if (!Directory.Exists(newPath)) + { + Directory.CreateDirectory(newPath); + } + if (e.EventArgument == "Yes") + { + if (!File.Exists(path)) + { + File.Copy(rootPath + Const.CQMSPlanTemplateUrl, path); + + } + } + else if (e.EventArgument == "No") + { + if (!File.Exists(path)) + { + var stream= File.Create(path); + stream.Close(); + } + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/IndexOffice.aspx?cmd={0}|CQMSMainPlan", MainPlanId, "查看 -"))); + PageContext.RegisterStartupScript(WindowAtt.GetHideReference()); + } + protected void btnEditWord_Click(object sender, EventArgs e) + { + + if (!string.IsNullOrEmpty(MainPlanId)) + { + Model.Plan_MainPlan MainPlan = BLL.CQMS_MainPlanService.GetMainPlanByMainPlanId(MainPlanId); + if (!File.Exists(Funs.RootPath + MainPlan.FilePath)) + { + + PageContext.RegisterStartupScript(Confirm.GetShowReference("是否使用公司模板?", + String.Empty, + MessageBoxIcon.Question, + PageManager1.GetCustomEventReference("Yes"), // 第一个参数 false 用来指定当前不是AJAX请求 + PageManager1.GetCustomEventReference("No"))); + } + else + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/IndexOffice.aspx?cmd={0}|CQMSMainPlan", MainPlanId, "查看 -"))); + PageContext.RegisterStartupScript(WindowAtt.GetHideReference()); + + } + } + else + { + SaveMainPlan("save"); + + PageContext.RegisterStartupScript(Confirm.GetShowReference("是否使用公司模板?", + String.Empty, + MessageBoxIcon.Question, + PageManager1.GetCustomEventReference("Yes"), // 第一个参数 false 用来指定当前不是AJAX请求 + PageManager1.GetCustomEventReference("No"))); + } + //PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/IndexOffice.aspx?cmd={0}", filepath, "查看 -"))); + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.designer.cs index 2956ac18..1ba9e42b 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Plan/MainPlanEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.CQMS.Plan { - - - public partial class MainPlanEdit { - +namespace FineUIPro.Web.CQMS.Plan +{ + + + public partial class MainPlanEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// ContentPanel2 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ContentPanel ContentPanel2; - + /// /// Form2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form2; - + /// /// txtPlanCode 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPlanCode; - + /// /// txtFileName 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtFileName; - + /// /// Audit 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow Audit; - + /// /// drpPerson 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpPerson; - + /// /// Panel1 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// imgBtnFile 控件。 /// @@ -110,7 +112,16 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button imgBtnFile; - + + /// + /// btnEditWord 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEditWord; + /// /// next 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow next; - + /// /// ContentPanel4 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ContentPanel ContentPanel4; - + /// /// Form6 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form6; - + /// /// rblIsAgree 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow rblIsAgree; - + /// /// Panel2 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel2; - + /// /// RadioButtonList1 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RadioButtonList RadioButtonList1; - + /// /// drpHandleType 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpHandleType; - + /// /// drpHandleMan 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpHandleMan; - + /// /// HideOptions 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow HideOptions; - + /// /// txtOpinions 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtOpinions; - + /// /// plApprove2 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow plApprove2; - + /// /// gvApprove 控件。 /// @@ -218,7 +229,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid gvApprove; - + /// /// Label1 控件。 /// @@ -227,7 +238,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label1; - + /// /// lbtype 控件。 /// @@ -236,7 +247,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lbtype; - + /// /// Toolbar1 控件。 /// @@ -245,7 +256,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// lbTemp 控件。 /// @@ -254,7 +265,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbTemp; - + /// /// ToolbarFill1 控件。 /// @@ -263,7 +274,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnSave 控件。 /// @@ -272,7 +283,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnSubmit 控件。 /// @@ -281,7 +292,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSubmit; - + /// /// hdId 控件。 /// @@ -290,7 +301,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdId; - + /// /// hdAttachUrl 控件。 /// @@ -299,7 +310,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdAttachUrl; - + /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlan.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlan.aspx.cs index b94fac42..df0ea921 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlan.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlan.aspx.cs @@ -5,6 +5,7 @@ using System.Data; using System.Data.SqlClient; using System.IO; using System.Linq; +using System.Net; namespace FineUIPro.Web.CQMS.Plan { @@ -291,6 +292,11 @@ namespace FineUIPro.Web.CQMS.Plan if (CommonService.GetAllButtonPowerList(CurrUser.LoginProjectId, CurrUser.PersonId, Const.SubPlanMenuId, Const.BtnDelete)) { var subPlan = CQMS_SubPlanService.GetSubPlanBySubPlanId(id); + if (File.Exists(Funs.RootPath + subPlan.FilePath)) + { + File.Delete(Funs.RootPath + subPlan.FilePath); + + } CQMS_SubPlanApproveService.DeleteSubPlanApprovesBySubPlanId(id); CQMS_SubPlanService.DeleteSubPlan(id); LogService.AddSys_Log(CurrUser, subPlan.Code, id, Const.SubPlanMenuId, "删除分包施工质量计划"); diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx index 8040cbbc..eeec65db 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx @@ -29,7 +29,7 @@ - + @@ -117,6 +117,8 @@ + + diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.cs index 8e6a9f17..870fd38a 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.cs @@ -1,6 +1,8 @@ using BLL; +using FineUIPro.Web.ZHGL.Plan; using System; using System.Collections.Generic; +using System.IO; using System.Linq; namespace FineUIPro.Web.CQMS.Plan @@ -74,6 +76,7 @@ namespace FineUIPro.Web.CQMS.Plan HFSubPlanId.Text = SubPlanId; Model.Plan_SubPlan SubPlan = CQMS_SubPlanService.GetSubPlanBySubPlanId(SubPlanId); txtCode.Text = SubPlan.Code; + if (!string.IsNullOrEmpty(SubPlan.UnitId)) { drpUnit.SelectedValue = SubPlan.UnitId; @@ -166,6 +169,7 @@ namespace FineUIPro.Web.CQMS.Plan } else { + agree.Hidden = true; txtEdition.Text = "0"; options.Hidden = true; @@ -483,6 +487,8 @@ namespace FineUIPro.Web.CQMS.Plan SubPlan.UnitId = drpUnit.SelectedValue; } SubPlan.PlanName = txtPlanName.Text.Trim(); + SubPlan.FilePath = "FileUpload/CQMSSupPlan/" + SubPlan.Code + ".doc"; + if (!string.IsNullOrEmpty(txtCompileDate.Text.Trim())) { SubPlan.CompileDate = Convert.ToDateTime(txtCompileDate.Text.Trim()); @@ -504,18 +510,23 @@ namespace FineUIPro.Web.CQMS.Plan { SubPlan.State = Const.SubPlan_Compile; } + SubPlan.CompileMan = CurrUser.PersonId; + SubPlan.Edition = Convert.ToInt32(txtEdition.Text); + if (!string.IsNullOrEmpty(HFSubPlanId.Text)) { SubPlan.SubPlanId = HFSubPlanId.Text; + SubPlanId = SubPlan.SubPlanId; + CQMS_SubPlanService.UpdateSubPlan(SubPlan); } else { SubPlan.SubPlanId = SQLHelper.GetNewID(typeof(Model.Plan_SubPlan)); - } - SubPlan.CompileMan = CurrUser.PersonId; - SubPlan.Edition = Convert.ToInt32(txtEdition.Text); + SubPlanId = SubPlan.SubPlanId; + CQMS_SubPlanService.AddSubPlan(SubPlan); - CQMS_SubPlanService.AddSubPlan(SubPlan); + } + if (saveType == "submit") { Model.Plan_SubPlanApprove approve1 = new Model.Plan_SubPlanApprove(); @@ -781,5 +792,70 @@ namespace FineUIPro.Web.CQMS.Plan String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/Solution&menuId={2}", -1, fileId, Const.SubPlanMenuId))); } + protected void PageManager1_CustomEvent(object sender, CustomEventArgs e) + { + string rootPath = Funs.RootPath; + var model = BLL.CQMS_SubPlanService.GetSubPlanBySubPlanId(SubPlanId); + string filepath = model.FilePath; + string path = rootPath + filepath; + DirectoryInfo pathInfo = new DirectoryInfo(path); + string newPath = pathInfo.Parent.FullName; + if (!Directory.Exists(newPath)) + { + Directory.CreateDirectory(newPath); + } + if (e.EventArgument == "Yes") + { + if (!File.Exists(path)) + { + File.Copy(rootPath + Const.CQMSPlanTemplateUrl, path); + + } + } + else if (e.EventArgument == "No") + { + if (!File.Exists(path)) + { + var stream = File.Create(path); + stream.Close(); + } + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/IndexOffice.aspx?cmd={0}|CQMSSubPlan", SubPlanId, "查看 -"))); + PageContext.RegisterStartupScript(WindowAtt.GetHideReference()); + } + protected void btnEditWord_Click(object sender, EventArgs e) + { + + if (!string.IsNullOrEmpty(SubPlanId)) + { + var model = BLL.CQMS_SubPlanService.GetSubPlanBySubPlanId(SubPlanId); + if (!File.Exists(Funs.RootPath + model.FilePath)) + { + + PageContext.RegisterStartupScript(Confirm.GetShowReference("是否使用公司模板?", + String.Empty, + MessageBoxIcon.Question, + PageManager1.GetCustomEventReference("Yes"), // 第一个参数 false 用来指定当前不是AJAX请求 + PageManager1.GetCustomEventReference("No"))); + } + else + { + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/IndexOffice.aspx?cmd={0}|CQMSSubPlan", SubPlanId, "查看 -"))); + PageContext.RegisterStartupScript(WindowAtt.GetHideReference()); + + } + } + else + { + SaveSubPlan("save"); + + PageContext.RegisterStartupScript(Confirm.GetShowReference("是否使用公司模板?", + String.Empty, + MessageBoxIcon.Question, + PageManager1.GetCustomEventReference("Yes"), // 第一个参数 false 用来指定当前不是AJAX请求 + PageManager1.GetCustomEventReference("No"))); + } + //PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/IndexOffice.aspx?cmd={0}", filepath, "查看 -"))); + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.designer.cs index eccccf0f..8995e4e1 100644 --- a/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Plan/SubPlanEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.CQMS.Plan { - - - public partial class SubPlanEdit { - +namespace FineUIPro.Web.CQMS.Plan +{ + + + public partial class SubPlanEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// ContentPanel2 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ContentPanel ContentPanel2; - + /// /// Form2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form Form2; - + /// /// txtProjectName 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectName; - + /// /// txtCode 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtCode; - + /// /// drpUnit 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnit; - + /// /// txtPlanName 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtPlanName; - + /// /// txtCompileDate 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCompileDate; - + /// /// txtEdition 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox txtEdition; - + /// /// txtCNProfessional 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownBox txtCNProfessional; - + /// /// gvCNPro 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid gvCNPro; - + /// /// txtUnitWork 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownBox txtUnitWork; - + /// /// gvUnitWork 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid gvUnitWork; - + /// /// imgBtnFile 控件。 /// @@ -155,7 +157,16 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button imgBtnFile; - + + /// + /// btnEditWord 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEditWord; + /// /// Panel2 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel2; - + /// /// Panel1 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// trOne 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree trOne; - + /// /// Panel3 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel3; - + /// /// trTwo 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree trTwo; - + /// /// Panel6 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel6; - + /// /// trFive 控件。 /// @@ -218,7 +229,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree trFive; - + /// /// agree 控件。 /// @@ -227,7 +238,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow agree; - + /// /// rblIsAgree 控件。 /// @@ -236,7 +247,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RadioButtonList rblIsAgree; - + /// /// options 控件。 /// @@ -245,7 +256,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow options; - + /// /// txtOptions 控件。 /// @@ -254,7 +265,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextArea txtOptions; - + /// /// optio 控件。 /// @@ -263,7 +274,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow optio; - + /// /// btnapprove 控件。 /// @@ -272,7 +283,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnapprove; - + /// /// plApprove2 控件。 /// @@ -281,7 +292,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.FormRow plApprove2; - + /// /// gvApprove 控件。 /// @@ -290,7 +301,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid gvApprove; - + /// /// Label1 控件。 /// @@ -299,7 +310,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label1; - + /// /// Label3 控件。 /// @@ -308,7 +319,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label3; - + /// /// Label2 控件。 /// @@ -317,7 +328,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label2; - + /// /// Toolbar1 控件。 /// @@ -326,7 +337,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// ToolbarFill1 控件。 /// @@ -335,7 +346,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// HFSubPlanId 控件。 /// @@ -344,7 +355,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField HFSubPlanId; - + /// /// btnSave 控件。 /// @@ -353,7 +364,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnSubmit 控件。 /// @@ -362,7 +373,7 @@ namespace FineUIPro.Web.CQMS.Plan { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSubmit; - + /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/File/Word/CQMS/Solution/项目施工质量计划模板.doc b/SGGL/FineUIPro.Web/File/Word/CQMS/Solution/项目施工质量计划模板.doc new file mode 100644 index 00000000..295e4646 Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Word/CQMS/Solution/项目施工质量计划模板.doc differ diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index c52068b2..0945f156 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -210,6 +210,7 @@ + @@ -5627,6 +5628,13 @@ player.aspx + + save.aspx + ASPXCodeBehind + + + save.aspx + uploader.aspx ASPXCodeBehind diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index ce8dcb0b..bf3dc745 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -73403,7 +73403,7 @@ namespace Model OnCreated(); } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(15) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] public string MaterialCode { get @@ -73507,7 +73507,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialDef", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialDef", DbType="NVarChar(3000)")] public string MaterialDef { get @@ -78097,7 +78097,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(15)")] public string MaterialCode { get @@ -82445,7 +82445,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(1000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")] public string CanWelderCode { get @@ -121814,7 +121814,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(100)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(50)")] public string MaterialName { get @@ -121834,7 +121834,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecificationAndModel", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecificationAndModel", DbType="NVarChar(50)")] public string SpecificationAndModel { get @@ -121854,7 +121854,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(100)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")] public string MaterialCode { get @@ -121874,7 +121874,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(100)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")] public string Material { get @@ -157703,6 +157703,8 @@ namespace Model private string _State; + private string _FilePath; + private EntityRef _Base_Project; private EntitySet _Plan_MainPlanApprove; @@ -157725,6 +157727,8 @@ namespace Model partial void OnCompileDateChanged(); partial void OnStateChanging(string value); partial void OnStateChanged(); + partial void OnFilePathChanging(string value); + partial void OnFilePathChanged(); #endregion public Plan_MainPlan() @@ -157878,6 +157882,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FilePath", DbType="VarChar(200)")] + public string FilePath + { + get + { + return this._FilePath; + } + set + { + if ((this._FilePath != value)) + { + this.OnFilePathChanging(value); + this.SendPropertyChanging(); + this._FilePath = value; + this.SendPropertyChanged("FilePath"); + this.OnFilePathChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Plan_MainPlan_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -158233,6 +158257,8 @@ namespace Model private System.Nullable _Edition; + private string _FilePath; + private EntityRef _Base_Project; private EntityRef _Base_Unit; @@ -158265,6 +158291,8 @@ namespace Model partial void OnStateChanged(); partial void OnEditionChanging(System.Nullable value); partial void OnEditionChanged(); + partial void OnFilePathChanging(string value); + partial void OnFilePathChanged(); #endregion public Plan_SubPlan() @@ -158503,6 +158531,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FilePath", DbType="VarChar(200)")] + public string FilePath + { + get + { + return this._FilePath; + } + set + { + if ((this._FilePath != value)) + { + this.OnFilePathChanging(value); + this.SendPropertyChanging(); + this._FilePath = value; + this.SendPropertyChanged("FilePath"); + this.OnFilePathChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Plan_SubPlan_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -234659,7 +234707,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(1000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")] public string CanWelderCode { get