2023-03-07 11:24:59 +08:00
|
|
|
|
using BLL;
|
2023-03-03 10:46:14 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WordEdit
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class EditOffice : System.Web.UI.Page
|
|
|
|
|
|
{
|
|
|
|
|
|
public string url;
|
|
|
|
|
|
|
2025-10-10 14:33:21 +08:00
|
|
|
|
|
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
2023-03-03 10:46:14 +08:00
|
|
|
|
{
|
2025-10-10 14:33:21 +08:00
|
|
|
|
if (!IsPostBack)
|
2023-03-03 10:46:14 +08:00
|
|
|
|
{
|
2025-10-10 14:33:21 +08:00
|
|
|
|
|
|
|
|
|
|
string cmd = Request.QueryString["cmd"];
|
2023-03-07 11:24:59 +08:00
|
|
|
|
var a = cmd.Split('|');
|
|
|
|
|
|
if (a[1] == "CQMSMainPlan")
|
|
|
|
|
|
{
|
|
|
|
|
|
var model = BLL.CQMS_MainPlanService.GetMainPlanByMainPlanId(a[0]);
|
|
|
|
|
|
string filepath = model.FilePath;
|
|
|
|
|
|
url = Funs.SGGLUrl + filepath;
|
|
|
|
|
|
}
|
2025-10-10 14:33:21 +08:00
|
|
|
|
else if (a[1] == "CQMSSubPlan")
|
2023-03-07 11:24:59 +08:00
|
|
|
|
{
|
|
|
|
|
|
var model = BLL.CQMS_SubPlanService.GetSubPlanBySubPlanId(a[0]);
|
|
|
|
|
|
string filepath = model.FilePath;
|
|
|
|
|
|
url = Funs.SGGLUrl + filepath;
|
|
|
|
|
|
}
|
2025-10-10 14:33:21 +08:00
|
|
|
|
else if (a[1] == "Companytemplate")
|
2023-03-14 22:04:28 +08:00
|
|
|
|
{
|
|
|
|
|
|
var model = BLL.Base_CompanytemplateService.GetBase_CompanyTemplateById(a[0]);
|
|
|
|
|
|
string filepath = model.FilePath;
|
|
|
|
|
|
url = Funs.SGGLUrl + filepath;
|
|
|
|
|
|
}
|
2025-10-10 14:33:21 +08:00
|
|
|
|
else if (a[1] == "CQMS_Check_MaterialAcceptance")
|
2023-03-21 19:22:45 +08:00
|
|
|
|
{
|
|
|
|
|
|
var model = BLL.CheckMaterialacceptanceService.GetCheck_MaterialAcceptanceById(a[0]);
|
|
|
|
|
|
string filepath = model.FilePath;
|
|
|
|
|
|
url = Funs.SGGLUrl + filepath;
|
|
|
|
|
|
}
|
2023-03-03 10:46:14 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-10-10 14:33:21 +08:00
|
|
|
|
|
2023-03-03 10:46:14 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|