Beispiel #1
0
    private void initial(string id)
    {
        DAl.Sample sampleobj = new DAl.Sample();

        DataTable dttype = sampleobj.GetMode("", "rwtype", "");

        drop_rwtype.DataSource     = dttype;
        drop_rwtype.DataTextField  = "name";
        drop_rwtype.DataValueField = "code";
        drop_rwtype.DataBind();
        drop_rwtype.SelectedValue = id;
        if (drop_rwtype.SelectedIndex == 0)
        {
            lbl_reportNO.Text   = "报告标识";
            lbl_AccessTime.Text = "接到时间";

            DataTable dtmode = sampleobj.GetMode("", "mode", "1");
            drop_mode.DataSource     = dtmode;
            drop_mode.DataTextField  = "name";
            drop_mode.DataValueField = "code";
            drop_mode.DataBind();

            DataTable dtpurpose = sampleobj.GetPurpose("", 0);
            drop_ItemList.DataSource     = dtpurpose;
            drop_ItemList.DataTextField  = "ItemName";
            drop_ItemList.DataValueField = "ItemID";
            drop_ItemList.DataBind();
        }
        else
        {
            lbl_reportNO.Text   = "报告标识";
            lbl_AccessTime.Text = "委托时间";


            DataTable dtmode = sampleobj.GetMode("", "mode", "");
            drop_mode.DataSource     = dtmode;
            drop_mode.DataTextField  = "name";
            drop_mode.DataValueField = "code";
            drop_mode.DataBind();
            DataTable dtpurpose = sampleobj.GetPurpose("", 1);
            drop_ItemList.DataSource     = dtpurpose;
            drop_ItemList.DataTextField  = "ItemName";
            drop_ItemList.DataValueField = "ItemID";
            drop_ItemList.DataBind();
        }



        txt_lxtel.Text       = "";
        txt_lxman.Text       = "";
        txt_lxemail.Text     = "";
        txt_address.Text     = "";
        txt_ReportID.Text    = "";
        txt_CreateDate.Text  = "";
        txt_Projectname.Text = "";
        txt_wtdepart.Text    = "";
        txt_xmfzr.Text       = "";
        drop_urgent.Text     = "";
    }
Beispiel #2
0
    private void initial()
    {
        DAl.Sample sampleobj = new DAl.Sample();
        drop_rwtype.SelectedIndex = 0;

        lbl_reportNO.Text   = "报告标识";
        lbl_AccessTime.Text = "委托时间";
        panel_wtdw.Visible  = true;

        DataTable dtmode = sampleobj.GetMode("", "mode", "");

        drop_mode.DataSource     = dtmode;
        drop_mode.DataTextField  = "name";
        drop_mode.DataValueField = "code";
        drop_mode.DataBind();



        DataTable dtpurpose = sampleobj.GetPurpose("", 1);

        drop_ItemList.DataSource     = dtpurpose;
        drop_ItemList.DataTextField  = "ItemName";
        drop_ItemList.DataValueField = "ItemID";
        drop_ItemList.DataBind();
        txt_lxtel.Text       = "";
        txt_lxman.Text       = "";
        txt_lxemail.Text     = "";
        txt_address.Text     = "";
        txt_ReportID.Text    = "";
        txt_CreateDate.Text  = "";
        txt_Projectname.Text = "";
        txt_wtdepart.Text    = "";
        txt_xmfzr.Text       = "";
        drop_urgent.Text     = "";
    }
Beispiel #3
0
    protected void initial()
    {
        DAl.Sample typeobj = new DAl.Sample();
        DataTable  dt      = typeobj.GetSampleType("");
        DataTable  dtItem  = typeobj.GetPurpose("", 1);

        drop_ItemName.DataSource     = dtItem;
        drop_ItemName.DataTextField  = "ItemName";
        drop_ItemName.DataValueField = "ItemID";
        drop_ItemName.DataBind();
        cb_ItemList.DataSource     = dt;
        cb_ItemList.DataTextField  = "ClassName";
        cb_ItemList.DataValueField = "ClassID";
        cb_ItemList.DataBind();
    }
Beispiel #4
0
    protected void drop_rwtype_SelectedIndexChanged(object sender, EventArgs e)
    {
        DAl.Sample sampleobj = new DAl.Sample();
        if (drop_rwtype.SelectedIndex == 0)
        {
            lbl_reportNO.Text   = "报告标识";
            lbl_AccessTime.Text = "接到时间";

            DataTable dtmode = sampleobj.GetMode("", "mode", "1");
            drop_mode.DataSource     = dtmode;
            drop_mode.DataTextField  = "name";
            drop_mode.DataValueField = "code";
            drop_mode.DataBind();
            DataTable dtpurpose = sampleobj.GetPurpose("", 0);
            drop_ItemList.DataSource     = dtpurpose;
            drop_ItemList.DataTextField  = "ItemName";
            drop_ItemList.DataValueField = "ItemID";
            drop_ItemList.DataBind();
        }
        else
        {
            lbl_reportNO.Text   = "报告标识";
            lbl_AccessTime.Text = "委托时间";

            DataTable dtmode = sampleobj.GetMode("", "mode", "");
            drop_mode.DataSource     = dtmode;
            drop_mode.DataTextField  = "name";
            drop_mode.DataValueField = "code";
            drop_mode.DataBind();
            DataTable dtpurpose = sampleobj.GetPurpose("", 1);
            drop_ItemList.DataSource     = dtpurpose;
            drop_ItemList.DataTextField  = "ItemName";
            drop_ItemList.DataValueField = "ItemID";
            drop_ItemList.DataBind();
        }
    }