コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public int Delete(CRM_KH_KHBFList model, string ptoken)
 {
     return(client.Delete(model, ptoken));
 }
コード例 #4
0
 public int Create(CRM_KH_KHBFList model, string ptoken)
 {
     return(client.Create(model, ptoken));
 }