コード例 #1
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);
     }
     catch (Exception e)
     {
         string error = e.StackTrace;
     }
 }
コード例 #2
0
 public void ExitControl(IUimFormControlContext controlContext)
 {
     try
     {
         //Lookup
         ScriptMain m = new ScriptMain();
         // m.LookupIDCardSoap(controlContext, controlContext.ParentForm, "identityNo");
         m.LookupRestID(controlContext, controlContext.ParentForm, "identityNo");
         m.LookupRestPolicy(controlContext, controlContext.ParentForm, "policyNo");
         m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_bankName", 1);
     }
     catch
     (Exception e)
     {
         string error = e.StackTrace;
     }
 }
コード例 #3
0
 public void ExitControl(IUimFormControlContext controlContext)
 {
     try
     {
         //Lookup
         ScriptMain m = new ScriptMain();
         // m.Lookup(controlContext, getFrom, "policyNo");
         IUimDataContext datacontext = controlContext.ParentForm.UimDataContext;
         m.LookupRestPolicy(controlContext, controlContext.ParentForm, "policyNo");
         m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_partialWithdrawal_bankName", 1);
     }
     catch
     (Exception e)
     {
         string error = e.StackTrace;
     }
 }
コード例 #4
0
        public void ExitControl(IUimFormControlContext controlContext)
        {
            try
            {
                //Lookup
                ScriptMain m = new ScriptMain();

                m.LookupRestPolicy(controlContext, controlContext.ParentForm, "policyNo");
                m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_changeICP_bankName", 1);


                if (controlContext.ControlName == "ddl_changeAddress_province") //ddl_Province ??
                {
                    // Set Null Zipcode at here
                    m.setDropdownNull(controlContext.ParentForm, "ddl_changeAddress_zipCode");
                    m.parseValueEmpty(controlContext.ParentForm, "ddl_changeAddress_zipCode");//แก้ตรงนี้ <-------
                    //System.Windows.MessageBox.Show("VALUE Null!!");

                    //set Value Province
                    m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_changeAddress_province", 2);//ddl_Province ??
                    // Fliter Zipcode Post Code

                    string value_postCode = controlContext.ParentForm.UimDataContext.FindFieldDataContext("changeAddress_provinceCode").ValueAsString; //Province ??  เพื่อเอา Code ไป search Zipcode
                    // System.Windows.MessageBox.Show("VALUE Post_Code="+ value_postCode);

                    if (!string.IsNullOrEmpty(value_postCode))
                    {
                        // System.Windows.MessageBox.Show("START SET DROPDOWN ZIPCODE");
                        List <ScriptMain.LookupDropDownsZipcode> listZipcode = new List <ScriptMain.LookupDropDownsZipcode>();
                        listZipcode = m.restDropDownZipcode(controlContext.ParentForm.UimDataContext, "POSTCODEMASTER", value_postCode);
                        m.setDropdownZipcode(controlContext.ParentForm, listZipcode, "ddl_changeAddress_zipCode");// ddl_zipcode ??
                    }
                }
                if (controlContext.ControlName == "ddl_changeAddress_zipCode")                                       // ddl_zipcode ??
                {
                    m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_changeAddress_zipCode", 1); // ddl_zipcode ??
                }
            }
            catch
            (Exception e)
            {
                string error = e.StackTrace;
            }
        }
コード例 #5
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;
            }
        }
コード例 #6
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);

                List <ScriptMain.LookupDropDownsBankName> list = m.restDropDownBankName(dataContext, "BANKMASTER");
                m.setDropdownBankName(form, list, "ddl_bankName");
                //ddl_bankName
                List <ScriptMain.LookupDropDownsProvince> listProvince = m.restDropDownProvince(dataContext, "PROVINCEMASTER");
                //
                m.setDropdownProvince(form, listProvince, "ddl_assignee_address_province");  //ddl_Province ??
            }
            catch (Exception e)
            {
                string error = e.StackTrace;
            }
        }
コード例 #7
0
 public void DocumentClosing(IUimDataContext dataContext, CloseReasonCode reason)
 {
     ScriptMain m = new ScriptMain();
     //m.jsonFormat(dataContext);
 }