From 374ce108d737c1e4d6608989090195a7346d10ad Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 26 二月 2026 08:47:21 +0800
Subject: [PATCH] 优化格式美观度。 完成 (1)“印刷、打包、送货要求”放在右边的格子里面;右边格子拉通 (2)“单价”和“总价”的格子比例要调整适中 (3)把“印件名称”放在第一格 (1)操作中增加“问题处理”,进行处理操作 完成 (2)问题反馈除了生成在这个列表中,还要自动推送给对应订单的下单人或者送货安排(发起工作安排)的安排人,显示在他们的“工作提醒”中,处理完了就在列表中变成已完成问题处理,显示“√”,点“√”进去就显示谁处理的、什么时候处理的。 完成 生产施工单中,选“轮转印刷机”的,删除“纸张数量(张)”和“开料规格” 完成
---
CY_ECommercePlatform/CY.WebForm/Pages/work/BaoxiaoReplyAdd.aspx.cs | 50 +++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 41 insertions(+), 9 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/BaoxiaoReplyAdd.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/BaoxiaoReplyAdd.aspx.cs
index 0530a34..8a26484 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/work/BaoxiaoReplyAdd.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/BaoxiaoReplyAdd.aspx.cs
@@ -14,6 +14,7 @@
using CY.Infrastructure.DESEncrypt;
using CY.Infrastructure.Query;
using System.Transactions;
+using CY.BLL.OA;
namespace CY.WebForm.Pages.work
{
@@ -31,6 +32,8 @@
OA_StaffBLL oA_StaffBLL = null;
OA_DepartmentBll oA_DepartmentBll = null;
public string planDataType = "";
+ OA_SubjectSetBLL _OA_SubjectSetBLL = null;
+ OA_ShebeiWeixiuBLL oA_ShebeiWeixiuBLL = null;
public BaoxiaoReplyAdd()
{
oA_WorkReminderBll = new OA_WorkPlanBll();
@@ -42,6 +45,8 @@
oA_WorkPlan_ShenpiBLL = new OA_WorkPlan_shenpiBLL();
oA_StaffBLL = new OA_StaffBLL();
oA_DepartmentBll = new OA_DepartmentBll();
+ _OA_SubjectSetBLL = new OA_SubjectSetBLL();
+ oA_ShebeiWeixiuBLL = new OA_ShebeiWeixiuBLL();
}
//椤甸潰鍔犺浇
@@ -56,6 +61,11 @@
//鏁版嵁鍔犺浇
public void InitData()
{
+ //绉戠洰鍚嶇О
+ this.selSubject.DataSource = _OA_SubjectSetBLL.getAllSubject(CurrentUser.MemberId, "璐�");
+ this.selSubject.DataBind();
+ // this.selSubject.Items.Insert(0, new ListItem("璇烽�夋嫨", ""));
+
OA_WorkPlan m_OA_WorkPlan = oA_WorkReminderBll.GetModelByKeyid(Request["keyid"].ToInt32());
if (m_OA_WorkPlan != null)
{
@@ -68,10 +78,10 @@
this.spanPlanPeople.InnerText = m_OA_WorkPlan.PlanPeople.ToString();
- this.spanPlanMoney.InnerText = m_OA_WorkPlan.PlanMoney.Value.ToString("0.00");
+ this.txtPlanMoney.Value = m_OA_WorkPlan.PlanMoney.Value.ToString("0.00");
- this.spanSubject.InnerText = m_OA_WorkPlan.RewardContent.ToString();
- this.spanPlanContent.InnerText = m_OA_WorkPlan.PlanContent.ToString();
+ this.selSubject.Value = m_OA_WorkPlan.RewardResult;
+ this.txtPlanContent.Value = m_OA_WorkPlan.PlanContent;
this.spanHoubufapiaoStatus.InnerText = m_OA_WorkPlan.HoubufapiaoStatusName;
var sss = oA_WorkPlan_AttachmentBLL.GetModelByKaipiaoId(Request["keyid"].ToInt32().Value);
@@ -126,6 +136,11 @@
JavaScript.MessageBox("璇ユ姤閿�宸茬粡瀹℃壒瀹屾垚", this);
return;
}
+ if (m_OA_WorkPlan.PlanMoney< this.txtPlanMoney.Value.ToDecimal2())
+ {
+ JavaScript.MessageBox("淇敼鍚庣殑鎶ラ攢閲戦涓嶈兘澶т簬鍘熸姤閿�閲戦", this);
+ return;
+ }
var oA_WorkPlan_Shenpis = oA_WorkPlan_ShenpiBLL.GetModelByKaipiaoId(Request["keyid"].ToInt32().Value).ToList();
@@ -156,10 +171,6 @@
string Messagejingli = null;
if (oA_Staff.BF_Isbaoxiaojingli)
{
- if (oA_WorkPlan_Shenpis.Count > 2)
- {
- Messagejingli = "璇ユ祦绋嬪凡缁忓鎵瑰畬鎴愶紒";
- }
if (oA_WorkPlan_Shenpis.Count < 2)
{
Messagejingli = "娌″埌缁忕悊瀹℃壒姝ラ锛�";
@@ -185,7 +196,15 @@
}
}
+ m_OA_WorkPlan.PlanMoney = this.txtPlanMoney.Value.ToDecimal2();
+ m_OA_WorkPlan.RewardResult = this.selSubject.Value;
+ m_OA_WorkPlan.PlanContent = this.txtPlanContent.Value;
+ var a_SubjectSet = _OA_SubjectSetBLL.getSingleSubject(this.selSubject.Value.ToInt32());
+ if (a_SubjectSet != null)
+ {
+ m_OA_WorkPlan.RewardContent = a_SubjectSet.SubjectName;
+ }
DateTime nowTime = DateTime.Now;
@@ -198,7 +217,7 @@
oA_WorkPlan_Shenpi.ApprovalContent = this.txtApprovalContent.Value.Trim();
oA_WorkPlan_Shenpi.CreateTime = nowTime;
oA_WorkPlan_Shenpi.Operator = CurrentUser.TrueName;
- if (oA_WorkPlan_Shenpis.Count == 2)
+ if (oA_WorkPlan_Shenpis.Count >= 2 && oA_Staff.BF_Isbaoxiaojingli)
{
oA_WorkPlan_Shenpi.Buzhou = 2;
}
@@ -209,7 +228,7 @@
res = oA_WorkPlan_ShenpiBLL.InsertModel(oA_WorkPlan_Shenpi);
- if (oA_WorkPlan_Shenpis.Count == 2 || this.selApprovalStatus.Value == "2")
+ if ((oA_WorkPlan_Shenpis.Count >= 2 && oA_Staff.BF_Isbaoxiaojingli ) || this.selApprovalStatus.Value == "2")
{
m_OA_WorkPlan.ApprovalContent = this.txtApprovalContent.Value.Trim();
@@ -221,6 +240,19 @@
m_OA_WorkPlan.Operator = CurrentUser.ShortName;
m_OA_WorkPlan.LastUpdateTime = nowTime;
res = oA_WorkReminderBll.UpdateModel(m_OA_WorkPlan);
+
+ var oA_ShebeiWeixiu = oA_ShebeiWeixiuBLL.GetModelBytiaojian(null, m_OA_WorkPlan.Keyid, null);
+ if (oA_ShebeiWeixiu != null)
+ {
+ //oA_ShebeiWeixiu.Zerenren = this.selZerenren.Value.ToInt32();
+ oA_ShebeiWeixiu.ApprovalStatus = this.selApprovalStatus.Value.ToInt32();
+ //oA_ShebeiWeixiu.DanzePrice = this.txtDanzePrice.Value.ToDecimal2();
+ oA_ShebeiWeixiuBLL.UpdateModel(oA_ShebeiWeixiu);
+ }
+ }
+ else
+ {
+ res = oA_WorkReminderBll.UpdateModel(m_OA_WorkPlan);
}
--
Gitblit v1.9.1