コード例 #1
0
 private void showACC_ChartOfAccountLabel3Grid()
 {
     if (ddlStatusSearch.SelectedValue == "0")
     {
         gvACC_ChartOfAccountLabel3.DataSource = ACC_ChartOfAccountLabel3Manager.GetAllACC_ChartOfAccountLabel3s();
     }
     else
     {
         gvACC_ChartOfAccountLabel3.DataSource = ACC_ChartOfAccountLabel3Manager.GetAllACC_ChartOfAccountLabel3s().FindAll(x => (x.RowStatusID.ToString() == ddlStatusSearch.SelectedValue));
     }
     gvACC_ChartOfAccountLabel3.DataBind();
 }
コード例 #2
0
    private void loadACC_ChartOfAccountLabel3()
    {
        ListItem li = new ListItem("Select ACC_ChartOfAccountLabel3...", "0");

        ddlACC_ChartOfAccountLabel3.Items.Add(li);

        List <ACC_ChartOfAccountLabel3> aCC_ChartOfAccountLabel3s = new List <ACC_ChartOfAccountLabel3>();

        aCC_ChartOfAccountLabel3s = ACC_ChartOfAccountLabel3Manager.GetAllACC_ChartOfAccountLabel3s();
        foreach (ACC_ChartOfAccountLabel3 aCC_ChartOfAccountLabel3 in aCC_ChartOfAccountLabel3s)
        {
            ListItem item = new ListItem(aCC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel3Name.ToString(), aCC_ChartOfAccountLabel3.ACC_ChartOfAccountLabel3ID.ToString());
            ddlACC_ChartOfAccountLabel3.Items.Add(item);
        }
    }
コード例 #3
0
 private void showACC_ChartOfAccountLabel3Grid()
 {
     gvACC_ChartOfAccountLabel3.DataSource = ACC_ChartOfAccountLabel3Manager.GetAllACC_ChartOfAccountLabel3s();
     gvACC_ChartOfAccountLabel3.DataBind();
 }