/// <summary> /// 删除服务/服务包 /// </summary> /// <param name="context"></param> /// <param name="serviceId"></param> private void DeleteService(HttpContext context, long serviceId) { bool result = false; result = new ContractServiceBLL().DeleteService(serviceId, LoginUserId); context.Response.Write(result); }
/// <summary> /// 判断服务/服务包是否已计费 /// </summary> /// <param name="context"></param> /// <param name="serviceId"></param> private void IsServiceApproveAndPost(HttpContext context, long serviceId) { bool result = false; result = new ContractServiceBLL().IsServiceApproveAndPost(serviceId); context.Response.Write(result); }
/// <summary> /// 调整服务的时间 /// </summary> private void AjustServiceDate(HttpContext context) { var result = false; var contractId = context.Request.QueryString["contractId"]; var serviceId = context.Request.QueryString["serviceId"]; var chooseDate = context.Request.QueryString["chooseDate"]; if (!string.IsNullOrEmpty(contractId) && !string.IsNullOrEmpty(serviceId) && !string.IsNullOrEmpty(chooseDate)) { var conSer = new ctt_contract_service_dal().FindNoDeleteById(long.Parse(serviceId)); conSer.effective_date = DateTime.Parse(chooseDate); if (conSer.object_type == 1) { result = new ContractServiceBLL().AdjustService(conSer, LoginUserId); } else if (conSer.object_type == 2) { result = new ContractServiceBLL().AdjustServiceBundle(conSer, LoginUserId); } } context.Response.Write(new EMT.Tools.Serialize().SerializeJson(result)); }