SGGL_SHJ/SGGL/FineUIPro.Web/AttachFile/EditOffice.aspx.cs

50 lines
1.5 KiB
C#

using BLL;
using System;
namespace WordEdit
{
public partial class EditOffice : System.Web.UI.Page
{
public string url;
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;
}
else if (a[1] == "Companytemplate")
{
var model = BLL.Base_CompanytemplateService.GetBase_CompanyTemplateById(a[0]);
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;
}
}
}
}
}