⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moddoc.aspx.cs

📁 java 最出色的报表工具代码,愿分享....
💻 CS
字号:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Admin_Frameset_Operation_ModDoc : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      
        if (!IsPostBack)
        { 
         Response.Write(".");
         bind();
        
        }
        this.Dispose();
      
       
    }
    
    public void bind()
    {

        string strtemp = Request.QueryString["ProductID"].ToString().Trim();
        this.htcode.Text = strtemp;
        this.htcode.ReadOnly = true;
        Vouchers voucher = new Vouchers();
        voucher.LoadData(Convert.ToInt32(strtemp.Trim()));
        this.CustomerName.Text = voucher.CustomerName;
        this.EngineName.Text = voucher.EngineName;
        this.EngineLocal.Text = voucher.EngineLocal;
        this.GiveLocal.Text = voucher.GiveLocal;
        this.FiteCode.Text = voucher.FiteCode.ToString();
        this.TongStrong.Text = voucher.TongStrong.ToString();
        this.ShuiniCode.Text = voucher.ShuiniCode;
        this.Taluodu.Text = voucher.Taluodu;
        this.SjName.Text = voucher.SjName;
        this.CarCode.Text = voucher.CarCode;
        this.dCarFl.Text = voucher.dCarFl;
        this.TotalFl.Text = voucher.TotalFl;
        this.StartTime.Text = voucher.StartTime.ToString();
        this.EndTime.Text = voucher.EndTime.ToString();
        this.XwTime.Text = voucher.XwTime.ToString();
        this.OperPerson.Text = voucher.OperPerson;
        this.DiaoduOper.Text = voucher.DiaoduOper;
        this.XwTime.Text = voucher.XwTime.ToString();
        this.printtime.Value = voucher.PrintTime.ToString();
        this.xzmode.Text = voucher.XZMode; 
        this.CustomerSinature.Enabled = false;
    }
    protected void lbtnsave_Click(object sender, EventArgs e)
    {
        Vouchers voucher = new Vouchers();
        voucher.CarCode = this.CarCode.Text;
        voucher.CustomerName = this.CustomerName.Text;
        voucher.dCarFl = this.dCarFl.Text;
        voucher.DiaoduOper = this.DiaoduOper.Text;
        voucher.EndTime = Convert.ToDateTime (this.EndTime.Text.Trim());
        voucher.EngineLocal = this.EngineLocal.Text;
        voucher.EngineName = this.EngineName.Text;
        voucher.FiteCode = this.FiteCode.Text;
        voucher.GiveLocal = this.GiveLocal.Text;
        voucher.OperPerson = this.OperPerson.Text;
        voucher.PrintTime = Convert.ToDateTime(this.printtime.Text.Trim());
        voucher.ShuiniCode = this.ShuiniCode.Text;
        voucher.SjName = this.SjName.Text;
        voucher.StartTime = Convert.ToDateTime(this.StartTime.Text.Trim());
        voucher.Taluodu = this.Taluodu.Text;
        voucher.TongStrong = this.TongStrong.Text;
        voucher.XwTime = Convert.ToDateTime (this.XwTime.Text.Trim());
        voucher.XZMode = this.xzmode.Text;
        voucher.HtCode = Convert.ToInt32(Request.QueryString["ProductID"].ToString().Trim());
        voucher.TotalFl = this.TotalFl.Text.Trim();
        Boolean flag= voucher.ModVoucher();
       
         if (flag)
        {
            Response.Write("<script>alert('保存成功!')</script>");
        }
        else
        {
            Response.Write("<script>alert('出现异常!')</script>");
        }
       
    }
    protected void lbtnclose_Click(object sender, EventArgs e)
    {
       
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -