From 24ac6e50da797cc3372f67f346618be86b86c4d1 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 21 十一月 2025 15:06:15 +0800
Subject: [PATCH] 提交
---
CY_ECommercePlatform/CY.WebForm/Pages/work/GongzuoneirongCateEdit.aspx.cs | 96 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 96 insertions(+), 0 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/GongzuoneirongCateEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/GongzuoneirongCateEdit.aspx.cs
new file mode 100644
index 0000000..6da9c7b
--- /dev/null
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/GongzuoneirongCateEdit.aspx.cs
@@ -0,0 +1,96 @@
+锘縰sing System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Data;
+using System.Data.SqlClient;
+using CY.Model;
+using CY.BLL;
+using CY.Infrastructure.Common;
+using CY.BLL.Sys;
+using CY.BLL.EC;
+using CY.Infrastructure.DESEncrypt;
+using CY.Infrastructure.Query;
+
+namespace CY.WebForm.Pages.work
+{
+ //鍚磋緣
+ //琛屾斂鐗╁搧鍒嗙被
+ public partial class GongzuoneirongCateEdit : BasePage
+ {
+ Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
+ OA_GongzuoneirongCateBLL oA_WorkReminderBll = null;
+
+ public GongzuoneirongCateEdit()
+ {
+ bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
+ oA_WorkReminderBll = new OA_GongzuoneirongCateBLL();
+ }
+
+ //椤甸潰鍔犺浇
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ InitData();
+ }
+ }
+
+ //鏁版嵁鍔犺浇
+ public void InitData()
+ {
+ OA_GongzuoneirongCate m_OA_GongzuoneirongCate = oA_WorkReminderBll.GetModelByKeyid(Request["keyid"].ToInt32());
+ if (m_OA_GongzuoneirongCate != null)
+ {
+ this.txtCarNumbera.Value = m_OA_GongzuoneirongCate.Name;
+ }
+ }
+
+ //琛ㄥ崟鎻愪氦
+ protected void btn_submit_form(object sender, EventArgs e)
+ {
+ try
+ {
+ DateTime nowTime = DateTime.Now;
+ OA_GongzuoneirongCate m_OA_GongzuoneirongCate = oA_WorkReminderBll.GetModelByKeyid(Request["keyid"].ToInt32());
+ if (m_OA_GongzuoneirongCate == null)
+ {
+ m_OA_GongzuoneirongCate = new OA_GongzuoneirongCate();
+ m_OA_GongzuoneirongCate.MemberId = CurrentUser.MemberId;
+ m_OA_GongzuoneirongCate.Status = 1;
+ m_OA_GongzuoneirongCate.Remark = "";
+ }
+ m_OA_GongzuoneirongCate.Name = this.txtCarNumbera.Value;
+ m_OA_GongzuoneirongCate.Operator = CurrentUser.ShortName;
+ m_OA_GongzuoneirongCate.LastUpdateTime = nowTime;
+
+ if (Request["keyid"].ToInt32() > 0)
+ {
+ if (oA_WorkReminderBll.UpdateModel(m_OA_GongzuoneirongCate))
+ JavaScript.MessageBox("鏇存柊鎴愬姛", this, true, true);
+ else
+ JavaScript.MessageBox("鏇存柊澶辫触", this);
+ }
+ else
+ {
+ if (oA_WorkReminderBll.InsertModel(m_OA_GongzuoneirongCate))
+ {
+ txtCarNumbera.Value = "";
+ JavaScript.MessageBox("鏂板鎴愬姛", this, false, true);
+ }
+ else
+ {
+ JavaScript.MessageBox("鎿嶄綔澶辫触", this);
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ PAGEHandleException(ex);
+ JavaScript.MessageBox("鎿嶄綔澶辫触", this);
+ }
+ }
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.1