页面提交
This commit is contained in:
@@ -29,12 +29,32 @@ namespace FineUIPro.Web.CQMS.WBS.Control
|
||||
set { ViewState["ControlId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string FId
|
||||
{
|
||||
get { return (string)ViewState["FId"]; }
|
||||
set { ViewState["FId"] = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 问题图片是否可编辑
|
||||
/// </summary>
|
||||
public int FileImg
|
||||
{
|
||||
get { return (int)ViewState["FileImg"]; }
|
||||
set { ViewState["FileImg"] = value; }
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ControlId = Request.Params["ControlId"];
|
||||
this.FId = !string.IsNullOrWhiteSpace(this.ControlId) ? this.ControlId : Guid.NewGuid().ToString();
|
||||
this.ParentId = Request.Params["ParentId"];
|
||||
this.FileImg = 0;
|
||||
//绑定数据
|
||||
PageIn();
|
||||
}
|
||||
@@ -125,19 +145,23 @@ namespace FineUIPro.Web.CQMS.WBS.Control
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
var model = new Control_PointCropping();
|
||||
model.ControlId = Guid.NewGuid().ToString();
|
||||
model.ControlId = this.FId;
|
||||
var oneControlId = string.Empty;
|
||||
var twoControlId = string.Empty;
|
||||
if (!string.IsNullOrWhiteSpace(this.ControlId))
|
||||
{
|
||||
model = Funs.DB.Control_PointCropping.FirstOrDefault(p => p.ControlId == this.ControlId);
|
||||
}
|
||||
else
|
||||
{
|
||||
model.States = 1;
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
}
|
||||
if (model == null)
|
||||
{
|
||||
ShowNotify("传递参数错误!", MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
//model.ProjectId = CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrWhiteSpace(this.ParentId))
|
||||
{
|
||||
var parenLs = GetAllCropping(this.ParentId);
|
||||
@@ -183,6 +207,14 @@ namespace FineUIPro.Web.CQMS.WBS.Control
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 附件
|
||||
/// </summary>
|
||||
protected void BtnFile_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/CheckControl&menuId={2}", FileImg, this.FId, Const.InspectTailTerm)));
|
||||
}
|
||||
|
||||
#region 私有方法
|
||||
|
||||
/// <summary>
|
||||
@@ -211,6 +243,15 @@ namespace FineUIPro.Web.CQMS.WBS.Control
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 关闭
|
||||
/// </summary>
|
||||
protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user