示例#1
0
 private static MasterLabelInfo PO2VO(MasterLabelDef def)
 {
     MasterLabelInfo inf = new MasterLabelInfo();
     inf.id = def.id;
     inf.vc = def.vc;
     inf.family = def.family;
     inf.editor = def.editor;
     inf.code = def.code;
     inf.cdt = Convert.ToDateTime(def.cdt);
     inf.udt = Convert.ToDateTime(def.udt);
     return inf;
 }
示例#2
0
 private static MasterLabelDef VO2PO(MasterLabelInfo info)
 {
     MasterLabelDef def = new MasterLabelDef();
     def.id = info.id;
     def.vc = info.vc.ToUpper();
     def.family = info.family;
     def.code = info.code.ToUpper();
     def.editor = info.editor;
     def.udt = info.udt.ToString("yyyy-MM-dd HH:mm:ss");
     def.cdt = info.cdt.ToString("yyyy-MM-dd HH:mm:ss");
     return def;
 }