protected void BtnSave_Click(object sender, EventArgs e) { Templates costApproveData = this.GetCostApproveData(); if (base.Request["t"].ToString().Equals("Add")) { bool flag = TemplatesAction.Add(costApproveData); if (flag) { JavaScriptControl expr_38 = this.JS; expr_38.Text += "location.href='CostFrameAnalyze.aspx?type=manage';"; } else { this.JS.Text = "alert('添加失败!');location.href='CostFrameAnalyze.aspx?type=manage';"; } } if (base.Request["t"].ToString().Equals("Upd")) { bool flag2 = TemplatesAction.Update(costApproveData); if (flag2) { this.JS.Text = "location.href='CostFrameAnalyze.aspx?type=manage';"; return; } this.JS.Text = "alert('编辑失败!');location.href='CostFrameAnalyze.aspx?type=manage';"; } }
protected void btnAdd_Click(object sender, EventArgs e) { OAVotingInfo oVI = this.getOVI(); if (this.State == "add") { int num = this.via.Add(oVI); if (num > 0) { this.JS.Text = "alert('添加成功!');"; JavaScriptControl expr_42 = this.JS; expr_42.Text += "returnValue=true;window.close();"; } } if (this.State == "edit") { int num = this.via.Update(oVI); if (num > 0) { this.JS.Text = "alert('修改成功');"; JavaScriptControl expr_90 = this.JS; expr_90.Text += "returnValue=true;window.close();"; return; } this.JS.Text = "alert('修改失败!');"; } }
protected void btnAdd_Click(object sender, EventArgs e) { OAVotingRecord oAVotingRecord = this.GetOAVotingRecord(); OAVotingInfoAction oAVotingInfoAction = new OAVotingInfoAction(); DataTable list = oAVotingInfoAction.GetList(" RecordID=" + this.RecordCode); if (this.ora.Add(oAVotingRecord) > 0) { this.votetype = list.Rows[0]["VoteType"].ToString(); if (this.votetype == "0") { this.rid += this.rbl.SelectedValue; this.ooa.UpdatePoll(" RecordID =" + Convert.ToInt32(this.rid)); } if (this.votetype == "1") { for (int i = 0; i < this.cbl.Items.Count; i++) { if (this.cbl.Items[i].Selected) { this.rid = this.rid + this.cbl.Items[i].Value + ","; } } this.ooa.UpdatePoll(" RecordID in(" + this.rid.Substring(0, this.rid.Length - 1) + ")"); } this.JS.Text = "alert('提交成功!');"; JavaScriptControl expr_16E = this.JS; expr_16E.Text += "returnValue=true;window.close();"; } }
protected void BtnSave_Click(object sender, EventArgs e) { CBSFeeNodeInfo costApproveData = this.GetCostApproveData(); if (base.DealType == OpType.Add) { int num = this.theCBS.AddCBSNodeInfo(costApproveData); if (num == 1) { this.JS.Text = "alert('添加成功!');"; JavaScriptControl expr_37 = this.JS; expr_37.Text += "location.href='CostFrameAnalyze.aspx';"; } else { this.JS.Text = "alert('添加失败!');location.href='CostFrameAnalyze.aspx';"; } } if (base.DealType == OpType.Upd) { int num2 = this.theCBS.UpdateCBSNodeInfo(costApproveData); if (num2 == 1) { this.JS.Text = "alert('编辑成功!');location.href='CostFrameAnalyze.aspx';"; return; } this.JS.Text = "alert('编辑失败!');location.href='CostFrameAnalyze.aspx';"; } }
protected void btnDel_Click(object sender, EventArgs e) { if (this.sia.Delete(new Guid(this.hfRecord.Value)) > 0) { this.JS.Text = "alert('删除成功!');"; JavaScriptControl expr_34 = this.JS; expr_34.Text = expr_34.Text + "window.location.href='" + base.Request.Url.ToString() + "';"; return; } this.JS.Text = "alert('该制度已被使用,目前不能删除!');"; }
protected void btnDel_Click(object sender, EventArgs e) { roleManageDb roleManageDb = new roleManageDb(); if (roleManageDb.roleDel(this.hfRecord.Value)) { this.JS.Text = "alert('删除成功!');"; JavaScriptControl expr_2F = this.JS; expr_2F.Text = expr_2F.Text + "window.location.href='" + base.Request.Url.ToString() + "';"; return; } this.JS.Text = "alert('该制度已被使用,目前不能删除!');"; }
protected void btnAdd_Click(object sender, EventArgs e) { OAVotingOption votingOption = this.GetVotingOption(); if (this.OP == "add" && this.ooa.Add(votingOption) > 0) { this.JS.Text = "alert('添加成功!');"; JavaScriptControl expr_3E = this.JS; expr_3E.Text += "returnValue=true;window.close();"; } if (this.OP == "edit" && this.ooa.Update(votingOption) > 0) { this.JS.Text = "alert('更新成功!');"; JavaScriptControl expr_8A = this.JS; expr_8A.Text += "returnValue=true;window.close();"; } }
protected void btnConfirm_Click(object sender, EventArgs e) { if (userManageDb.updateUserSkin(this.Session["yhdm"].ToString(), this.DropDownList1.SelectedValue)) { this.JavaScriptControl1.Text = "alert('设置成功!');"; if (this.cbUseNow.Checked) { JavaScriptControl expr_4A = this.JavaScriptControl1; expr_4A.Text += "top.history.go(0);"; this.Session["SkinID"] = this.DropDownList1.SelectedValue; return; } } else { this.JavaScriptControl1.Text = "alert('设置失败!');"; } }
protected void Page_Load(object sender, EventArgs e) { string text = base.Request.QueryString["RoleCode"].ToString(); string strPriv = base.Request.QueryString["Priv"].ToString(); roleManageDb roleManageDb = new roleManageDb(); bool flag = roleManageDb.userPrivSet(text, strPriv); if (flag) { this.js.Text = "alert(\"更新用户权限成功!\");"; } else { this.js.Text = "alert(\"更新用户权限失败!\");"; } JavaScriptControl expr_72 = this.js; expr_72.Text = expr_72.Text + "top.FraOperate.location = 'UpdateRolePriv.aspx?id=" + text + "';"; }
protected void Page_Load(object sender, EventArgs e) { string roleCode = base.Request.QueryString["RoleCode"].ToString(); string userCode = base.Request.QueryString["UserCode"].ToString(); roleManageDb roleManageDb = new roleManageDb(); DataTable dataTable = roleManageDb.roleQuary(roleCode); string scopeCode = dataTable.Rows[0]["v_bgfw"].ToString(); string moduleCode = dataTable.Rows[0]["v_xtqx"].ToString(); userManageDb userManageDb = new userManageDb(); bool flag = userManageDb.updateRolePriv(scopeCode, moduleCode, userCode); if (flag) { this.js.Text = "alert(\"更新用户权限成功!\");"; } else { this.js.Text = "alert(\"更新用户权限失败!\");"; } JavaScriptControl expr_C2 = this.js; expr_C2.Text += "window.close();"; }