protected void btnSave_Click(object sender, EventArgs e) { ProgressPlanInfo progressPlanInfo = new ProgressPlanInfo(); ProgressPlanAction progressPlanAction = new ProgressPlanAction(); progressPlanInfo.PlanCode = this.txtPlanCode.Text; progressPlanInfo.PlanId = this.planId; progressPlanInfo.ApplicationName = this.txtApplication.Text; if (this.txtCompletedDate.Text.Trim() != "") { progressPlanInfo.CompletedDate = DateTime.Parse(this.txtCompletedDate.Text); } progressPlanInfo.ResultsName = this.txtResultName.Text; progressPlanInfo.ResultsHolders = this.txtResultUint.Text; progressPlanInfo.PrjCode = this.prjCode; progressPlanInfo.PlanSort = ((EditDropDownList)this.lbPlanSort.FindControl("ddlPlanSort")).Text; progressPlanInfo.PlanSort = this.txtPlanSort.Text.Trim(); progressPlanInfo.Remark = this.txtNotes.Text.Trim().ToString(); progressPlanInfo.ProgressGuid = this.hdnProgressGuid.Value.Trim(); if (progressPlanAction.UpdatePlan(progressPlanInfo)) { base.RegisterScript("top.ui.tabSuccess({ parentName: '_progressplanlist' });"); return; } this.js.Text = "alert(\"操作失败!\");"; }
protected void Page_Load(object sender, EventArgs e) { this.BindDropDownList(); if (this.Page.IsPostBack) { this.planId = this.ViewState["PLANID"].ToString(); this.prjCode = this.ViewState["PRJCODE"].ToString(); return; } base.Response.Cache.SetNoStore(); if (base.Request.Params["prjCode"] != null) { this.ViewState["PRJCODE"] = base.Request.Params["prjCode"].ToString(); this.prjCode = this.ViewState["PRJCODE"].ToString(); if (base.Request.Params["planId"] != null) { this.ViewState["PLANID"] = base.Request.Params["planId"].ToString(); this.planId = this.ViewState["PLANID"].ToString(); this.BindData(); } else { this.ViewState["PLANID"] = ProgressPlanAction.GetNewPlanId(); this.hidIsSave.Value = "false"; this.planId = this.ViewState["PLANID"].ToString(); this.hdnProgressGuid.Value = Guid.NewGuid().ToString(); } this.hidPlanId.Value = this.planId; this.hidPrjCode.Value = this.prjCode; this.FileLink1.MID = 1747; this.FileLink1.Type = 1; this.FileLink1.FID = this.hdnProgressGuid.Value.Trim(); return; } }
private void BindData() { ProgressPlanAction progressPlanAction = new ProgressPlanAction(); ProgressPlanCollection auditedProgressPlanInfos = progressPlanAction.GetAuditedProgressPlanInfos(this.prjCode); this.dgMain.DataSource = auditedProgressPlanInfos; this.dgMain.DataBind(); }
private void BindDropDownList() { this.ddlPlanSort.ID = "ddlPlanSort"; foreach (DataRow dataRow in ProgressPlanAction.GetPlanSortList().Rows) { this.ddlPlanSort.Items.Add(new System.Web.UI.WebControls.ListItem(dataRow[0].ToString(), dataRow[0].ToString())); } this.lbPlanSort.Controls.Add(this.ddlPlanSort); }
protected void btnDel_Click(object sender, EventArgs e) { if (ProgressPlanAction.DelPlanRecord(this.hidPlanId.Value)) { this.js.Text = "alert(\"操作成功!\");"; } else { this.js.Text = "alert(\"操作失败!\");"; } this.BindData(); }
private void BindData() { ProgressPlanAction progressPlanAction = new ProgressPlanAction(); ProgressPlanInfo onePlanInfo = progressPlanAction.GetOnePlanInfo(this.planId); this.txtPermissionPeople.Text = onePlanInfo.PermissionPeople; this.txtPermissionView.Text = onePlanInfo.PermissionView; if (onePlanInfo.AuditState > 2) { this.ddlAuditState.SelectedValue = onePlanInfo.AuditState.ToString(); } }
private void BindData() { ProgressPlanAction progressPlanAction = new ProgressPlanAction(); ProgressPlanInfo onePlanInfo = progressPlanAction.GetOnePlanInfo(this.planId); this.txtResultUint.Text = onePlanInfo.ResultsHolders; this.txtCompletedDate.Text = onePlanInfo.CompletedDate.ToShortDateString(); this.txtApplication.Text = onePlanInfo.ApplicationName; this.txtPlanCode.Text = onePlanInfo.PlanCode; this.txtResultName.Text = onePlanInfo.ResultsName; this.txtNotes.Text = onePlanInfo.Remark; this.txtPlanSort.Text = ((onePlanInfo.PlanSort != null) ? onePlanInfo.PlanSort.Trim() : ""); this.hdnProgressGuid.Value = onePlanInfo.ProgressGuid; }
private void BindData() { ProgressPlanAction progressPlanAction = new ProgressPlanAction(); ProgressPlanInfo onePlanInfo = progressPlanAction.GetOnePlanInfo(this.planId); this.txtDeclareUnitView.Text = onePlanInfo.DeclareUnitView; this.txtPanelView.Text = onePlanInfo.PanelView; this.txtPlanCode.Text = onePlanInfo.PlanCode; this.txtRemark.Text = onePlanInfo.Remark; this.txtVettingCommitteeView.Text = onePlanInfo.VettingCommitteeView; if (onePlanInfo.AuditState < 3) { this.ddlAuditState.SelectedValue = onePlanInfo.AuditState.ToString(); } }
private void BindData() { this.setControl(); ProgressPlanCollection dataSource = new ProgressPlanCollection(); ProgressPlanAction progressPlanAction = new ProgressPlanAction(); if (this.Type == "Edit") { dataSource = progressPlanAction.GetPpmProgressPlanInfos(this.prjCode); this.dgList.Columns[1].Visible = false; } else { dataSource = progressPlanAction.GetEntProgressPlanInfos(this.prjCode, this.Type); } this.dgList.DataSource = dataSource; this.dgList.DataBind(); }
protected void btnSave_Click(object sender, EventArgs e) { ProgressPlanAction progressPlanAction = new ProgressPlanAction(); if (progressPlanAction.EntAuditPlan(new ProgressPlanInfo { PlanId = this.planId, PermissionPeople = this.txtPermissionPeople.Text, PermissionView = this.txtPermissionView.Text, AuditState = int.Parse(this.ddlAuditState.SelectedValue) })) { base.RegisterScript("top.ui.tabSuccess({ parentName: '_progressplanlist' });"); } else { base.RegisterScript("top.ui.alert('操作失败!');"); } this.BindData(); }
protected void btnSave_Click(object sender, EventArgs e) { ProgressPlanAction progressPlanAction = new ProgressPlanAction(); if (progressPlanAction.PpmAuditPlan(new ProgressPlanInfo { PlanId = this.planId, DeclareUnitView = this.txtDeclareUnitView.Text, PanelView = this.txtPanelView.Text, PlanCode = this.txtPlanCode.Text, Remark = this.txtRemark.Text, VettingCommitteeView = this.txtVettingCommitteeView.Text, AuditState = int.Parse(this.ddlAuditState.SelectedValue) })) { base.RegisterScript("top.ui.tabSuccess({ parentName: '_progressplanlist' });"); } else { base.RegisterScript("top.ui.alert('操作失败!');"); } this.BindData(); }