Beispiel #1
0
        public void GetCusName()
        {
            string   designId = Request["designId"];
            Database db       = new Database("BE_Customer_Proc", "GETCUSNAME", 0, 0, designId, "", "");

            using (SqlDataReader dr = db.ExecuteReader())
            {
                DataTable dt   = StaticFunction.ConvertDataReaderToDataTable(dr);
                string    json = JSONHelper.SerializeObject(dt);
                this.Response.Write(json);
            }
        }
        /// <summary>
        /// 设计ID查询
        /// </summary>
        public void CheckDn()
        {
            string kw        = Request["kw"].ToString();
            string partNerId = "";

            if (CurrentUser.PartnerID != Guid.Empty)
            {
                partNerId = CurrentUser.PartnerID.ToString();
            }
            Database db = new Database("BE_RoomDesigner_Proc", "CHECKDN", 4, 0, kw, partNerId, kw);

            using (SqlDataReader dr = db.ExecuteReader())
            {
                DataTable dt   = StaticFunction.ConvertDataReaderToDataTable(dr);
                string    json = JSONHelper.SerializeObject(dt);// JsonConvert.SerializeObject(dt);
                HttpContext.Current.Response.Write(json);
            }
        }