private void addComboTypeConfig(ComboLoadType ltype, String crName, String type) { CComboConfig cfg = new CComboConfig(); cfg.ScreenCriteriaClassName = FactoryCriteria.GetFqdnClassName(crName); //"Onix.ClientCenter.Criteria." + crName; cfg.Type = type; comboTypeConfigs.Add(ltype, cfg); }
private void addLookupTypeConfig(LookupSearchType2 ltype, String codeFieldName, String nameFieldName, String extraFieldName, String extraFieldValue, String extraFieldName2, String extraFieldValue2, GetListFunction func, Type mt, String crName, TextSearchNameSpace ns, String tbAlias) { CLookupConfig cfg = new CLookupConfig(); cfg.CodeFieldName = codeFieldName; cfg.NameFieldName = nameFieldName; cfg.ExtraFieldName = extraFieldName; cfg.ExtraFieldValue = extraFieldValue; cfg.ExtraFieldName2 = extraFieldName2; cfg.ExtraFieldValue2 = extraFieldValue2; cfg.ListFunction = func; cfg.ModelType = mt; cfg.ScreenCriteriaClassName = FactoryCriteria.GetFqdnClassName(crName); cfg.SearchNameSpace = ns; cfg.TableAlias = tbAlias; lookupTypeConfigs.Add(ltype, cfg); }
private CCriteriaBase getMenuCriteria(String mnuName) { MMenuItem m = (MMenuItem)menuItemConfigs[mnuName]; if (m == null) { return(null); } if (m.ClassName.Equals("")) { return(null); } CUtil.EnableForm(false, this); CCriteriaBase cr = null; if (mnuName.Equals("mnuCashIn")) { cr = FactoryCriteria.GetObject(m.ClassName, new MCashDocIn(new CTable(""))); } else if (mnuName.Equals("mnuCashOut")) { cr = FactoryCriteria.GetObject(m.ClassName, new MCashDocOut(new CTable(""))); } else { cr = FactoryCriteria.GetObject(m.ClassName); } criteriaInitFunc(mnuName, cr); CUtil.EnableForm(true, this); return(cr); }