Beispiel #1
0
        /// <summary>
        /// HiddenTroubleReport_Update 隐患上报方法
        /// </summary>
        ///
        public string HiddenTroubleReport_Insert(int shebei_type, int yinhuan_type, string address, string miaoshu, string faxiantime, string uptime, string x, string y, int peopleid, string sheshi, string imagegeshi, string base64, int rwID, int pianID, int luxianID, int ishidden)
        {
            string result = "";

            try
            {
                if (Data_dal.Insert_Hidden(ref err, shebei_type, yinhuan_type, address, miaoshu, faxiantime, uptime, x, y, peopleid, sheshi, imagegeshi, base64, rwID, pianID, luxianID, ishidden) > 0)
                {
                    result = @"[{""result"":成功}]";
                }
                else
                {
                    result = @"[{""result"":失败}]";
                }
            }
            catch (Exception)
            {
                System.Web.HttpContext.Current.Response.Write("<script>alert(" + err + ")</script>");
            }
            return(result);
        }