|
@@ -65,7 +65,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
Fields.Add("SwapSnExpand", "1"); //兑换SN
|
|
Fields.Add("SwapSnExpand", "1"); //兑换SN
|
|
|
Fields.Add("SendSn", "1"); //发货SN
|
|
Fields.Add("SendSn", "1"); //发货SN
|
|
|
|
|
|
|
|
- string condition = " and Status>-1";
|
|
|
|
|
|
|
+ string condition = " and Status>=-1";
|
|
|
//申请单号
|
|
//申请单号
|
|
|
if (!string.IsNullOrEmpty(ApplyNo))
|
|
if (!string.IsNullOrEmpty(ApplyNo))
|
|
|
{
|
|
{
|
|
@@ -166,6 +166,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
|
|
//订单状态
|
|
//订单状态
|
|
|
int Status = int.Parse(dic["Status"].ToString());
|
|
int Status = int.Parse(dic["Status"].ToString());
|
|
|
|
|
+ if(Status == -1) dic["StatusName"] = "已驳回";
|
|
|
if(Status == 0) dic["StatusName"] = "待审核";
|
|
if(Status == 0) dic["StatusName"] = "待审核";
|
|
|
if(Status == 1) dic["StatusName"] = "申请成功";
|
|
if(Status == 1) dic["StatusName"] = "申请成功";
|
|
|
if(Status == 2) dic["StatusName"] = "申请失败";
|
|
if(Status == 2) dic["StatusName"] = "申请失败";
|
|
@@ -178,6 +179,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
|
|
//发货状态
|
|
//发货状态
|
|
|
int SendStatus = int.Parse(dic["Status"].ToString());
|
|
int SendStatus = int.Parse(dic["Status"].ToString());
|
|
|
|
|
+ if(SendStatus == -1) dic["SendStatus"] = "已驳回";
|
|
|
if(SendStatus == 0) dic["SendStatus"] = "未发货";
|
|
if(SendStatus == 0) dic["SendStatus"] = "未发货";
|
|
|
if(SendStatus == 1) dic["SendStatus"] = "已发货";
|
|
if(SendStatus == 1) dic["SendStatus"] = "已发货";
|
|
|
|
|
|
|
@@ -187,12 +189,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
Dictionary<string, object> other = new Dictionary<string, object>();
|
|
Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
int ApplyCount = 0;//申请机具数
|
|
int ApplyCount = 0;//申请机具数
|
|
|
int SendCount = 0;//发货机具数
|
|
int SendCount = 0;//发货机具数
|
|
|
- DataTable dt = OtherMySqlConn.dtable("select sum(ApplyDeviceNum) from MachineApply where SendStatus=0" + condition);
|
|
|
|
|
|
|
+ DataTable dt = OtherMySqlConn.dtable("select sum(ApplyDeviceNum) from MachineApply where 1=1" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
{
|
|
|
ApplyCount = int.Parse(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
ApplyCount = int.Parse(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
}
|
|
}
|
|
|
- dt = OtherMySqlConn.dtable("select sum(ApplyDeviceNum) from MachineApply where SendStatus=1" + condition);
|
|
|
|
|
|
|
+ dt = OtherMySqlConn.dtable("select sum(ApplyDeviceNum) from MachineApply where Status=1" + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
{
|
|
|
SendCount = int.Parse(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
SendCount = int.Parse(function.CheckNum(dt.Rows[0][0].ToString()));
|