Exemplo n.º 1
0
    private void ComboBoxBinding()
    {
        DataSet dsSalesman             = GetComboxDs("SalesList");
        DataSet dsLocation             = GetComboxDs("LocationList");
        DataSet dsUnit                 = GetComboxDs("UnitBinding");
        DataSet dsItem                 = GetComboxDs("ItemBinding");
        DataSet dsKind                 = GetComboxDs("QtyKindBinding");
        DataSet dsCurrencysList        = GetComboxDs("CurrencysInvoice");
        DataSet dsCurrencysListForeign = GetComboxDs("CurrencysInvoiceForeign");
        DataSet dsShowIn               = GetComboxDs("GetShowIn");
        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();



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

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

        StoreCurrInvoiceForeign.DataSource = dsCurrencysListForeign;
        StoreCurrInvoiceForeign.DataBind();

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

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

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

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

        DataSet dsCur = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_AirExport_CoLoaderIn_SP", new List <IFields> {
            dal.CreateIFields()
            .Append("Option", "GetCurrency").Append("air_STAT", FSecurityHelper.CurrentUserDataGET()[12])
        }).GetList();

        StoreCurrForeign.DataSource = dsCur.Tables[0];
        StoreCurrForeign.DataBind();

        StoreCurrLocal.DataSource = dsCur.Tables[1];
        StoreCurrLocal.DataBind();

        StoreShowIn.DataSource = dsShowIn;
        StoreShowIn.DataBind();
    }
Exemplo n.º 2
0
    protected void StoreCurrLocal_OnRefreshData(object sender, StoreRefreshDataEventArgs e)
    {
        DataSet dsCur = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_AirExport_CoLoaderIn_SP", new List <IFields> {
            dal.CreateIFields()
            .Append("Option", "GetCurrency").Append("air_STAT", FSecurityHelper.CurrentUserDataGET()[12])
        }).GetList();

        StoreCurrForeign.DataSource = dsCur.Tables[0];
        StoreCurrForeign.DataBind();

        StoreCurrLocal.DataSource = dsCur.Tables[1];
        StoreCurrLocal.DataBind();
    }