public static void write(HanderType HanderType, TableBase tableBase) { string section = Convert.ToString(HanderType); StringBuilder builder_string = new StringBuilder(); switch (HanderType) { case HanderType.custom: cust_customer cs = tableBase as cust_customer; string info = "插入客户:" + cs.cust_name + " "; //WritePrivateProfileString(section,"add","") break; case HanderType.linkman: break; case HanderType.report: break; case HanderType.share: break; case HanderType.workplane: break; default: break; } }
/// <summary> /// 判断当前人的缓存数据在不在 /// </summary> public static bool check_Self(HanderType HanderType, string guid) { bool result = false; try { if (!string.IsNullOrEmpty(guid)) { switch (HanderType) { case HanderType.custom: if (cust_customer_handle.dic_Self.ContainsKey(guid)) { result = true; } break; case HanderType.linkman: if (cust_linkman_handle.dic_Self.ContainsKey(guid)) { result = true; } break; case HanderType.report: if (workreport_handle.dic_Self.ContainsKey(guid)) { result = true; } break; case HanderType.workplane: if (workplan_handle.dic_Self.ContainsKey(guid)) { result = true; } break; case HanderType.follow: if (follow_up_handle.dic_Self.ContainsKey(guid)) { result = true; } break; default: break; } } } catch (Exception ex) { LogHelper.Error(ex); } return(result); }