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