Ejemplo n.º 1
0
 protected void btnCancel_Click(object sender, EventArgs e)
 {
     Response.Redirect("User_Lst.aspx?page=" + UserCommonOperation.GetSessionIntValue(SysClass.SysUser.UserLst_PageNo.ToString(), 1) + "&OrganID=" + _OrganID.ToString());
 }
Ejemplo n.º 2
0
        protected void btnApply_Click(object sender, EventArgs e)
        {
            if (SaveCheck())
            {
                if (_RecGuid.Length == 0)
                {
                    _RecGuid = SysClass.SysGlobal.GetCreateGUID();
                }
                string[] FieldValues =
                {
                    txtOpCode.Text,
                    txtOpName.Text,
                    ddlOrganID.SelectedValue.ToString(),
                    txtPosition.Text,
                    txtPlace.Text,
                    rblSex.SelectedValue.ToString(),
                    txtPhone.Text,
                    txtTelNo.Text,
                    txtAddress.Text,
                    txtUserDesc.Text,
                    txtIDNumber.Text,
                    txtPassword.Text,
                    txtZipCode.Text,
                    _RecGuid,
                    rbIsCanLogin.SelectedValue
                };

                if (SysClass.SysUser.UpdateSingleUser(_UserID, FieldValues) > 0)
                {
                    string sSqlText = UpdateSaveUserRoles() + GetSaveCustomFieldSQL(_RecGuid);
                    DataCommon.QueryData(sSqlText);
                    Dialog.OpenDialogInAjax(upForm, "恭喜您,保存信息成功……", "User_Lst.aspx?page=" + UserCommonOperation.GetSessionIntValue(SysClass.SysUser.UserLst_PageNo.ToString(), 1) + "&OrganID=" + _OrganID.ToString());
                }
            }
        }