|
@@ -28,10 +28,7 @@ public class Richtext : IHttpHandler, IReadOnlySessionState
|
|
|
context.Request.Files[0].SaveAs(diskFileName);
|
|
context.Request.Files[0].SaveAs(diskFileName);
|
|
|
Dictionary<string, object> result = new Dictionary<string, object>();
|
|
Dictionary<string, object> result = new Dictionary<string, object>();
|
|
|
result.Add("errno", 0);
|
|
result.Add("errno", 0);
|
|
|
- result.Add("data", new Dictionary<string, string>()
|
|
|
|
|
- {
|
|
|
|
|
- {"url","http://localhost:62173"+fileName }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ result.Add("data", new Dictionary<string, string>() { {"url","http://172.18.32.32:9000/"+fileName } });
|
|
|
context.Response.Write(JsonConvert.SerializeObject(result, Formatting.Indented));
|
|
context.Response.Write(JsonConvert.SerializeObject(result, Formatting.Indented));
|
|
|
}
|
|
}
|
|
|
//获取产品型号
|
|
//获取产品型号
|
|
@@ -108,7 +105,6 @@ public class Richtext : IHttpHandler, IReadOnlySessionState
|
|
|
int id = formData["id"] != null ? int.Parse(formData["id"].ToString()) : 0;
|
|
int id = formData["id"] != null ? int.Parse(formData["id"].ToString()) : 0;
|
|
|
using (IDataAccess conn = DataAccess.Create())
|
|
using (IDataAccess conn = DataAccess.Create())
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
string sqlStr = "SELECT Q.*,U.USERNAME FROM TP_PM_QUALITYLIBRARY Q LEFT JOIN TP_MST_USER U ON Q.CREATEUSERID=U.USERID WHERE Q.VALUEFLAG=1";
|
|
string sqlStr = "SELECT Q.*,U.USERNAME FROM TP_PM_QUALITYLIBRARY Q LEFT JOIN TP_MST_USER U ON Q.CREATEUSERID=U.USERID WHERE Q.VALUEFLAG=1";
|
|
|
if (id != 0)
|
|
if (id != 0)
|
|
|
{
|
|
{
|
|
@@ -116,8 +112,7 @@ public class Richtext : IHttpHandler, IReadOnlySessionState
|
|
|
}
|
|
}
|
|
|
sqlStr += "ORDER BY q.CREATETIME DESC";
|
|
sqlStr += "ORDER BY q.CREATETIME DESC";
|
|
|
DataTable dt = conn.ExecuteDatatable(sqlStr);
|
|
DataTable dt = conn.ExecuteDatatable(sqlStr);
|
|
|
- List<Dictionary<string, string>> result = new List<Dictionary<string, string>>();
|
|
|
|
|
-
|
|
|
|
|
|
|
+ List<Dictionary<string, string>> result = new List<Dictionary<string, string>>();
|
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
|
{
|
|
{
|
|
|
Dictionary<string, string> content = new Dictionary<string, string>();
|
|
Dictionary<string, string> content = new Dictionary<string, string>();
|