Exemplo n.º 1
0
 public void ExitControl(IUimFormControlContext controlContext)
 {
     try
     {
         //Lookup
         ScriptMain m = new ScriptMain();
         m.LookupRestID(controlContext, controlContext.ParentForm, "identityNo");
         m.LookupRestPolicy(controlContext, controlContext.ParentForm, "policyNo");
     }
     catch
     (Exception e)
     {
         string error = e.StackTrace;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 3
0
        public void ExitControl(IUimFormControlContext controlContext)
        {
            try
            {
                //Lookup
                ScriptMain m = new ScriptMain();

                m.LookupRestID(controlContext, controlContext.ParentForm, "identityNo");
                m.LookupRestPolicy(controlContext, controlContext.ParentForm, "policyNo");
                m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_bankName", 1);

                //  Implement to Province - Postcode.(Zipcode)
                //case 1
                if (controlContext.ControlName == "ddl_address_province") //ddl_Province ??
                {
                    //set Value Province
                    m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_address_province", 2);//ddl_Province ??
                    // Fliter Zipcode Post Code

                    string value_postCode = controlContext.ParentForm.UimDataContext.FindFieldDataContext("address_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 DROPDWON ZIPCODE");

                        List <ScriptMain.LookupDropDownsZipcode> listZipcode = m.restDropDownZipcode(controlContext.ParentForm.UimDataContext, "POSTCODEMASTER", value_postCode);
                        m.setDropdownZipcode(controlContext.ParentForm, listZipcode, "ddl_address_postalCode");// ddl_zipcode ??
                    }
                }
                if (controlContext.ControlName == "ddl_address_postalCode")                                       // ddl_zipcode ??
                {
                    m.parseValueDropdown(controlContext, controlContext.ParentForm, "ddl_address_postalCode", 1); // ddl_zipcode ??
                }
            }
            catch
            (Exception e)
            {
                string error = e.StackTrace;
            }
        }