示例#1
0
文件: Purchase.aspx.cs 项目: anam/abs
    private void loadQualityUnit()
    {
        List <Inv_QualityUnit> qualityUnits = new List <Inv_QualityUnit>();

        qualityUnits = Inv_QualityUnitManager.GetAllInv_QualityUnits();
        foreach (Inv_QualityUnit qualityUnit in qualityUnits)
        {
            ListItem item = new ListItem(qualityUnit.QualityUnitName.ToString(), qualityUnit.Inv_QualityUnitID.ToString());
            ddlQualityUnit.Items.Add(item);
        }
    }
 private void showInv_QualityUnitGrid()
 {
     gvInv_QualityUnit.DataSource = Inv_QualityUnitManager.GetAllInv_QualityUnits();
     gvInv_QualityUnit.DataBind();
 }