public static string GetPVFDetail(string keyId) { DataTable dt = PeakValleyFlatService.GetPVFDetail(keyId); string result = EasyUIJsonParser.DataGridJsonParser.DataTableToJson(dt); return(result); }
public static string GetPVFList(string organizationId, string startUsing) { DataTable dt = PeakValleyFlatService.GetPVFList(organizationId, startUsing); string result = EasyUIJsonParser.DataGridJsonParser.DataTableToJson(dt); return(result); }
public static string Save(string myJsonData) { string organizationId = myJsonData.JsonPick("organizationId"); string startUsing = myJsonData.JsonPick("tzStartDate"); string[] dataDetails = myJsonData.JsonPickArray("dataDetail"); int result = PeakValleyFlatService.SavePVFData(organizationId, dataDetails); if (result == 1) { return("1"); } else { return("-1"); } }
public static string UpdatePVFList(string id, string startUsing, string endUsing, string flag) { if (mPageOpPermission.Substring(2, 1) == "1") { int result = PeakValleyFlatService.UpdatePVFData(id, startUsing, endUsing, flag); if (result == 1) { return("1"); } else { return("-1"); } } else { return("noright"); } }
public static string DeletePVFList(string keyId) { if (mPageOpPermission.Substring(3, 1) == "1") { int result = PeakValleyFlatService.DeletePVFData(keyId); if (result == 1) { return("1"); } else { return("-1"); } } else { return("noright"); } }
public static string Save(string organizationId, string myJsonData) { if (mPageOpPermission.Substring(1, 1) == "1") { string morganizationId = myJsonData.JsonPick("organizationId"); //string startUsing = myJsonData.JsonPick("tzStartDate"); string[] dataDetails = myJsonData.JsonPickArray("dataDetail"); int result = PeakValleyFlatService.SavePVFData(organizationId, dataDetails); if (result == 1) { return("1"); } else { return("-1"); } } else { return("noright"); } }
public static int editPVF(string PVFid, string mKeyId, string mStartTime, string mEndTime, string typeValue) { int result = PeakValleyFlatService.editPVFInfo(PVFid, mKeyId, mStartTime, mEndTime, typeValue); return(result); }
public static int deletePVF(string PVFId) { int result = PeakValleyFlatService.DeletePVFInfo(PVFId); return(result); }