/// <summary>
        /// Executes when the Document is first loaded for the task by the Extraction
        /// module, after all of the runtime setup is complete.
        ///</summary>
        /// <param name="dataContext">The context object for the document.</param>
        public void FormLoad(IUimDataEntryFormContext form)
        {
            try
            {
                IUimDataContext      dataContext = form.UimDataContext;
                IUimFieldDataContext hidden      = dataContext.FindFieldDataContext("hiddenCOMMONS");
                ScriptMain           m           = new ScriptMain();
                m.hiddenSection(form, hidden.ValueAsString);
                prelist = m.getLabelField(form);
                //Custom Table
                prelistTable = m.getLabelTable(form);


                //set Dropdowmn
                List <ScriptMain.LookupDropDownsBankName> listBank = m.restDropDownBankName(dataContext, "BANKMASTER");
                m.setDropdownBankName(form, listBank, "ddl_changeICP_bankName");

                List <ScriptMain.LookupDropDownsProvince> listProvince = m.restDropDownProvince(dataContext, "PROVINCEMASTER");
                //
                m.setDropdownProvince(form, listProvince, "ddl_changeAddress_province");  //ddl_Province ??
            }
            catch (Exception e)
            {
                string error = e.StackTrace;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Executes when the Document is first loaded for the task by the Extraction
        /// module, after all of the runtime setup is complete.
        ///</summary>
        /// <param name="dataContext">The context object for the document.</param>
        public void FormLoad(IUimDataEntryFormContext form)
        {
            IUimDataContext      dataContext = form.UimDataContext;
            IUimFieldDataContext hidden      = dataContext.FindFieldDataContext("hiddenCOMMONS");
            ScriptMain           m           = new ScriptMain();

            m.hiddenSection(form, hidden.ValueAsString);


            List <ScriptMain.LookupDropDownsBankName> list = m.restDropDownBankName(dataContext, "BANKMASTER");

            m.setDropdownBankName(form, list, "ddl_bankName");
            //ddl_bankName
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Executes when the Document is first loaded for the task by the Extraction
        /// module, after all of the runtime setup is complete.
        ///</summary>
        /// <param name="dataContext">The context object for the document.</param>
        public void FormLoad(IUimDataEntryFormContext form)
        {
            try
            {
                IUimDataContext      dataContext = form.UimDataContext;
                IUimFieldDataContext hidden      = dataContext.FindFieldDataContext("hiddenCOMMONS");
                ScriptMain           m           = new ScriptMain();
                m.hiddenSection(form, hidden.ValueAsString);
                prelist = m.getLabelField(form);
                //Lookup parameter

                List <ScriptMain.LookupDropDownsBankName> list = m.restDropDownBankName(dataContext, "BANKMASTER");
                m.setDropdownBankName(form, list, "ddl_bankName");
                //ddl_bankName
            }
            catch (Exception e)
            {
                string error = e.StackTrace;
            }
        }