Beispiel #1
0
        public static string GetPVFDetail(string keyId)
        {
            DataTable dt     = PeakValleyFlatService.GetPVFDetail(keyId);
            string    result = EasyUIJsonParser.DataGridJsonParser.DataTableToJson(dt);

            return(result);
        }
Beispiel #2
0
        public static string GetPVFList(string organizationId, string startUsing)
        {
            DataTable dt     = PeakValleyFlatService.GetPVFList(organizationId, startUsing);
            string    result = EasyUIJsonParser.DataGridJsonParser.DataTableToJson(dt);

            return(result);
        }
Beispiel #3
0
        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");
            }
        }
Beispiel #4
0
        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");
            }
        }
Beispiel #5
0
        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");
            }
        }
Beispiel #6
0
        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");
            }
        }
Beispiel #7
0
        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);
        }
Beispiel #8
0
        public static int deletePVF(string PVFId)
        {
            int result = PeakValleyFlatService.DeletePVFInfo(PVFId);

            return(result);
        }