//翻译DataTable中的枚举 private void TransferEnum(DataTable dt, DataTable dtFields, DataRow rowDataSetDefine) { var enumService = FormulaHelper.GetService <IEnumService>(); UIFO uiFO = new UIFO(); foreach (DataRow field in dtFields.Rows) { string code = field["Code"].ToString(); string enumKey = field["EnumKey"].ToString(); if (enumKey == "") { continue; } uiFO.TransferEnum(dt, rowDataSetDefine["ConnName"].ToString(), rowDataSetDefine["TableNames"].ToString().Split(',')[0], code, enumKey); } }
//翻译DataTable中的枚举 private void TransferEnum(DataTable dt, S_R_DataSet dataSet) { //if (dtFields == null) // return; UIFO uiFO = new UIFO(); foreach (var field in dataSet.S_R_Field) { string code = field.Code; string enumKey = field.EnumKey; if (string.IsNullOrEmpty(enumKey)) { continue; } //uiFO.TransferEnum(dt, code, dataSet.ConnName, dataSet.TableNames.Split(',')[0], enumKey); uiFO.TransferEnum(dt, dataSet.ConnName, dataSet.TableNames.Split(',')[0], code, enumKey); } }