示例#1
0
    private void ComboBoxBinding()
    {
        DataSet dsLocation      = GetComboxDs("LocationList");
        DataSet dsUnit          = GetComboxDs("UnitBinding");
        DataSet dsItem          = GetComboxDs("ItemBinding");
        DataSet dsKind          = GetComboxDs("QtyKindBinding");
        DataSet dsCurrencysList = GetComboxDs("CurrencysInvoice");
        DataSet dsGetItem       = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_GetItem_SP", new List <IFields> {
            dal.CreateIFields()
            .Append("Option", "GetItem").Append("STAT", FSecurityHelper.CurrentUserDataGET()[12]).Append("SYS", "A")
        }).GetList();

        StoreGetItem.DataSource = dsGetItem;
        StoreGetItem.DataBind();

        StoreCurrInvoice.DataSource = dsCurrencysList;
        StoreCurrInvoice.DataBind();

        StoreLocation.DataSource = dsLocation;
        StoreLocation.DataBind();

        StoreUnit.DataSource = dsUnit;
        StoreUnit.DataBind();

        StoreItem.DataSource = dsItem;
        StoreItem.DataBind();

        StoreKind.DataSource = dsKind;
        StoreKind.DataBind();

        DataSet dsSalesman = GetComboxDs("SalesList");

        StoreSalesman.DataSource = dsSalesman;
        StoreSalesman.DataBind();

        ControlBinder.CmbBinder(StoreAgentLocal, "PPCC", "A");
    }