예제 #1
0
    /// <summary>
    /// 绑定数据
    /// </summary>
    private void Bind()
    {
        DataTable dt = BGBudItemsLibrariesManager.GetAllBG_BudItemsLibrariesDept();

        stBudget.DataSource = dt;
        stBudget.DataBind();
    }
예제 #2
0
    //protected void btnuse_DirectClick(object sender, DirectEventArgs e)
    //{
    //    Window1.Hidden = true;
    //    WinAdd.Hidden = true;
    //    DataTable bi = BGBudItemsLibrariesManager.GetBGBudItemsLibrariesBybudID(common.IntSafeConvert(BudItID.Value));
    //    if (bi != null && bi.Rows.Count >= 0)
    //    {
    //        string readuse = "";
    //        //txtBIAppReaCon.Text = bi.Rows[0]["BILAppReaCon"].ToString();
    //        //txtBIExpGistExp.Text = bi.Rows[0]["BILExpGistExp"].ToString();
    //        //txtBILongGoal.Text = bi.Rows[0]["BILongGoal"].ToString();
    //        //txtBIOthExpProb.Text = bi.Rows[0]["BILOthExpProb"].ToString();
    //        //txtBIYearGoal.Text = bi.Rows[0]["BILYearGoal"].ToString();
    //        //txtProDesc.Text = bi.Rows[0]["BILProDescrip"].ToString();
    //        readuse += bi.Rows[0]["BILProDescrip"].ToString() + "*";
    //        readuse += bi.Rows[0]["BILAppReaCon"].ToString() + "*";
    //        readuse += bi.Rows[0]["BILExpGistExp"].ToString() + "*";
    //        readuse += bi.Rows[0]["BILLongGoal"].ToString() + "*";
    //        readuse += bi.Rows[0]["BILYearGoal"].ToString() + "*";
    //        readuse += bi.Rows[0]["BILOthExpProb"].ToString();
    //        string htruse = HttpUtility.UrlEncode(readuse);
    //        Response.Redirect("BudgetEditAddPage.aspx?htruse=" + htruse, true);
    //        //TFBIProDescrip.Text
    //        //TFBILAppReaCon.Text
    //        //TFBILExpGistExp.Text
    //        //TFBILLongGoal.Text
    //        //TFBILYearGoal.Text
    //        //TFBILOthExpProb.Text
    //    }
    //}
    protected void btnuse_Click(object sender, EventArgs e)
    {
        DataTable bi = BGBudItemsLibrariesManager.GetBGBudItemsLibrariesBybudID(common.IntSafeConvert(BudItID.Value));

        if (bi != null && bi.Rows.Count >= 0)
        {
            //string readuse = "";
            txtBIAppReaCon1.Text  = bi.Rows[0]["BILAppReaCon"].ToString();
            txtBIExpGistExp1.Text = bi.Rows[0]["BILExpGistExp"].ToString();
            txtBILongGoal1.Text   = bi.Rows[0]["BILLongGoal"].ToString();
            txtBIOthExpProb1.Text = bi.Rows[0]["BILOthExpProb"].ToString();
            txtBIYearGoal1.Text   = bi.Rows[0]["BILYearGoal"].ToString();
            txtProDesc1.Text      = bi.Rows[0]["BILProDescrip"].ToString();
            //readuse += bi.Rows[0]["BILProDescrip"].ToString() + "*";
            //readuse += bi.Rows[0]["BILAppReaCon"].ToString() + "*";
            //readuse += bi.Rows[0]["BILExpGistExp"].ToString() + "*";
            //readuse += bi.Rows[0]["BILLongGoal"].ToString() + "*";
            //readuse += bi.Rows[0]["BILYearGoal"].ToString() + "*";
            //readuse += bi.Rows[0]["BILOthExpProb"].ToString();
            //string htruse = HttpUtility.UrlEncode(readuse);
            //Response.Redirect("BudgetEditAddPage.aspx?htruse=" + htruse, true);
            //TFBIProDescrip.Text
            //TFBILAppReaCon.Text
            //TFBILExpGistExp.Text
            //TFBILLongGoal.Text
            //TFBILYearGoal.Text
            //TFBILOthExpProb.Text
        }
    }
예제 #3
0
    private void ItemsLibBind(int budid)
    {
        //GetBGBudItemsLibrariesbudID
        DataTable bi = BGBudItemsLibrariesManager.GetBGBudItemsLibrariesBybudID(budid);

        if (bi != null)
        {
            cmbProProper.SelectedItem.Text = bi.Rows[0]["BILAttr"].ToString();
            cmbFunSub.SelectedItem.Text    = bi.Rows[0]["BILFunSub"].ToString();
            //TFBICode.Text = budid.ToString();//bi.Rows[0]["BICode"].ToString();
            TFProName.Text = bi.Rows[0]["BILProName"].ToString();
            //TFBIPlanHz.Text = bi.Rows[0]["BILPlanHz"].ToString();
            //TFStartTime.Text = bi.Rows[0]["BILStaTime"].ToString();
            //TFEndTime.Text = bi.Rows[0]["BILEndTime"].ToString();
            //TFBICharger.Text = bi.Rows[0]["BILCharger"].ToString();
            cmbBIProType.SelectedItem.Text = bi.Rows[0]["BILProType"].ToString();
            //cmbPayProType.SelectedItem.Value = bi.Rows[0]["PIID"].ToString();
            TFConNum.Text = Convert.ToDecimal(bi.Rows[0]["BILMon"]).ToString("f8").TrimEnd('0').TrimEnd('.');
            //TFReportTime.Text = bi.Rows[0]["BIReportTime"].ToString();
            TFBIProDescrip.Text  = bi.Rows[0]["BILProDescrip"].ToString();
            TFBILAppReaCon.Text  = bi.Rows[0]["BILAppReaCon"].ToString();
            TFBILExpGistExp.Text = bi.Rows[0]["BILExpGistExp"].ToString();
            TFBILLongGoal.Text   = bi.Rows[0]["BILLongGoal"].ToString();
            TFBILOthExpProb.Text = bi.Rows[0]["BILOthExpProb"].ToString();
            TFBILYearGoal.Text   = bi.Rows[0]["BILYearGoal"].ToString();
        }
    }
예제 #4
0
    private void PayIncomeBind()
    {
        int       pIID = common.IntSafeConvert(cb4.SelectedItem.Value);
        DataTable dt   = BGBudItemsLibrariesManager.GetBGBudItemsLibrariesProject(pIID);

        stBudget.DataSource = dt;
        stBudget.DataBind();
    }
예제 #5
0
    private void DepBind()
    {
        depid = common.IntSafeConvert(cb2.SelectedItem.Value);
        DataTable dt = BGBudItemsLibrariesManager.GetBGBudItemsLibraries(depid);

        stBudget.DataSource = dt;
        stBudget.DataBind();
    }
    /// <summary>
    /// 绑定数据
    /// </summary>
    private void HisBugBind()
    {
        int       depid = common.IntSafeConvert(cbDepment.SelectedItem.Value);
        int       year  = common.IntSafeConvert(cmbyear.SelectedItem.Value);
        DataTable dt    = BGBudItemsLibrariesManager.GetExamineBG_BudItemsLibrariesByDept(depid, year);

        StoreHisBug.DataSource = dt;
        StoreHisBug.DataBind();
    }