Exemple #1
0
    protected void ImgNewButton_Click(object sender, ImageClickEventArgs e)
    {
        ChangeStatus();
        this.hidZT.Value = "Add";
        string CKDH = GetCKDJH();

        txtCKDH.Text = CKDH;
        txtZDR.Text  = CUSER.UserID;
        string strdate = DateTime.Now.ToShortDateString();

        txtZDRQ.Text = strdate;
        txtFYRQ.Text = strdate;
        this.drpFHCK.SelectedValue = "请选择";
        this.drpCYS.SelectedValue  = "请选择";
        this.drpCKLX.SelectedValue = "请选择";
        this.drpSHDW.SelectedValue = "请选择";
        this.txtCPH.Text           = "";
        this.txtMDD.Text           = "";
        this.txtNCDJ.Text          = "";
        this.txtStatus.Text        = "新建";
        try
        {
            DataSet ds = QTCKQuery.GetItemJieGou();
            Session["QTCKITEM"] = ds;
        }
        catch
        {
            this.PrintfError("新建时获得表结构出现错误,请重试");
            return;
        }
    }