@@ -28,17 +28,22 @@ | |||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | <div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | ||||
<div class="lr-form-item-title">开始时间</div> | <div class="lr-form-item-title">开始时间</div> | ||||
@*<input id="Starttime" type="text" class="form-control" />*@ | @*<input id="Starttime" type="text" class="form-control" />*@ | ||||
<input id="Starttime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Starttime').trigger('change'); } })" /> | |||||
<input id="Starttime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Starttime').trigger('change'); } })" autocomplete="off"/> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | <div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | ||||
<div class="lr-form-item-title">结束时间</div> | <div class="lr-form-item-title">结束时间</div> | ||||
@*<input id="Endtime" type="text" class="form-control" />*@ | @*<input id="Endtime" type="text" class="form-control" />*@ | ||||
<input id="Endtime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Endtime').trigger('change'); } })" /> | |||||
<input id="Endtime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#Endtime').trigger('change'); } })" autocomplete="off"/> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | <div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | ||||
<div class="lr-form-item-title">出差地点</div> | <div class="lr-form-item-title">出差地点</div> | ||||
<input id="TravelAddress" type="text" class="form-control" /> | <input id="TravelAddress" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | |||||
<div class="lr-form-item-title">申报时间</div> | |||||
<input id="CreateTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#CreateTime').trigger('change'); } })" autocomplete="off"/> | |||||
@*<input id="CreateTime" type="text" class="form-control" />*@ | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | <div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | ||||
<div class="lr-form-item-title">附件上传</div> | <div class="lr-form-item-title">附件上传</div> | ||||
<div id="FilePath"></div> | <div id="FilePath"></div> | ||||
@@ -6,26 +6,31 @@ | |||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work"> | <div class="col-xs-12 lr-form-item" data-table="Purchase_Work"> | ||||
<div class="lr-form-item-title">部门<font face="宋体">*</font></div> | <div class="lr-form-item-title">部门<font face="宋体">*</font></div> | ||||
<input id="DepartmentId" type="text" readonly class="form-control currentInfo lr-currentInfo-department" isvalid="yes" checkexpession="NotNull" /> | <input id="DepartmentId" type="text" readonly class="form-control currentInfo lr-currentInfo-department" isvalid="yes" checkexpession="NotNull" /> | ||||
<input id="DepartmentName" type="text" class="form-control currentInfo lr-currentInfo-department" style="display:none"/> | |||||
<input id="DepartmentName" type="text" class="form-control currentInfo lr-currentInfo-department" style="display:none" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Travel"> | |||||
<div class="lr-form-item-title">申报时间</div> | |||||
<input id="CreateTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#CreateTime').trigger('change'); } })" autocomplete="off" /> | |||||
@*<input id="CreateTime" type="text" class="form-control" />*@ | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work"> | <div class="col-xs-12 lr-form-item" data-table="Purchase_Work"> | ||||
<div class="lr-form-item-title">申请人<font face="宋体">*</font></div> | <div class="lr-form-item-title">申请人<font face="宋体">*</font></div> | ||||
<input id="CreatorId" type="text" readonly class="form-control currentInfo lr-currentInfo-user" /> | <input id="CreatorId" type="text" readonly class="form-control currentInfo lr-currentInfo-user" /> | ||||
<input id="CreatorName" type="text" readonly class="form-control currentInfo lr-currentInfo-user" style="display:none"/> | |||||
<input id="CreatorName" type="text" readonly class="form-control currentInfo lr-currentInfo-user" style="display:none" /> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work" > | |||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work"> | |||||
<div class="lr-form-item-title">总价格<font face="宋体">*</font></div> | <div class="lr-form-item-title">总价格<font face="宋体">*</font></div> | ||||
<input id="TotalAmount" type="number" readonly class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="TotalAmount" type="number" readonly class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work" > | |||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work"> | |||||
<div class="lr-form-item-title">备注</div> | <div class="lr-form-item-title">备注</div> | ||||
<input id="Remark" type="text" class="form-control" /> | |||||
<input id="Remark" type="text" class="form-control" /> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work" > | |||||
<div class="col-xs-12 lr-form-item" data-table="Purchase_Work"> | |||||
<div class="lr-form-item-title">附件上传</div> | <div class="lr-form-item-title">附件上传</div> | ||||
<div id="FilePath" ></div> | |||||
<div id="FilePath"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item lr-form-item-grid" > | |||||
<div class="col-xs-12 lr-form-item lr-form-item-grid"> | |||||
<div id="Purchase_Work_Details"></div> | <div id="Purchase_Work_Details"></div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -378,7 +378,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -327,7 +327,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -327,7 +327,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -327,7 +327,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -327,7 +327,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,7 +108,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.CreateTime = DateTime.Now; | |||||
//this.CreateTime = DateTime.Now; | |||||
this.Status = 0; | this.Status = 0; | ||||
this.CheckStatus = 0; | this.CheckStatus = 0; | ||||
this.ApplyStatus = 0; | this.ApplyStatus = 0; | ||||
@@ -378,7 +378,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -65,6 +65,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("APPROVALAMOUNT")] | [Column("APPROVALAMOUNT")] | ||||
public decimal? Approvalamount { get; set; } | public decimal? Approvalamount { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 核准金额编辑状态 | |||||
/// </summary> | |||||
[Column("EDITSTATE")] | |||||
public int editstate { get; set; } | |||||
/// <summary> | |||||
/// Status | /// Status | ||||
/// </summary> | /// </summary> | ||||
[Column("STATUS")] | [Column("STATUS")] | ||||
@@ -108,6 +113,9 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
this.editstate = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -327,7 +327,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -122,7 +122,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.CreateTime = DateTime.Now; | |||||
//this.CreateTime = DateTime.Now; | |||||
this.Status = 0; | this.Status = 0; | ||||
this.CheckStatus = 0; | this.CheckStatus = 0; | ||||
this.ApplyStatus = 0; | this.ApplyStatus = 0; | ||||
@@ -322,7 +322,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -65,6 +65,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[Column("APPROVALAMOUNT")] | [Column("APPROVALAMOUNT")] | ||||
public decimal? Approvalamount { get; set; } | public decimal? Approvalamount { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 核准金额编辑状态 | |||||
/// </summary> | |||||
[Column("EDITSTATE")] | |||||
public int editstate { get; set; } | |||||
/// <summary> | |||||
/// Status | /// Status | ||||
/// </summary> | /// </summary> | ||||
[Column("STATUS")] | [Column("STATUS")] | ||||
@@ -108,6 +113,9 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
this.editstate = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -327,7 +327,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
//审核通过 | //审核通过 | ||||
if (status == 2) | if (status == 2) | ||||
{ | { | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -108,6 +108,8 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.Id = Guid.NewGuid().ToString(); | this.Id = Guid.NewGuid().ToString(); | ||||
this.Status = 0; | |||||
this.CheckStatus = 0; | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
@@ -364,6 +364,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
purchasemodel.ApplyStatus = 2; | purchasemodel.ApplyStatus = 2; | ||||
db.Update(purchasemodel); | db.Update(purchasemodel); | ||||
} | } | ||||
if (entity.Status != 1) | |||||
{ | |||||
entity.Status = 1; | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||