/// <summary> /// 立即还车 /// </summary> private void SendReturn() { string errmsg = ""; DataTable dt = new DataTable(); string data = Request["data"]; RequesCarFalse rm = ObjectSerializeHelper.JsonToObject <RequesCarFalse>(data); string applycode = rm.applycode; string endplay = rm.endplay; string returnremark = rm.returnremark; string usercode = rm.usercode; BLLProposer mybll = new BLLProposer(); bool result = mybll.SendReturn(applycode, endplay, returnremark, usercode, ref errmsg); if (!result) { Response.Write(outjson.Replace("#code#", "-1").Replace("#msg#", errmsg)); Response.End(); } else { string json = "\"data\":" + ObjectSerializeHelper.DataTableToJson(dt, ObjectSerializeHelper.ColumnNameLetterCase.ToLower); Response.Write(outjson.Replace("#code#", "0").Replace("#msg#", "").Replace("\"data\":null", json)); Response.End(); } }
/// <summary> /// 拒绝原因 /// </summary> private void ApplyFalse() { string errmsg = ""; DataTable dt = new DataTable(); string data = Request["data"]; //string applycode = Request["applycode"]; //string reason = Request["reason"]; RequesCarFalse rm = ObjectSerializeHelper.JsonToObject <RequesCarFalse>(data); string applycode = rm.applycode; string reason = rm.reason; string susercode = rm.susercode; BLLProposer mybll = new BLLProposer(); bool result = mybll.ApplyFalse(applycode, reason, susercode, ref errmsg); if (!result) { Response.Write(outjson.Replace("#code#", "-1").Replace("#msg#", errmsg)); Response.End(); } else { string json = "\"data\":" + ObjectSerializeHelper.DataTableToJson(dt, ObjectSerializeHelper.ColumnNameLetterCase.ToLower); Response.Write(outjson.Replace("#code#", "0").Replace("#msg#", "").Replace("\"data\":null", json)); Response.End(); } }