Quellcode durchsuchen

Merge branch '金隅分支' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 金隅分支

金隅分支
edy vor 3 Jahren
Ursprung
Commit
972f3a4fca
2 geänderte Dateien mit 22 neuen und 20 gelöschten Zeilen
  1. +20
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildService.cs

+ 20
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/Index.js Datei anzeigen

@@ -23,25 +23,27 @@ var bootstrap = function ($, learun) {
// 填报 // 填报
$('#lr_add').on('click', function () { $('#lr_add').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id'); var keyValue = $('#gridtable').jfGridValue('Id');
var ProjectName = $('#gridtable').jfGridValue('ProjectName');
learun.httpAsyncGet(top.$.rootUrl + '/LR_Desktop/QualityReport/IsCanReport?keyValue=' + keyValue, function (res) {
if (res.code == 200) {
learun.layerForm({
id: 'form',
title: ProjectName + '填报',
url: top.$.rootUrl + '/LR_Desktop/QualityReport/Form?keyValue=' + keyValue + '&ProjectName=' + ProjectName,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
else {
learun.alert.error(res.info);
}
});
if (learun.checkrow(keyValue)) {
var ProjectName = $('#gridtable').jfGridValue('ProjectName');
learun.httpAsyncGet(top.$.rootUrl + '/LR_Desktop/QualityReport/IsCanReport?keyValue=' + keyValue, function (res) {
if (res.code == 200) {
learun.layerForm({
id: 'form',
title: ProjectName + '填报',
url: top.$.rootUrl + '/LR_Desktop/QualityReport/Form?keyValue=' + keyValue + '&ProjectName=' + ProjectName,
width: 600,
height: 400,
callBack: function (id) {
return top[id].acceptClick(refreshGirdData);
}
});
}
else {
learun.alert.error(res.info);
}
});


}
}); });
// 删除 // 删除
$('#lr_delete').on('click', function () { $('#lr_delete').on('click', function () {


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildService.cs Datei anzeigen

@@ -292,7 +292,7 @@ where a.Id='{keyValue}' order by b.Sort";
} }


/// <summary> /// <summary>
///
/// 保存
/// </summary> /// </summary>
/// <param name="keyValue"></param> /// <param name="keyValue"></param>
/// <param name="list"></param> /// <param name="list"></param>
@@ -351,7 +351,7 @@ where a.Id='{keyValue}' order by b.Sort";
else else
{ {
gs = gs.Replace("(", "(").Replace(")", ")"); gs = gs.Replace("(", "(").Replace(")", ")");
if (gs.Contains("*100%"))
if (gs.Contains("%"))
{ {
gs = gs.Replace("%", ""); gs = gs.Replace("%", "");
var dt = db.FindTable($"select convert(varchar,convert(decimal(18,0),{gs}))+'%' as num "); var dt = db.FindTable($"select convert(varchar,convert(decimal(18,0),{gs}))+'%' as num ");


Laden…
Abbrechen
Speichern