| | |
| | | { |
| | | get |
| | | { |
| | | if (_ph == null) _ph = new PostgreHelper(DbEnum.langfang); |
| | | if (_ph == null) _ph = new PostgreHelper(); |
| | | |
| | | return _ph; |
| | | } |
| | |
| | | |
| | | public static int InsertMeta(SysMeta meta) |
| | | { |
| | | List<DbParameter> list = Tool.GetParams<SysMeta>(insertMeta, meta); |
| | | List<DbParameter> list = Tools.GetParams<SysMeta>(insertMeta, meta); |
| | | |
| | | object obj = Helper.GetScalar(insertMeta, list.ToArray()); |
| | | |
| | |
| | | |
| | | vd.Meta = new SysMeta(); |
| | | vd.Meta.name = fi.Name; |
| | | vd.Meta.dirid = Tool.DirId; |
| | | //vd.Meta.dirid = Common.DirId; |
| | | vd.Meta.depid = 1; |
| | | vd.Meta.verid = 0; |
| | | vd.Meta.type = fi.Extension.ToLower().Replace(".", ""); |
| | | vd.Meta.sizes = Tool.SizeToMb(fi.Length); |
| | | vd.Meta.create_user = Tool.UserId; |
| | | vd.Meta.sizes = Tools.SizeToMb(fi.Length); |
| | | vd.Meta.create_user = CommonProp.UserId; |
| | | } |
| | | |
| | | public static void ImportFiles(ObservableCollection<ViewData> viewDatas, string target, int start) |