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

57 lines
1.7 KiB
C#

using BLL;
using FineUIPro;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Policy;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
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;
}
}
}
}
}