/// <summary>
        /// 刪除按鈕事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            logmodel.ProcessFlag = "delete";
            string alert = "";
            model = new AttKQParamsEmpEditModel();
            string employeeNo = this.txtEmployeeNo.Text.ToString().Trim();
            model.WorkNo = employeeNo;

            if (paramsEmpEditBll.DeleteKQMParamsEmpData(model,logmodel) > 0)
            {
                alert = "alert('" + Message.DeleteSuccess + "')";
            }
            else
            {
                alert = "alert('" + Message.DeleteFailed + "')";
            }

            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "show", alert, true);
            model = new AttKQParamsEmpEditModel();
            this.EmpQuery(employeeNo);
            this.hidOperate.Value = "";
        }
        /// <summary>
        /// 保存按鈕事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string actionFlag = this.hidOperate.Value.ToString().Trim();
            bool result = false;
            string alert = "";
            string employeeNo = this.txtEmployeeNo.Text.ToString().Trim();

            model = new AttKQParamsEmpEditModel();
            model.WorkNo = employeeNo;
            model.BellNo = this.ddlBellNo.SelectedValuesToString().Replace(", ", ",");
            model.IsNotKaoQin = this.ddlIsNotKaoQin.SelectedValue.ToString();

            //新增
            if (actionFlag == "add")
            {
                logmodel.ProcessFlag = "insert";
                model.CreateUser = CurrentUserInfo.Personcode;
                model.UpdateUser = CurrentUserInfo.Personcode;
                model.UpdateDate = System.DateTime.Now;
                model.CreateDate = System.DateTime.Now;
                result = paramsEmpEditBll.AddKQMParamsEmpData(model,logmodel);
                if (result == true)
                {
                    alert = "alert('" + Message.AddSuccess + "')";
                }
                else
                {
                    alert = "alert('" + Message.AddFailed + "')";
                }
                this.hidOperate.Value = "";

            }
            //修改
            if (actionFlag == "modify")
            {
                logmodel.ProcessFlag = "update";
                model.UpdateUser = CurrentUserInfo.Personcode;
                model.UpdateDate = System.DateTime.Now;
                result = paramsEmpEditBll.UpdateKQMParamsEmpByKey(model,logmodel);
                if (result == true)
                {
                    alert = "alert('" + Message.UpdateSuccess + "')";
                }
                else
                {
                    alert = "alert('" + Message.UpdateFailed + "')";
                }

                this.hidOperate.Value = "";

            }
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "show", alert, true);
            model = new AttKQParamsEmpEditModel();
            this.EmpQuery(employeeNo);
            this.hidOperate.Value = "";
        }