コード例 #1
0
    //
    protected void Button4_Click(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        ht.Add("status", "1");
        DA_JieYuanBU jyue4 = new DA_JieYuanBU();
        //修改借阅单的状态

        bool result = jyue4.ShengChengJieYuanBill(Request.QueryString["id"], ht);

        if (result)
        {
            Util.alert(this.Page, "借阅单已产生!");
            //修改案卷中文件的借阅人、借阅时间,登记人、登记时间

            DA_JieYuanBU jyue1 = new DA_JieYuanBU();
            string[]     allId = jyue1.GetAllIdBybill(this.bill.Text);
            Hashtable    ht1   = new Hashtable();
            ht1.Add("djtime", this.billtime.Text.Trim());
            ht1.Add("dtmen", this.billmen.Text.ToString());
            ht1.Add("jyue", this.zeren.Text.ToString());
            ht1.Add("jyuetime", this.billtime.Text.Trim());
            for (int i = 0; i < allId.Length; i++)
            {
                DA_FilesBU file1 = new DA_FilesBU();
                file1.UpdateJieyueInfo(allId[i].ToString(), ht1);
            }
            Response.Redirect("FileJieyue.aspx");
        }
    }
コード例 #2
0
    //归还借阅文件
    protected void Button1_Click(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        ht.Add("paytime1", this.paytim1.Text.ToString());
        ht.Add("status", "2");
        DA_JieYuanBU jyue1 = new DA_JieYuanBU();

        jyue1.UpdatePaytime(Request.QueryString["id"], ht);
        Hashtable ht1 = new Hashtable();

        ht1.Add("jyue", DBNull.Value);
        ht1.Add("jyuetime", DBNull.Value);
        ht1.Add("djtime", DBNull.Value);
        ht1.Add("dtmen", DBNull.Value);
        string[] allId = jyue1.GetAllIdBybill(this.bill.Text);
        for (int i = 0; i < allId.Length; i++)
        {
            DA_FilesBU file1 = new DA_FilesBU();
            file1.RemoveJieyueInfo(allId[i].ToString(), ht1);
        }

        Response.Redirect("FileJieyue.aspx");
    }