Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request["id"] != null)
            {
                U_ZCTCBU zctc1 = new U_ZCTCBU();
                DataSet  ds1   = zctc1.GetDetailByID(Request["id"].ToString());
                this.TextBox1.Text = ds1.Tables[0].Rows[0]["remark"].ToString();

                zctc1.Close();
            }
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Request["id"] != null)
            {
                U_ZCTCBU zctc1 = new U_ZCTCBU();
                DataSet  ds1   = zctc1.GetDetailByID(Request["id"].ToString());
                String   hk    = Request.QueryString["HK"];
                if (String.IsNullOrEmpty(hk))
                {
                    this.TextBox1.Text = ds1.Tables[0].Rows[0]["remark"].ToString();
                }
                else
                {
                    this.TextBox1.Text = ds1.Tables[0].Rows[0]["remark1"].ToString();
                }

                zctc1.Close();
            }
        }
    }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Context.Items["id"] != null)
            {
                U_ZCTCBU tc1 = new U_ZCTCBU();
                DataSet  ds  = tc1.GetDetailByID(Context.Items["id"].ToString());
                tc1.Close();
                if (ds.Tables[0].Rows.Count > 0)
                {
                    ViewState["id"]       = Context.Items["id"];
                    ViewState["kind"]     = ds.Tables[0].Rows[0]["kind"].ToString();
                    ViewState["parentid"] = ds.Tables[0].Rows[0]["zcid"].ToString();
                    ViewState["Bkind"]    = ds.Tables[0].Rows[0]["Bkind"].ToString();

                    Util.SetControlValue(remark, ds.Tables[0].Rows[0]["remark"]);
                    Util.SetControlValue(remark1, ds.Tables[0].Rows[0]["remark1"]);
                    Util.SetControlValue(didian, ds.Tables[0].Rows[0]["didian"]);
                    Util.SetControlValue(jieguo, ds.Tables[0].Rows[0]["jieguo"]);
                }
            }
            else
            {
                ViewState["kind"]     = Context.Items["kind"].ToString();
                ViewState["parentid"] = Context.Items["parentid"].ToString();
                ViewState["Bkind"]    = Context.Items["Bkind"].ToString();

                this.didian.Text = Page.User.Identity.Name;
                this.jieguo.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }

            ////////////////////////////////////////////////////////////
            string kind = ViewState["kind"].ToString();
            switch (kind)
            {
            case "01":
                this.dckind.Text = "尽职调查-非现场调查(档案核查)";
                this.Title       = "尽职调查-非现场调查(档案核查)";
                break;

            case "02":
                this.dckind.Text = "尽职调查-现场调查(抵质押物)";
                this.Title       = "尽职调查-现场调查(抵质押物)";
                break;

            case "03":
                this.dckind.Text = "尽职调查-现场调查(保证人)";
                this.Title       = "尽职调查-现场调查(保证人)";
                break;

            case "04":
                this.dckind.Text = "尽职调查-现场调查(借款人)";
                this.Title       = "尽职调查-现场调查(借款人)";
                break;

            default:
                this.dckind.Text = "尽职调查-非现场调查(档案核查)";
                this.Title       = "尽职调查-非现场调查(档案核查)";
                break;
            }
        }
    }
Exemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if (Context.Items["id"] != null)
            {
                U_ZCTCBU tc1 = new U_ZCTCBU();
                DataSet  ds  = tc1.GetDetailByID(Context.Items["id"].ToString());
                tc1.Close();
                if (ds.Tables[0].Rows.Count > 0)
                {
                    ViewState["id"]       = Context.Items["id"];
                    ViewState["kind"]     = ds.Tables[0].Rows[0]["kind"].ToString();
                    ViewState["parentid"] = ds.Tables[0].Rows[0]["zcid"].ToString();
                    ViewState["Bkind"]    = ds.Tables[0].Rows[0]["Bkind"].ToString();

                    Util.SetControlValue(remark, ds.Tables[0].Rows[0]["remark"]);
                    Util.SetControlValue(didian, ds.Tables[0].Rows[0]["didian"]);
                    Util.SetControlValue(jieguo, ds.Tables[0].Rows[0]["jieguo"]);
                }
            }
            else
            {
                ViewState["kind"]     = Context.Items["kind"].ToString();
                ViewState["parentid"] = Context.Items["parentid"].ToString();
                ViewState["Bkind"]    = Context.Items["Bkind"].ToString();
            }

            ////////////////////////////////////////////////////////////
            string kind = ViewState["kind"].ToString();
            switch (kind)
            {
            case "01":
                this.dckind.Text = "尽职调查-阅卷记录";
                this.Title       = "尽职调查-阅卷记录";
                break;

            case "02":
                this.dckind.Text = "尽职调查-下户记录";
                this.Title       = "尽职调查-下户记录";
                break;

            case "03":
                this.dckind.Text = "尽职调查-取证记录";
                this.Title       = "尽职调查-取证记录";
                break;

            case "04":
                this.dckind.Text = "尽职调查-报告记录";
                this.Title       = "尽职调查-报告记录";
                break;

            case "21":
                this.dckind.Text = "方案执行-协商谈判";
                this.Title       = "方案执行-协商谈判";
                break;

            case "22":
                this.dckind.Text = "方案执行-诉讼";
                this.Title       = "方案执行-诉讼";
                break;

            case "23":
                this.dckind.Text = "方案执行-申请执行";
                this.Title       = "方案执行-申请执行";
                break;

            case "24":
                this.dckind.Text = "方案执行-强制执行";
                this.Title       = "方案执行-强制执行";
                break;

            case "25":
                this.dckind.Text = "方案执行-中止执行";
                this.Title       = "方案执行-中止执行";
                break;

            case "26":
                this.dckind.Text = "方案执行-终止执行";
                this.Title       = "方案执行-终止执行";
                break;

            case "27":
                this.dckind.Text = "方案执行-办结";
                this.Title       = "方案执行-办结";
                break;

            default:
                this.dckind.Text = "尽职调查-阅卷记录";
                this.Title       = "尽职调查-阅卷记录";
                break;
            }
        }
    }