Ejemplo n.º 1
0
    private void InitializeUD01Adapter()
    {
        // Create an instance of the Adapter.
        this._ud01Adapter = new UD01Adapter(this.oTrans);
        this._ud01Adapter.BOConnect();

        // Add Adapter Table to List of Views
        // This allows you to bind controls to the custom UD Table
        this._edvUD01            = new EpiDataView();
        this._edvUD01.dataView   = new DataView(this._ud01Adapter.UD01Data.UD01);
        this._edvUD01.AddEnabled = true;
        this._edvUD01.AddText    = "New UD01";
        if ((this.oTrans.EpiDataViews.ContainsKey("UD01View") == false))
        {
            this.oTrans.Add("UD01View", this._edvUD01);
        }

        // Initialize DataTable variable
        this.UD01_Column = this._ud01Adapter.UD01Data.UD01;

        // Initialize EpiDataView field.
        this._edvV_QuoteUpdateInfoCGVer1_1View3 = ((EpiDataView)(this.oTrans.EpiDataViews["V_QuoteUpdateInfoCGVer1_1View3"]));

        // Set the parent view / keys for UD child view
        string[] parentKeyFields = new string[1];
        string[] childKeyFields  = new string[1];
        parentKeyFields[0] = "QuoteHed_Checked1_c";
        childKeyFields[0]  = "Key1";
        this._edvUD01.SetParentView(this._edvV_QuoteUpdateInfoCGVer1_1View3, parentKeyFields, childKeyFields);

        if ((this.oTrans.PrimaryAdapter != null))
        {
            // this.oTrans.PrimaryAdapter.GetCurrentDataSet(Ice.Lib.Searches.DataSetMode.RowsDataSet).Tables.Add(this._edvUD01.dataView.Table.Clone())
        }
    }
Ejemplo n.º 2
0
    public void DestroyCustomCode()
    {
        // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
        // Begin Wizard Added Object Disposal

        this.BtnCheck2.Click -= new System.EventHandler(this.BtnCheck2_Click);
        this.BtnCheck1.Click -= new System.EventHandler(this.BtnCheck1_Click);
        this.BtnCheck3.Click -= new System.EventHandler(this.BtnCheck3_Click);
        if ((this._ud01Adapter != null))
        {
            this._ud01Adapter.Dispose();
            this._ud01Adapter = null;
        }
        this._edvUD01 = null;
        this._edvV_QuoteUpdateInfoCGVer1_1View3 = null;
        this.UD01_Column = null;
        this._Key1UD01   = null;
        this._Key2UD01   = null;
        this._Key3UD01   = null;
        this._Key4UD01   = null;
        this._Key5UD01   = null;
        this.baseToolbarsManager.ToolClick  -= new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.baseToolbarsManager_ToolClickForUD01);
        this.MainController.BeforeToolClick -= new Ice.Lib.Framework.BeforeToolClickEventHandler(this.MainController_BeforeToolClickForUD01);
        this.MainController.AfterToolClick  -= new Ice.Lib.Framework.AfterToolClickEventHandler(this.MainController_AfterToolClickForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_Row.EpiRowChanged       -= new EpiRowChanged(this.V_QuoteUpdateInfoCGVer1_1View3_AfterRowChangeForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_DataView.ListChanged    -= new ListChangedEventHandler(this.V_QuoteUpdateInfoCGVer1_1View3_DataView_ListChangedForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_DataView                 = null;
        this.V_QuoteUpdateInfoCGVer1_1View3_Row.BeforeResetDataView -= new Ice.Lib.Framework.EpiDataView.BeforeResetDataViewDelegate(this.V_QuoteUpdateInfoCGVer1_1View3_BeforeResetDataViewForUD01);
        this.V_QuoteUpdateInfoCGVer1_1View3_Row.AfterResetDataView  -= new Ice.Lib.Framework.EpiDataView.AfterResetDataViewDelegate(this.V_QuoteUpdateInfoCGVer1_1View3_AfterResetDataViewForUD01);
        // End Wizard Added Object Disposal

        // Begin Custom Code Disposal

        // End Custom Code Disposal
    }
Ejemplo n.º 3
0
    private void CallUD01AdapterGetByIDMethod(string stringId)
    {
        try
        {
            // Declare and Initialize EpiDataView Variables
            // Declare and create an instance of the Adapter.
            UD01Adapter adapterUD01 = new UD01Adapter(this.oTrans);
            adapterUD01.BOConnect();

            // Declare and Initialize Variables
            // TODO: You may need to replace the default initialization with valid values as required for the BL method call.

            // Call Adapter method
            bool result = adapterUD01.GetByID(stringId);

            // Cleanup Adapter Reference
            adapterUD01.Dispose();
        }
        catch (System.Exception ex)
        {
            ExceptionBox.Show(ex);
        }
    }