示例#1
0
        protected void lbtnEditUserActive_Click(object sender, EventArgs e)
        {
            GridViewRow gr = (GridViewRow)((LinkButton)sender).NamingContainer;
            string      id = ((Label)gr.FindControl("lblUserID")).Text;

            SetControlPopUpDisableUser(id);
            PopUpDisableUser.Show();
        }
示例#2
0
        protected void btnDisSave_Click(object sender, EventArgs e)
        {
            try
            {
                AccountBiz        biz  = new AccountBiz();
                DTO.AccountDetail user = new DTO.AccountDetail();
                user.ID         = lblDisUserID.Text;
                user.ACTIVE     = radIsActive.SelectedValue;
                user.ID_CARD_NO = lblDisIdCard.Text;
                if (user.ACTIVE == "D")
                {
                    user.DELETE_USER     = ddlDisRemark.SelectedValue;
                    user.OTH_DELETE_USER = txtDisRemarkText.Text;
                    if (String.IsNullOrEmpty(user.DELETE_USER))
                    {
                        MessageBoxError("กรุณาเลือก เหตุผลการยกเลิก");
                        return;
                    }
                }

                var res = biz.DisableUser(user, UserProfile);
                if (!res.IsError)
                {
                    PopUpDisableUser.Hide();
                    MessageBoxSuccess("บันทึกข้อมูลเรียบร้อยแล้ว");
                    BindGrid();
                    UpdatePanelGv.Update();
                }
                else
                {
                    MessageBoxError(res.ErrorMsg);
                }
            }
            catch (Exception ex)
            {
                MessageBoxError(ex.Message);
            }
        }
示例#3
0
 protected void btnDisCancel_Click(object sender, EventArgs e)
 {
     PopUpDisableUser.Hide();
 }