Example #1
0
    protected void btnAdd_Click(object sender, System.EventArgs e)
    {
        int num = HRPersonnelCommonAction.AddDuty(this.EmployeeCode, this.HdnDeptID.Value, this.HdnDutyID.Value);

        if (num > 0)
        {
            this.JS.Text = "returnValue=true;window.close();";
            return;
        }
        this.JS.Text = "alert('没有相关数据可添加!');";
    }
Example #2
0
 private void Bind_Duty()
 {
     this.GVDuty.DataSource = HRPersonnelCommonAction.GetDutyInfo(this.UserCode);
     this.GVDuty.DataBind();
 }