Exemplo n.º 1
0
 public bool AddDictionDtl(DictionDtl dtl, ValueTypeE dicType, out string result)
 {
     result = "";
     if (!PubMaster.Mod.DicSql.AddDictionDtl(dtl, dicType))
     {
         result = "添加失败!";
         return(false);
     }
     mLog.Info(true, string.Format(@"在字典ID【{0}】里,添加字典细节{1}", dtl.diction_id, dtl.ToString()));
     Refresh(false, true);
     return(true);
 }
Exemplo n.º 2
0
        public bool EditDictionDtl(DictionDtl dtl, ValueTypeE dicType, out string result)
        {
            result = "";
            DictionDtl d = GetDictionDtl(dtl.id);

            SetValue(d, dtl, dicType);
            if (!PubMaster.Mod.DicSql.EditDicDtlValue(d, dicType))
            {
                result = "添加失败!";
                return(false);
            }
            mLog.Info(true, string.Format(@"在字典ID【{0}】里,编辑字典细节{1}", d.diction_id, d.ToString()));
            Refresh(false, true);
            return(true);
        }