//System.Text.StringBuilder sb = new System.Text.StringBuilder(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { WebHelper.IsSessionValid(Session, Response); if (Session["UserType"].ToString() == "0") { btnExport.Visible = true; btnExport.Attributes["onclick"] = "javascript:if (window.confirm('你确定要导出选择的记录吗?')) { $find('PopUp').show(); } else { return false; }"; btnSetzf.Visible = true; btnSetzf.Attributes["onclick"] = "javascript:if (window.confirm('你确定要作废选择的记录吗?')) { $find('PopUp').show(); } else { return false; }"; btnDelete.Visible = true; btnDelete.Attributes["onclick"] = "javascript:if (window.confirm('你确定要删除选择的记录吗?')) { $find('PopUp').show(); } else { return false; }"; btnSetzt.Visible = true; btnSetzt.Attributes["onclick"] = "javascript:if (window.confirm('你确定要设置简历状态吗?')) { $find('PopUp').show(); } else { return false; }"; ztlist.Visible = true; ResumeInfoDataContext db = new ResumeInfoDataContext(); WebHelper.FillEnuList(ztlist, db, typeof(enuZt), false, ""); } btnBack.Attributes["onclick"] = "javascript:$find('PopUp').show(); "; ViewState["Query"] = PreviousPage.QueryList; ObjGrid.FillGrid(GetQuery(true)); //form1.Controls.Add(WebHelper.WriteSqlLog(sb)); } }
//System.Text.StringBuilder sb = new System.Text.StringBuilder(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { WebHelper.IsSessionValid(Session, Response); if (Session["UserType"].ToString() == "0") { btnExport.Visible = true; btnExport.Attributes["onclick"] = "javascript:if (window.confirm('你确定要导出选择的记录吗?')) { $find('PopUp').show(); } else { return false; }"; btnSetzf.Visible = true; btnSetzf.Attributes["onclick"] = "javascript:if (window.confirm('你确定要作废选择的记录吗?')) { $find('PopUp').show(); } else { return false; }"; btnDelete.Visible = true; btnDelete.Attributes["onclick"] = "javascript:if (window.confirm('你确定要删除选择的记录吗?')) { $find('PopUp').show(); } else { return false; }"; btnSetzt.Visible = true; btnSetzt.Attributes["onclick"] = "javascript:if (window.confirm('你确定要设置简历状态吗?')) { $find('PopUp').show(); } else { return false; }"; ztlist.Visible = true; ResumeInfoDataContext db = new ResumeInfoDataContext(); WebHelper.FillEnuList(ztlist, db, typeof(enuZt), false, ""); } string backurl = "JobMgt.aspx?type=" + GetCareerType(); btnBack.Attributes["onclick"] = "javascript:$find('PopUp').show(); window.navigate('@backurl'); return false;".Replace("@backurl", backurl); Dictionary <Type, string> QueryList = new Dictionary <Type, string>(); string cond = "acid=" + Request["cid"]; QueryList.Add(typeof(Application), cond); ViewState["Query"] = QueryList; ObjGrid.FillGrid(GetQuery(true)); //form1.Controls.Add(WebHelper.WriteSqlLog(sb)); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { WebHelper.IsSessionValid(Session, Response); if (Request.QueryString["delid"] != null) { DeleteItem(Request.QueryString["delid"]); } btnRefresh.Attributes["onclick"] = "javascript:$find('PopUp').show();"; } ObjGrid.FillGrid(GetQuery(true)); }
//System.Text.StringBuilder sb = new System.Text.StringBuilder(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { WebHelper.IsSessionValid(Session, Response); if (Session["UserID"].ToString() == "0") { btnUndozf.Visible = true; btnUndozf.Attributes["onclick"] = "javascript:if (window.confirm('你确定要取消作废选择的记录吗?')) { $find('PopUp').show(); } else { return false; }"; } ObjGrid.FillGrid(GetQuery(true)); //form1.Controls.Add(WebHelper.WriteSqlLog(sb)); } }
protected void btnSetzf_Click(object sender, EventArgs e) { if (ObjGrid.SelectedRows.Count > 0) { try { SetzfItem(); ObjGrid.SelectedRows.Clear(); ObjGrid.FillGrid(GetQuery(true)); WebHelper.AlertMsg("你选择的记录已经被设置为作废!", ClientScript); } catch (Exception ex) { WebHelper.AlertMsg(ex.Message, ClientScript); } } else { WebHelper.AlertMsg("请先选择你要设置作废的记录!", ClientScript); } }
protected void btnSetzt_Click(object sender, EventArgs e) { if (ObjGrid.SelectedRows.Count > 0) { try { Setzt(); SendEmailToUser(); ObjGrid.SelectedRows.Clear(); ObjGrid.FillGrid(GetQuery(true)); WebHelper.AlertMsg("设置成功!", ClientScript); } catch (Exception ex) { WebHelper.AlertMsg(ex.Message, ClientScript); } } else { WebHelper.AlertMsg("请先选择你要设置的简历!", ClientScript); } }
protected void btnExport_Click(object sender, EventArgs e) { if (ObjGrid.SelectedRows.Count > 0) { try { foreach (int id in ObjGrid.SelectedRows) { AppHelper.ExportDoc(id); } ObjGrid.SelectedRows.Clear(); ObjGrid.FillGrid(GetQuery(true)); WebHelper.AlertMsg("导出成功!\\r\\n请访问服务器上[简历导出]目录。", ClientScript); } catch (Exception ex) { WebHelper.AlertMsg(ex.Message, ClientScript); } } else { WebHelper.AlertMsg("请先选择你要导出的简历!", ClientScript); } }
protected void ObjGrid_Sorting(object sender, GridViewSortEventArgs e) { ViewState["SortExpression"] = e.SortExpression; ObjGrid.FillGrid(GetQuery(false)); }
protected void Pager_Click() { ObjGrid.FillGrid(GetQuery(false)); }
protected void enuList_SelectedIndexChanged(object sender, EventArgs e) { ViewState["enuType"] = WebHelper.GetEnuType(enuList.SelectedValue); ObjGrid.FillGrid(GetQuery(true)); btnNew.Attributes["onclick"] = "javascript:PopWin('EnuEdit.aspx?type=@type','ee',350,160,'c');return false;".Replace("@type", ViewState["enuType"].ToString()); }
protected void btnRefresh_Click(object sender, EventArgs e) { ObjGrid.FillGrid(GetQuery(true)); }