/// <summary> /// 获取合同信息查询绑定设置 /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult ContractBinding_getList(string id, string t) { DaContractBinding dal = new DaContractBinding(); var result = new CustomJsonResult(); result.Data = dal.getList(id); return(result); }
/// <summary> /// 保存合同信息查询绑定设置 /// </summary> /// <param name="id"></param> /// <param name="peos"></param> /// <returns></returns> public JsonResult ContractBinding_edit(string id, string peos) { string[] persons = null; DaContractBinding dal = new DaContractBinding(); if (peos.IndexOf(id) == -1) { if (peos.Length != 0) { peos += "," + id; } else { peos += id; } } persons = peos.Split(','); var result = new CustomJsonResult(); result.Data = dal.update(id, persons); return(result); }