//检索按钮 protected void BtnSearch_Click(object sender, EventArgs e) { string condition = GetCondition(); BindGrid_Detail(condition); UpdatePanel_Grid.Update(); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { Panel_Grid.Visible = true; UpdatePanel_Grid.Update(); textname.Text = ""; UpdatePanel_Grid.Update(); }
protected void Grid_Type_RowUpdating(object sender, GridViewUpdateEventArgs e) { hRPtypeInfo.HRPAT_ID = new Guid(Grid_Type.DataKeys[e.RowIndex].Value.ToString()); hRPItemInfo.HRPI_ItemID = new Guid(GridView2.DataKeys[e.RowIndex].Value.ToString()); hRPtypeInfo.HRPAT_PType = ((TextBox)(Grid_Type.Rows[e.RowIndex].Cells[1].Controls[0])).Text.Trim().ToString(); hRPItemInfo.HRPI_Items = ((TextBox)(GridView2.Rows[e.RowIndex].Cells[1].Controls[0])).Text.Trim().ToString(); hRPItemInfo.HRPI_StanScore = ((TextBox)(GridView2.Rows[e.RowIndex].Cells[2].Controls[0])).Text.Trim().ToString(); hRPItemInfo.HRPI_AssStandard = ((TextBox)(GridView2.Rows[e.RowIndex].Cells[3].Controls[0])).Text.Trim().ToString(); hRPItemInfo.HRPI_Remarks = ((TextBox)(GridView2.Rows[e.RowIndex].Cells[4].Controls[0])).Text.Trim().ToString(); int i = hRPerfL.Update_HRPerformAssessType(hRPtypeInfo); if (i <= 0) { ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "alert", "alert('重复的员工类型!')", true); return; } Grid_Type.EditIndex = -1; GridView2.EditIndex = -1; if (LblStateForGrid_Type.Text == "检索前") { BindGrid(""); BindItem(""); } if (LblStateForGrid_Type.Text == "检索后") { BindGrid(TxtType.Text.Trim()); BindItem(TxtItem1.Text.Trim()); } UpdatePanel_Grid.Update(); UpdatePanel2.Update(); }
protected void BtnSearch_Click(object sender, EventArgs e) { str = TxtType.Text.Trim(); BindGrid(str); UpdatePanel_Grid.Update(); LblStateForGrid_Type.Text = "检索后"; }
protected void BtnSubmit_Click(object sender, EventArgs e) { hRETypeInfo.HRET_ID = Guid.NewGuid(); if (TxtNewType.Text == "") { ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "alert", "alert('请输入员工类型!')", true); return; } else { hRETypeInfo.HRET_EmpType = TxtNewType.Text; } hRETypeInfo.HRET_IsDeleted = false; try { int i = hRETypeL.Insert_HREmployeeType(hRETypeInfo); //this.UpdatePanel_NewType.Update(); if (i <= 0) { ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "alert", "alert('重复的员工类型!')", true); return; } BindGrid(""); UpdatePanel_Grid.Update(); TxtNewType.Text = ""; Panel_NewType.Visible = false; ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "alert", "alert('新增成功!')", true); } catch (Exception ex) { ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "alert", "alert('新增失败!" + ex + "')", true); } }
//检索按钮 protected void BtnSearch_Click(object sender, EventArgs e) { //时间必填 if (textyear.Text.ToString() == "" || textmon.Text.ToString() == "") { ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "alert", "alert('请填写年份和月份!')", true); return; } //gridview标题 Label11.Text = textyear.Text; Label12.Text = textmon.Text; if (textdep.Text == "") { Label13.Text = "所有部门"; } else { Label13.Text = textdep.Text; } if (textpost.Text == "") { Label14.Text = "所有岗位"; } else { Label14.Text = textpost.Text; } //检索 string condition = GetCondition(); BindGrid_Detail(condition); UpdatePanel_Grid.Update(); }
protected void Grid_Type_RowUpdating(object sender, GridViewUpdateEventArgs e) { hRETypeInfo.HRET_ID = new Guid(Grid_Type.DataKeys[e.RowIndex].Value.ToString()); hRETypeInfo.HRET_EmpType = ((TextBox)(Grid_Type.Rows[e.RowIndex].Cells[1].Controls[0])).Text.Trim().ToString(); int i = hRETypeL.Update_HREmployeeType(hRETypeInfo); //this.UpdatePanel_NewType.Update(); if (i <= 0) { ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "alert", "alert('重复的员工类型!')", true); return; } Grid_Type.EditIndex = -1; if (LblStateForGrid_Type.Text == "检索前") { BindGrid(""); } if (LblStateForGrid_Type.Text == "检索后") { BindGrid(str); } UpdatePanel_Grid.Update(); ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "alert", "alert('编辑成功!')", true); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { Panel_Grid.Visible = true; textyear.Text = ""; DdlSDep.SelectedValue = ""; DdlSPost.SelectedValue = ""; UpdatePanel_Grid.Update(); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { TextBox1.Text = ""; TextBox2.Text = ""; TextBox3.Text = ""; TextBox4.Text = ""; TextBox5.Text = ""; UpdatePanel_Grid.Update(); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { textno.Text = ""; textname.Text = ""; textdep.Text = ""; textpost.Text = ""; textyear.Text = ""; UpdatePanel_Grid.Update(); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { textgongxu.Text = ""; textxilie.Text = ""; textxiangmu.Text = ""; laststar.Text = ""; lastend.Text = ""; UpdatePanel_Grid.Update(); }
protected void BtnReset_Click(object sender, EventArgs e) { Grid_Type.SelectedIndex = -1;//选中行的效果 Grid_Type.EditIndex = -1; TxtType.Text = ""; str = ""; BindGrid(""); LblStateForGrid_Type.Text = "检索前"; UpdatePanel_Grid.Update(); }
protected void BtnSearch_Click(object sender, EventArgs e) { Grid_Type.SelectedIndex = -1; //选中行的效果 Grid_Type.EditIndex = -1; Grid_Type.SelectedIndex = -1; //如果Grid_Type存在行加黑,则取消加黑 str = TxtType.Text.Trim(); BindGrid(str); UpdatePanel_Grid.Update(); LblStateForGrid_Type.Text = "检索后"; }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { sparename.Text = ""; sparemodel.Text = ""; equipno.Text = ""; startime.Text = ""; endtime.Text = ""; //BindGrid_Detail(""); UpdatePanel_Grid.Update(); }
protected void BtnReset_Click(object sender, EventArgs e) { startime.Text = ""; endtime.Text = ""; textno.Text = ""; textname.Text = ""; UpdatePanel_Search.Update(); Panel_Grid.Visible = false; UpdatePanel_Grid.Update(); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { equipno.Text = ""; equipmodel.Text = ""; equipname.Text = ""; equipper.Text = ""; startime.Text = ""; endtime.Text = ""; UpdatePanel_Grid.Update(); }
//打印报表按钮 protected void BtnPrint_Click(object sender, EventArgs e) { Panel_Grid.Visible = true; UpdatePanel_Grid.Update(); if (this.textyear.Text.ToString() == "" || this.textyear.Text.ToString().Length != 4) { ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "alert", "alert('请填入正确的年份!')", true); return; } Response.Redirect("../REPORT_cc/SalaryCountIn12MonthsPrint.aspx?" + "&Year=" + textyear.Text.ToString().Trim() + "&dep=" + DdlSDep.SelectedItem.ToString().Trim() + "&post=" + DdlSPost.SelectedValue.ToString().Trim()); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { textdep.Text = ""; textno.Text = ""; textname.Text = ""; texteditno.Text = ""; laststar.Text = ""; lastend.Text = ""; //BindGrid_Detail(""); UpdatePanel_Grid.Update(); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { textno.Text = ""; textname.Text = ""; textper.Text = ""; laststar.Text = ""; lastend.Text = ""; TextBox1.Text = ""; TextBox2.Text = ""; UpdatePanel_Grid.Update(); }
//打印报表按钮 protected void BtnPrint_Click(object sender, EventArgs e) { Panel_Grid.Visible = true; UpdatePanel_Grid.Update(); if (this.textyear.Text.ToString() == "" || this.textyear.Text.ToString().Length != 4) { ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "alert", "alert('请填入正确的年份!')", true); return; } Response.Redirect("../REPORT_cc/QuitCountPercentPrint.aspx?" + "&Year=" + textyear.Text.ToString().Trim()); }
protected void BtnReset_Click(object sender, EventArgs e) { TxtType.Text = ""; BindGrid(""); LblStateForGrid_Type.Text = "检索前"; UpdatePanel_Grid.Update(); Panel_SearchEmployee.Visible = false; UpdatePanel_SearchEmployee.Update(); Panel2.Visible = false; UpdatePanel2.Update(); }
//关闭统计数据维护 protected void Senior_DetailCLOSE_Click(object sender, EventArgs e) { Panel1.Visible = false; UpdatePanel1.Update(); Panel_Name.Visible = false; UpdatePanel_Name.Update(); Senior_DetailOPEN.Visible = true; Senior_DetailCLOSE.Visible = false; Panel_Grid.Visible = true; UpdatePanel_Grid.Update(); }
//打开统计数据维护 protected void Senior_DetailOPEN_Click(object sender, EventArgs e) { Panel_Grid.Visible = false; UpdatePanel_Grid.Update(); Senior_DetailOPEN.Visible = false; Senior_DetailCLOSE.Visible = true; Panel1.Visible = true; UpdatePanel1.Update(); BindGridView1(" and EN_Output is not null and EN_WorkTime is not null and EN_Output!=-1 and EN_WorkTime!=-1"); UpdatePanel_Search.Update(); }
//检索按钮 protected void BtnSearch_Click(object sender, EventArgs e) { if (this.textyear.Text.ToString() == "" || this.textyear.Text.ToString().Length != 4) { ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "alert", "alert('请填入正确的年份!')", true); return; } string condition = GetCondition(); BindGrid_Detail(condition); UpdatePanel_Grid.Update(); }
}//计量器具检验列表Grid_MeasAppliance #endregion #region//检索条件 protected void BtnSearch_Click(object sender, EventArgs e) { Grid_MeasAppliance.SelectedIndex = -1; Condition = TxtEquipName.Text.Trim() == "" ? " " : " and MAM_EquipName like '%" + TxtEquipName.Text.Trim() + "%'"; Condition += TxtManuCode.Text.Trim() == "" ? " " : " and MAM_ManuCode like '%" + TxtManuCode.Text.Trim() + "%'"; Condition += TxtLocation.Text.Trim() == "" ? " " : " and MAM_Location like '%" + TxtLocation.Text.Trim() + "%'"; Condition += TextBox13.Text.Trim() == "" ? " " : " and MAM_EquipType like '%" + TextBox13.Text.Trim() + "%'"; Condition += TextBox14.Text.Trim() == "" ? " " : " and MAM_ManuName like '%" + TextBox14.Text.Trim() + "%'"; Condition += DropDownList2.Text.Trim() == "" ? " " : " and MAM_Isunused = '" + DropDownList2.SelectedValue.Trim() + "'"; BindGrid_MeasAppliance(Condition); BlInto_S_Search = true; UpdatePanel_Grid.Update(); }//检索
}//检索 protected void BtnCancel_Click(object sender, EventArgs e) { Grid_MeasAppliance.SelectedIndex = -1; TxtEquipName.Text = ""; TxtManuCode.Text = ""; TxtLocation.Text = ""; TextBox13.Text = ""; TextBox14.Text = ""; DropDownList2.Text = ""; BindGrid_MeasAppliance(""); UpdatePanel_Grid.Update(); BlInto_S_Search = false; }//重置
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { DropDownList1.Items.Insert(0, new ListItem("请选择", "")); BindDropDownList1(); DropDownList1.SelectedValue = ""; DropDownList2.Items.Insert(0, new ListItem("请选择", "")); BindDropDownList2(); DropDownList2.SelectedValue = ""; TextBox1.Text = ""; laststar.Text = ""; lastend.Text = ""; UpdatePanel_Grid.Update(); }
//检索按钮 protected void BtnSearch_Click(object sender, EventArgs e) { if (startime.Text.ToString() == "" || endtime.Text.ToString() == "") { ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "alert", "alert('请填写统计时间!')", true); return; } DateTime start = Convert.ToDateTime(startime.Text.ToString()); DateTime end = Convert.ToDateTime(endtime.Text.ToString()); BindGrid_Detail(start, end); UpdatePanel_Grid.Update(); }
//检索按钮 protected void BtnSearch_Click(object sender, EventArgs e) { if (startime.Text.ToString() == "" || endtime.Text.ToString() == "") { ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('请填入统计起止时间!')", true); return; } string condition1 = GetCondition1(); string condition2 = GetCondition2(); BindGrid_Detail(condition1, condition2); UpdatePanel_Grid.Update(); }
//重置按钮 protected void BtnReset_Click(object sender, EventArgs e) { DropDownList1.Items.Insert(0, new ListItem("请选择", "")); BindDropDownList1(); DropDownList1.SelectedValue = ""; textno.Text = ""; textname.Text = ""; laststar.Text = ""; lastend.Text = ""; neweststar.Text = ""; newestend.Text = ""; //BindGrid_Detail(""); UpdatePanel_Grid.Update(); }