public int Data_Delete_KH_KHBF(int KHID, int BFID) { token = appClass.CRM_Gettoken(); CRM_KH_KHBFList model = new CRM_KH_KHBFList(); model.KHID = KHID; model.BFID = BFID; int i = crmModels.KH_KHBF.Delete(model, token); return(i); }
public int Data_Set_KH_KHBF(int KHID, int BFID) { token = appClass.CRM_Gettoken(); CRM_KH_KHBFList model = new CRM_KH_KHBFList(); model.KHID = KHID; model.BFID = 0; crmModels.KH_KHBF.Delete(model, token); //先把该客户已经有的频次删掉,然后再新增,确保一个客户只有一个频次 model.BFID = BFID; int i = crmModels.KH_KHBF.Create(model, token); return(i); }
public int Delete(CRM_KH_KHBFList model, string ptoken) { return(client.Delete(model, ptoken)); }
public int Create(CRM_KH_KHBFList model, string ptoken) { return(client.Create(model, ptoken)); }