Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(EnumCompanyPermission.MemberSPOff);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));

        Translations();
        if (!this.IsPostBack)
        {
            if (Session["Company"] != null)
            {
                string ManageID = Session["Company"].ToString();
                txtOperatorNo.Text   = ManageID;
                txtOperatorName.Text = DataBackupBLL.GetNameByAdminID(ManageID);
            }
            if (Request.QueryString["Number"] != null)
            {
                this.txtNumber.Text = Request.QueryString["Number"].ToString();
            }
            this.Label1.Text = GetTran("007567", "冻结会员");
            if (Request.QueryString["type"] != null)
            {
                if (Request.QueryString["Number"] != null)
                {
                    this.txtNumber.Text = Request.QueryString["Number"].ToString();
                }
                Label1.Text = GetTran("007224", "解冻会员");
            }
        }
    }
    /// <summary>
    /// 记录备份日志
    /// </summary>
    protected void BackupLog()
    {
        ///根据管理员编号得到管理员姓名
        string   strOperator       = DataBackupBLL.GetNameByAdminID(Session["Company"].ToString());
        DateTime strDataBackupTime = DateTime.Now;// File.GetLastWriteTime(strPathFileName);

        BackupDatabaseModel backupDatabaseModel = new BackupDatabaseModel();

        backupDatabaseModel.DataBackupTime = strDataBackupTime;
        backupDatabaseModel.OperatorNum    = strOperator;
        backupDatabaseModel.PathFileName   = strPathFileName1;

        ///向数据库备份路径表中插入记录
        int addCount = DataBackupBLL.AddBackupDatabase(backupDatabaseModel);

        if (addCount != 0)
        {
            Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("004212", "备份日志记录成功!")));
            BackupDatabaseDataBind();
        }

        else
        {
            Page.ClientScript.RegisterStartupScript(GetType(), "", Transforms.ReturnAlert(GetTran("004210", "备份日志记录失败,请联络管理员!")));
            return;
        }
    }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Permissions.ComRedirect(Page, Permissions.redirUrl);
     Response.Cache.SetExpires(DateTime.Now);
     Permissions.CheckManagePermission(EnumCompanyPermission.MemberOffView);
     AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
     if (!this.IsPostBack)
     {
         if (Session["Company"] != null)
         {
             string ManageID = Session["Company"].ToString();
             txtOperatorNo.Text   = ManageID;
             txtOperatorName.Text = DataBackupBLL.GetNameByAdminID(ManageID);
         }
         if (Request.QueryString["Number"] != null)
         {
             this.txtNumber.Text = Request.QueryString["Number"].ToString();
             this.Label4.Text    = new AjaxClass().GetName(Request.QueryString["Number"].ToString());
         }
         if (Request.QueryString["type"] != null && Request.QueryString["type"] == "2")
         {
             Label1.Text = GetTran("003024", "恢复注销会员");
             Label2.Text = GetTran("007237", "恢复注销会员编号") + ":";
             Label3.Text = GetTran("007238", "恢复注销原因") + ":";
         }
         else
         {
             Label1.Text = GetTran("001282", "会员注销");
             Label2.Text = GetTran("001295", "恢复注销会员编号") + ":";
             Label3.Text = GetTran("007164", "注销原因") + ":";
         }
     }
     Translations();
 }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(EnumCompanyPermission.StoreOffView);

        if (!this.IsPostBack)
        {
            if (Session["Company"] != null)
            {
                string ManageID = Session["Company"].ToString();
                txtOperatorNo.Text   = ManageID;
                txtOperatorName.Text = DataBackupBLL.GetNameByAdminID(ManageID);
            }
            if (Request.QueryString["storeid"] != null)
            {
                this.txtStoreid.Text = Request.QueryString["storeid"].ToString();
            }
        }
        Translations();
    }
Example #5
0
    protected void givTWmember_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string[] args = e.CommandArgument.ToString().Split(':');
        if (args.Length != 3)
        {
            ScriptHelper.SetAlert(Page, GetTran("001089", "数据异常!"));
            return;
        }

        if (args[2].Trim() == "2")
        {
            ScriptHelper.SetAlert(Page, GetTran("000000", "服务机构已经恢复注销!"));
            return;
        }

        int    id           = Convert.ToInt32(args[0]);
        string storeid      = args[1];
        string Operator     = Session["Company"].ToString();
        string OperatorName = DataBackupBLL.GetNameByAdminID(Operator);

        if (e.CommandName == "OK")
        {
            int insertCon = StoreOffBLL.getUpdateStoreZX(storeid, CommonDataBLL.getMaxqishu(), id, DateTime.UtcNow, Operator, OperatorName);


            if (insertCon > 0)
            {
                ScriptHelper.SetAlert(Page, GetTran("001338", "确定完成"));
            }
            else
            {
                ScriptHelper.SetAlert(Page, GetTran("007132", "恢复注销失败"));
            }
            btnSeach_Click(null, null);
        }
    }