Exemple #1
0
        public void Delete(int id)
        {
            Sys_SealInfo sys_SealInfo = new Sys_SealInfo();

            sys_SealInfo.id = id;
            this.control.DeleteEntity(sys_SealInfo);
        }
Exemple #2
0
    protected void Del_Btn(object obj, EventArgs e)
    {
        LinkButton        linkButton        = obj as LinkButton;
        RepeaterItem      repeaterItem      = linkButton.Parent as RepeaterItem;
        HtmlInputCheckBox htmlInputCheckBox = repeaterItem.FindControl("chk") as HtmlInputCheckBox;
        int          id   = Convert.ToInt32(htmlInputCheckBox.Value);
        Sys_SealInfo byId = Sys_Seal.Init().GetById(id);

        Help.DeleteFiles(byId.FilePath);
        Sys_Seal.Init().Delete(id);
        this.Show();
    }
Exemple #3
0
 protected void Del_All(object sender, EventArgs e)
 {
     foreach (RepeaterItem repeaterItem in this.rpt.Items)
     {
         HtmlInputCheckBox htmlInputCheckBox = repeaterItem.FindControl("chk") as HtmlInputCheckBox;
         if (htmlInputCheckBox.Checked)
         {
             int          id   = Convert.ToInt32(htmlInputCheckBox.Value);
             Sys_SealInfo byId = Sys_Seal.Init().GetById(id);
             Help.DeleteFiles(byId.FilePath);
             Sys_Seal.Init().Delete(id);
         }
     }
     this.Show();
 }
Exemple #4
0
    private void Show(string id)
    {
        Sys_SealInfo byId = Sys_Seal.Init().GetById(Convert.ToInt32(id));

        this.ViewState["sm"] = byId;
        this.Status.Checked  = Convert.ToBoolean(byId.Status);
        this.SealName.Value  = byId.SealName;
        this.TagName.Value   = byId.TagName;
        this.Notes.Value     = byId.Notes;
        if (byId.Uid > 0)
        {
            this.uids.SelectedValue = string.Concat(byId.Uid);
        }
        if (!string.IsNullOrEmpty(byId.FilePath))
        {
            this.PerPic.ImageUrl = byId.FilePath;
        }
    }
Exemple #5
0
    private void UpDate()
    {
        Sys_SealInfo sys_SealInfo = this.ViewState["sm"] as Sys_SealInfo;

        sys_SealInfo.Status  = Convert.ToInt32(this.Status.Checked);
        sys_SealInfo.AddTime = DateTime.Now;
        sys_SealInfo.Notes   = this.Notes.Value;
        if (this.PWD.Value.Trim() != "")
        {
            sys_SealInfo.PWD = this.PWD.Value.Trim();
        }
        sys_SealInfo.SealName = this.SealName.Value;
        sys_SealInfo.TagName  = this.TagName.Value;
        sys_SealInfo.Uid      = Convert.ToInt32(base.Request.Form["uids"]);
        if (this.Fup.HasFile)
        {
            sys_SealInfo.FilePath = this.SaveJPG(this.Fup);
        }
        Sys_Seal.Init().Update(sys_SealInfo);
        string str = HttpContext.Current.Server.HtmlEncode("您好!印章/签名已编辑成功!");

        base.Response.Redirect("~/InfoTip/Operate_Success.aspx?returnpage=" + base.Request.Url.AbsoluteUri + "&tip=" + str);
    }
Exemple #6
0
 public void Update(Sys_SealInfo com)
 {
     Sys_Seal.dal.Update(com);
 }
Exemple #7
0
 public void Add(Sys_SealInfo com)
 {
     Sys_Seal.dal.Add(com);
 }
Exemple #8
0
 public void Update(Sys_SealInfo Sys_Seal_)
 {
     this.control.UpdateEntity(Sys_Seal_, Sys_Seal_.id);
 }
Exemple #9
0
 public void Add(Sys_SealInfo Sys_Seal_)
 {
     this.control.AddEntity(Sys_Seal_);
 }