//Methods public IEC GenerateEC(string name, System.Type type) { if (type == typeof(BO)) { this.parsedEC = new BO(name.Split('.')[0], name.Split('.')[1]); } else if (type == typeof(DT)) { this.parsedEC = new DT(name); } else if (type == typeof(Ubaq)) { this.parsedEC = new Ubaq(name.Split('.')[0], name.Split('.')[1]); } else if (type == typeof(FC)) { this.parsedEC = new FC(name); } else if (type == typeof(DBD)) { throw new NotImplementedException(); } else if (type == typeof(CSG)) { this.parsedEC = new CSG(name); } else if (type == typeof(GH)) { this.parsedEC = new GH(); } else if (type == typeof(DT)) { throw new NotImplementedException(); } else if (type == typeof(Crystal)) { throw new NotImplementedException(); } else if (type == typeof(SSRS)) { this.parsedEC = new SSRS(name); } else if (type == typeof(BT)) { throw new NotImplementedException(); } else { throw new Exception("EpicorCustomization Not Recognized"); } return(parsedEC); }
public void SetUp() { _expectedValues = new Dictionary <string, decimal> { { "Kibi", 1024m }, { "Mebi", 1048576m }, { "Gibi", 1073741824m }, { "Tebi", 1099511627776m }, { "Pebi", 1125899906842624m }, { "Exbi", 1152921504606846976 }, { "Zebi", 1180591620717411303424m }, { "Yobi", 1208925819614629174706176m } }; _prefixes = new IEC(); }
public void Build(IEC EC) { System.Type type = EC.GetType(); if (EC is IBPM) { new BPMProjectFactory().BuildProject((EC as IBPM), ECMTConfigManager.Singleton.ECMTConfig); } else if (EC is IUI) { new UIProjectFactory().BuildProject((EC as IUI), ECMTConfigManager.Singleton.ECMTConfig); } else if (EC is IEL) { new ELProjectFactory().Open((EC as IEL), ECMTConfigManager.Singleton.ECMTConfig); } else if (EC is IRPT) { new RPTProjectFactory().Open((EC as IRPT), ECMTConfigManager.Singleton.ECMTConfig); } else { throw new Exception("Epicor Customization Not Recognized"); } }