public InvokeResult PADeviceBindingForJuDou(PADeviceBindingParam param) { InvokeResult result = new InvokeResult { Success = true }; try { SPParam theSPParam = param.ToSPParam(); theSPParam["DeviceType"] = GlobalManager.DIKey_00010_桔豆盒子; BuilderFactory.DefaultBulder().ExecuteSPNoneQuery("SP_Pam_DeviceBinding", theSPParam); if (theSPParam.ErrorCode != 0) { result.Success = false; result.ErrorCode = theSPParam.ErrorCode; result.ErrorMessage = theSPParam.ErrorMessage; } } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } return(result); }
public InvokeResult PAReuseBookMeal(PAFetchBookMealParam param) { InvokeResult result = new InvokeResult { Success = true }; try { SPParam theSPParam = param.ToSPParam(); theSPParam["PACode"] = GetHttpHeader("PACode"); BuilderFactory.DefaultBulder().ExecuteSPNoneQuery("SP_Pam_ReuseBookMeal", theSPParam); if (theSPParam.ErrorCode != 0) { result.Success = false; result.ErrorCode = theSPParam.ErrorCode; result.ErrorMessage = theSPParam.ErrorMessage; } } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } return(result); }
public InvokeResult <A04ParamRet> SyncInResidentJSON(A04Param param) { InvokeResult <A04ParamRet> result = new InvokeResult <A04ParamRet>() { Success = true }; string token2 = TokenProvider.GenTokenDynamic("东软社区管理系统", GlobalManager.SmartLife_DataExchange_Services); if (token2.EndsWith("=")) { token2 = token2.Substring(0, token2.Length - 1); } if (param.token != token2) { result.Success = false; result.ErrorCode = 50001; result.ErrorMessage = "token被篡改"; } else { if (param.Total > 0) { result.ret = new A04ParamRet { failedIDNo = new List <string>() }; try { foreach (var row in param.Rows) { SPParam theSPParam = row.ToSPParam(); theSPParam["AreaId"] = Global.AreaId; theSPParam["DataSourceToken"] = param.token; theSPParam["DataSourceOn"] = param.time; BuilderFactory.DefaultBulder().ExecuteSPNoneQuery("SP_Inc_SyncInResident", theSPParam); if (theSPParam.ErrorCode == 0) { //成功 } else { //失败 result.Success = false; result.ErrorCode = Convert.ToInt32(theSPParam["ErrorCode"]); result.ret.failedIDNo.Add(row.idcardnum); } } } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } } } return(result); }
/// <summary> /// The GetDataUsingDataContract. /// </summary> /// <param name="composite">The composite<see cref="SPParam"/>.</param> /// <returns>The <see cref="SPParam"/>.</returns> public SPParam GetDataUsingDataContract(SPParam composite) { if (composite is null) { throw new ArgumentNullException(nameof(composite)); } if (composite.Name != "") { composite.Name += " Name"; } return(composite); }
public InvokeResult DayCareObjectCheckIn(DayCareObjectCheckInParam param) { InvokeResult result = new InvokeResult { Success = true }; try { SPParam theSPParam = param.ToSPParam(); BuilderFactory.DefaultBulder().ExecuteSPNoneQuery("SP_Dcc_DayCareObjectCheckIn", theSPParam); if (theSPParam.ErrorCode != 0) { result.Success = false; result.ErrorCode = theSPParam.ErrorCode; } } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } return(result); }