From dced306a4cd7348c6178566d3b5fe6c2f9115fd7 Mon Sep 17 00:00:00 2001 From: chenguoping <2104254024@qq.com> Date: Mon, 28 Apr 2025 17:55:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=8F=B8=E5=8E=86=E7=A8=8B=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E7=95=8C=E9=9D=A2=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E3=80=81=E8=B5=84=E8=B4=A8=E8=AE=A4=E8=AF=81=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataService/DAL/pro_com_certif.cs | 4 +- VRS/Management/ComAbout_Edit.aspx | 155 +++++++++++ VRS/Management/ComAbout_Edit.aspx.cs | 160 +++++++++++ VRS/Management/ComAbout_Edit.aspx.designer.cs | 188 +++++++++++++ VRS/Management/ComCertif.aspx | 246 +++++++++++++++++ VRS/Management/ComCertif.aspx.cs | 113 ++++++++ VRS/Management/ComCertif.aspx.designer.cs | 134 ++++++++++ VRS/Management/ComCertif_Add.aspx | 134 ++++++++++ VRS/Management/ComCertif_Add.aspx.cs | 160 +++++++++++ VRS/Management/ComCertif_Add.aspx.designer.cs | 152 +++++++++++ VRS/Management/ComCertif_Edit.aspx | 134 ++++++++++ VRS/Management/ComCertif_Edit.aspx.cs | 161 +++++++++++ .../ComCertif_Edit.aspx.designer.cs | 152 +++++++++++ VRS/Management/ComHistory.aspx | 253 ++++++++++++++++++ VRS/Management/ComHistory.aspx.cs | 112 ++++++++ VRS/Management/ComHistory.aspx.designer.cs | 134 ++++++++++ VRS/Management/ComHistory_Add.aspx | 120 +++++++++ VRS/Management/ComHistory_Add.aspx.cs | 55 ++++ .../ComHistory_Add.aspx.designer.cs | 107 ++++++++ VRS/Management/ComHistory_Edit.aspx | 119 ++++++++ VRS/Management/ComHistory_Edit.aspx.cs | 74 +++++ .../ComHistory_Edit.aspx.designer.cs | 107 ++++++++ VRS/Management/Home.aspx | 8 +- VRS/Management/SoftManagement.aspx | 4 +- VRS/Util/BasePage.cs | 15 ++ VRS/VRS.csproj | 56 ++++ VRS/VRS.csproj.user | 2 +- 27 files changed, 3053 insertions(+), 6 deletions(-) create mode 100644 VRS/Management/ComAbout_Edit.aspx create mode 100644 VRS/Management/ComAbout_Edit.aspx.cs create mode 100644 VRS/Management/ComAbout_Edit.aspx.designer.cs create mode 100644 VRS/Management/ComCertif.aspx create mode 100644 VRS/Management/ComCertif.aspx.cs create mode 100644 VRS/Management/ComCertif.aspx.designer.cs create mode 100644 VRS/Management/ComCertif_Add.aspx create mode 100644 VRS/Management/ComCertif_Add.aspx.cs create mode 100644 VRS/Management/ComCertif_Add.aspx.designer.cs create mode 100644 VRS/Management/ComCertif_Edit.aspx create mode 100644 VRS/Management/ComCertif_Edit.aspx.cs create mode 100644 VRS/Management/ComCertif_Edit.aspx.designer.cs create mode 100644 VRS/Management/ComHistory.aspx create mode 100644 VRS/Management/ComHistory.aspx.cs create mode 100644 VRS/Management/ComHistory.aspx.designer.cs create mode 100644 VRS/Management/ComHistory_Add.aspx create mode 100644 VRS/Management/ComHistory_Add.aspx.cs create mode 100644 VRS/Management/ComHistory_Add.aspx.designer.cs create mode 100644 VRS/Management/ComHistory_Edit.aspx create mode 100644 VRS/Management/ComHistory_Edit.aspx.cs create mode 100644 VRS/Management/ComHistory_Edit.aspx.designer.cs diff --git a/DataService/DAL/pro_com_certif.cs b/DataService/DAL/pro_com_certif.cs index 7a6c272..fd84ff8 100644 --- a/DataService/DAL/pro_com_certif.cs +++ b/DataService/DAL/pro_com_certif.cs @@ -59,7 +59,7 @@ namespace DataService.DAL MySqlParameter[] parameters = { new MySqlParameter("@id", MySqlDbType.VarChar,50), new MySqlParameter("@type", MySqlDbType.VarChar,50), - new MySqlParameter("@url", MySqlDbType.VarChar,20), + new MySqlParameter("@url", MySqlDbType.VarChar,500), new MySqlParameter("@dsc", MySqlDbType.VarChar,255), new MySqlParameter("@create_time", MySqlDbType.DateTime), new MySqlParameter("@r1", MySqlDbType.VarChar,500), @@ -101,7 +101,7 @@ namespace DataService.DAL strSql.Append(" where id=@id "); MySqlParameter[] parameters = { new MySqlParameter("@type", MySqlDbType.VarChar,50), - new MySqlParameter("@url", MySqlDbType.VarChar,20), + new MySqlParameter("@url", MySqlDbType.VarChar,500), new MySqlParameter("@dsc", MySqlDbType.VarChar,255), new MySqlParameter("@create_time", MySqlDbType.DateTime), new MySqlParameter("@r1", MySqlDbType.VarChar,500), diff --git a/VRS/Management/ComAbout_Edit.aspx b/VRS/Management/ComAbout_Edit.aspx new file mode 100644 index 0000000..6576655 --- /dev/null +++ b/VRS/Management/ComAbout_Edit.aspx @@ -0,0 +1,155 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComAbout_Edit.aspx.cs" Inherits="VRS.Management.ComAbout_Edit" %> + +<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> + + + + + + + 关于我们 + + + + + + + +
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
公司图标: + + + +
+ + + + + +
*公司标题: + + +
公司介绍: + +
联系我们: + +
使命: + +
愿景: + +
价值观: + + +
+ + + +
+
+ + + + + + + + + + + + + + + + + + diff --git a/VRS/Management/ComAbout_Edit.aspx.cs b/VRS/Management/ComAbout_Edit.aspx.cs new file mode 100644 index 0000000..60bfdc4 --- /dev/null +++ b/VRS/Management/ComAbout_Edit.aspx.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Telerik.Web.UI; + +namespace VRS.Management +{ + public partial class ComAbout_Edit : BasePage + { + DataService.BLL.pro_com_about bll = new DataService.BLL.pro_com_about(); + DataService.BLL.admin_log log = new DataService.BLL.admin_log(); + protected override void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + DataLoad(); + } + } + + protected void DataLoad() + { + var model = bll.GetModelList("").FirstOrDefault(); + if (null != model) + { + com_title.Text = model.com_title; + com_content.Text = model.com_content; + contact_us.Text = model.contact_us; + our_position.Text = model.our_position; + our_vision.Text = model.our_vision; + our_value.Text = model.our_value; + imgTopic.ImageUrl = model.com_pic; + } + else + { + OnError(null); + } + } + + protected void btnSure_Click(object sender, EventArgs e) + { + /* + if (string.IsNullOrEmpty(real_name.Text)) + { + RadAjaxManager1.Alert("姓名不能为空!"); + return; + } + */ + /* + if (string.IsNullOrEmpty(app_name.Text) || string.IsNullOrEmpty(dp_major.SelectedValue)) + { + RadAjaxManager1.Alert("应用名称、专业分类、科目分类、软件分类不能为空!"); + return; + } + */ + var model = bll.GetModelList("").FirstOrDefault(); + if (null != model) + { + model.com_title = com_title.Text.Trim(); + model.com_content = com_content.Text.Trim(); + model.contact_us = contact_us.Text.Trim(); + + model.our_position = our_position.Text.Trim(); + model.our_vision = our_vision.Text.Trim(); + model.our_value = our_value.Text.Trim(); + model.com_pic = imgTopic.ImageUrl; + + if (bll.Update(model)) + { + log.write_log("修改关于我们成功。" + "名称:" + com_title.Text.Trim() + ",ID:" + model.id); + RadAjaxManager1.ResponseScripts.Add("alert('修改成功!');"); + } + else + RadAjaxManager1.Alert("修改失败!"); + } + } + + protected void btnUpload_Click(object sender, EventArgs e) + { + if (RadAsyncUpload1.UploadedFiles.Count < 1) + { + RadAjaxManager1.Alert("未选择图片!"); + return; + } + var uploadFile = RadAsyncUpload1.UploadedFiles[0]; + + //图片 + var upload_type = "0";// type.SelectedValue; + + if (upload_type == "0") //图片 + { + var arrray = new string[] { ".jpg", ".png", ".bmp", ".jpeg" }; + var extension = uploadFile.GetExtension(); + if (!arrray.Contains(extension)) + { + RadAjaxManager1.Alert("请上传图片!"); + return; + } + } + else if (upload_type == "1") //视频,.mp4,.avi,.dat,.3gp,.mov,.rmvb + { + var arrray = new string[] { ".mp4", ".avi", ".dat", ".3gp", ".mov", ".rmvb" }; + var extension = uploadFile.GetExtension(); + if (!arrray.Contains(extension)) + { + RadAjaxManager1.Alert("请上传视频!"); + return; + } + } + + if (BasePage.SaveFile(uploadFile, Context, out string filePath)) + { + //imgTopic.ImageUrl = "~" + filePath; + if (upload_type == "0") + { + td_pic.Visible = true; + td_video.Visible = false; + imgTopic.ImageUrl = "~" + filePath; + } + else + { + td_pic.Visible = false; + td_video.Visible = true; + video.Src = "~" + filePath; + } + } + else + { + RadAjaxManager1.Alert("上传失败!"); + } + } + + protected void btnRemove_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(imgTopic.ImageUrl)) + { + string path = Server.MapPath(imgTopic.ImageUrl); + if (File.Exists(path)) + { + File.SetAttributes(path, FileAttributes.Normal); + File.Delete(path); + } + imgTopic.ImageUrl = ""; + } + if (!string.IsNullOrEmpty(video.Src)) + { + string path = Server.MapPath(video.Src); + if (File.Exists(path)) + { + File.SetAttributes(path, FileAttributes.Normal); + File.Delete(path); + } + video.Src = ""; + } + } + } +} \ No newline at end of file diff --git a/VRS/Management/ComAbout_Edit.aspx.designer.cs b/VRS/Management/ComAbout_Edit.aspx.designer.cs new file mode 100644 index 0000000..f2bc0da --- /dev/null +++ b/VRS/Management/ComAbout_Edit.aspx.designer.cs @@ -0,0 +1,188 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace VRS.Management +{ + + + public partial class ComAbout_Edit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// RadScriptManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadScriptManager RadScriptManager1; + + /// + /// UseFor 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField UseFor; + + /// + /// td_pic 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTableCell td_pic; + + /// + /// imgTopic 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Image imgTopic; + + /// + /// td_video 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTableCell td_video; + + /// + /// video 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlVideo video; + + /// + /// RadAsyncUpload1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAsyncUpload RadAsyncUpload1; + + /// + /// btnUpload 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnUpload; + + /// + /// btnRemove 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnRemove; + + /// + /// com_title 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox com_title; + + /// + /// com_content 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox com_content; + + /// + /// contact_us 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox contact_us; + + /// + /// our_position 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox our_position; + + /// + /// our_vision 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox our_vision; + + /// + /// our_value 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox our_value; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnSure; + + /// + /// btnCancel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnCancel; + + /// + /// RadAjaxManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAjaxManager RadAjaxManager1; + } +} diff --git a/VRS/Management/ComCertif.aspx b/VRS/Management/ComCertif.aspx new file mode 100644 index 0000000..b81a3ca --- /dev/null +++ b/VRS/Management/ComCertif.aspx @@ -0,0 +1,246 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComCertif.aspx.cs" Inherits="VRS.Management.ComCertif" %> + +<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> + + + + + + 公司资质认证 + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
内容: + + + +   类型: + + + + + + + + + + + +
公司资质认证:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + + + ')" class="btn btn-warning btn-xs" title="编辑"> + ')" class="btn btn-danger btn-xs" title="删除"> + + + + + + + + + + + + + + + + + +
 
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/VRS/Management/ComCertif.aspx.cs b/VRS/Management/ComCertif.aspx.cs new file mode 100644 index 0000000..39906aa --- /dev/null +++ b/VRS/Management/ComCertif.aspx.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Telerik.Web.UI; + +namespace VRS.Management +{ + public partial class ComCertif : BaseListPage + { + DataService.BLL.pro_com_certif bll = new DataService.BLL.pro_com_certif(); + DataService.BLL.admin_log log = new DataService.BLL.admin_log(); + + + protected override void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + DataLoad(); + } + } + + protected override void DataLoad() + { + StringBuilder query = new StringBuilder(" 1 = 1 "); + if (!string.IsNullOrWhiteSpace(name.Text.Trim())) + { + query.AppendFormat(" AND (dsc LIKE '%{0}%' ) ", name.Text.Trim()); + } + + if (!string.IsNullOrWhiteSpace(dp_type.SelectedValue)) + { + query.AppendFormat(" AND (type = '{0}' ) ", dp_type.SelectedValue); + + } + var sql = query.ToString(); + var data = bll.GetModelList(sql); + dataList.DataSource = data; + dataList.Rebind(); + } + + protected override void GridList_PageIndexChanged(object sender, GridPageChangedEventArgs e) + { + DataLoad(); + } + + protected override void GridList_PageSizeChanged(object sender, GridPageSizeChangedEventArgs e) + { + DataLoad(); + } + + protected override void GridList_SortCommand(object sender, GridSortCommandEventArgs e) + { + DataLoad(); + } + + protected override void GrdList_DeleteCommand(object sender, GridCommandEventArgs e) + { + //string Id = (e.Item as GridDataItem).OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Id"].ToString(); + //bll.Delete(Id); + //DataLoad(); + } + + protected override void AjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e) + { + + } + + protected void btnSelect_Click(object sender, EventArgs e) + { + DataLoad(); + + } + + protected void btnDelete_Click(object sender, EventArgs e) + { + var model = bll.GetModel(IdInput.Value); + /* + var list = bll_app.GetModelList("soft_id='" + soft_id + "' "); // 附件条件,进度未完成:now() < end_time + if (list.Count > 0) + { + RadAjaxManager1.Alert("无法删除,该软件类型已经在使用中!"); + return; + } + */ + if (bll.Delete(IdInput.Value)) + { + if (!string.IsNullOrEmpty(model.url)) + { + string path = Server.MapPath(model.url); + if (File.Exists(path)) + { + File.SetAttributes(path, FileAttributes.Normal); + File.Delete(path); + } + } + log.write_log("删除公司资质认证成功。" + "类型:" + model.type + ",内容:" + model.dsc + ",ID:" + IdInput.Value); + } + DataLoad(); + } + + + + protected void dp_type_SelectedIndexChanged(object sender, DropDownListEventArgs e) + { + DataLoad(); + } + } +} \ No newline at end of file diff --git a/VRS/Management/ComCertif.aspx.designer.cs b/VRS/Management/ComCertif.aspx.designer.cs new file mode 100644 index 0000000..8a7c0cd --- /dev/null +++ b/VRS/Management/ComCertif.aspx.designer.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace VRS.Management +{ + + + public partial class ComCertif + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// RadScriptManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadScriptManager RadScriptManager1; + + /// + /// IdInput 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField IdInput; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnDelete; + + /// + /// hd_mainId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hd_mainId; + + /// + /// hd_subId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hd_subId; + + /// + /// hd_taskId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hd_taskId; + + /// + /// name 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox name; + + /// + /// dp_type 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadDropDownList dp_type; + + /// + /// btnSelect 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnSelect; + + /// + /// dataList 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadGrid dataList; + + /// + /// RadWindowManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadWindowManager RadWindowManager1; + + /// + /// RadAjaxManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAjaxManager RadAjaxManager1; + } +} diff --git a/VRS/Management/ComCertif_Add.aspx b/VRS/Management/ComCertif_Add.aspx new file mode 100644 index 0000000..5d18960 --- /dev/null +++ b/VRS/Management/ComCertif_Add.aspx @@ -0,0 +1,134 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComCertif_Add.aspx.cs" Inherits="VRS.Management.ComCertif_Add" %> + +<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> + + + + + + + 添加资质认证 + + + + + + + + + +
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
*资质类型: + + + + + + +
图片: + + + +
+ + + + + +
*内容: + + +
+ + + +
+
+ + + + + + + + + + + + + + + + + + diff --git a/VRS/Management/ComCertif_Add.aspx.cs b/VRS/Management/ComCertif_Add.aspx.cs new file mode 100644 index 0000000..6aba3d6 --- /dev/null +++ b/VRS/Management/ComCertif_Add.aspx.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Telerik.Web.UI; +using System.IO; + + +namespace VRS.Management +{ + public partial class ComCertif_Add : BasePage + { + DataService.BLL.pro_com_certif bll = new DataService.BLL.pro_com_certif(); + + DataService.BLL.admin_log log = new DataService.BLL.admin_log(); + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + if (!IsPostBack) + { + + } + } + + + + protected void btnSure_Click(object sender, EventArgs e) + { + + /* + if (string.IsNullOrEmpty(app_name.Text) || string.IsNullOrEmpty(dp_major.SelectedValue) || string.IsNullOrEmpty(dp_subject.SelectedValue) || string.IsNullOrEmpty(dp_soft.SelectedValue)) + { + RadAjaxManager1.Alert("应用名称、专业分类、科目分类、软件分类不能为空!"); + return; + } + */ + + /* + if (bll.GetRecordCount(string.Format(" login_name = '{0}' ", login_name.Text.Trim())) > 0) + { + RadAjaxManager1.Alert("账号禁止重复!"); + return; + } + */ + + if (string.IsNullOrEmpty(imgTopic.ImageUrl)) + { + RadAjaxManager1.Alert("图片不能为空!"); + return; + } + + if (string.IsNullOrEmpty(dsc.Text)) + { + RadAjaxManager1.Alert("描述不能为空!"); + return; + } + + var model = new DataService.Model.pro_com_certif(); + model.id = BasePage.GetId(); + model.type = dp_type.SelectedValue; + model.url = imgTopic.ImageUrl; + model.dsc = dsc.Text; + model.create_time = DateTime.Now; + + if (bll.Add(model)) + { + //log.write_log("添加应用成功。" + "应用:" + model.app_name + ",ID:" + model.user_id); + RadAjaxManager1.ResponseScripts.Add("alert('添加成功!');CloseAndRebind();"); + } + else + { + RadAjaxManager1.Alert("添加失败!"); + } + } + + protected void btnUpload_Click(object sender, EventArgs e) + { + if (RadAsyncUpload1.UploadedFiles.Count < 1) + { + RadAjaxManager1.Alert("未选择图片!"); + return; + } + + var uploadFile = RadAsyncUpload1.UploadedFiles[0]; + + //图片 + var upload_type = "0";// type.SelectedValue; + + if (upload_type == "0") //图片 + { + var arrray = new string[] { ".jpg", ".png", ".bmp", ".jpeg" }; + var extension = uploadFile.GetExtension(); + if (!arrray.Contains(extension)) + { + RadAjaxManager1.Alert("请上传图片!"); + return; + } + } + else if (upload_type == "1") //视频,.mp4,.avi,.dat,.3gp,.mov,.rmvb + { + var arrray = new string[] { ".mp4", ".avi", ".dat", ".3gp", ".mov", ".rmvb" }; + var extension = uploadFile.GetExtension(); + if (!arrray.Contains(extension)) + { + RadAjaxManager1.Alert("请上传视频!"); + return; + } + } + + + if (BasePage.SaveFile(uploadFile, Context, out string filePath)) + { + //imgTopic.ImageUrl = "~" + filePath; + if (upload_type == "0") + { + td_pic.Visible = true; + td_video.Visible = false; + imgTopic.ImageUrl = "~" + filePath; + } + else + { + td_pic.Visible = false; + td_video.Visible = true; + video.Src = "~" + filePath; + } + } + else + { + RadAjaxManager1.Alert("上传失败!"); + } + } + + protected void btnRemove_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(imgTopic.ImageUrl)) + { + string path = Server.MapPath(imgTopic.ImageUrl); + if (File.Exists(path)) + { + File.SetAttributes(path, FileAttributes.Normal); + File.Delete(path); + } + imgTopic.ImageUrl = ""; + } + + if (!string.IsNullOrEmpty(video.Src)) + { + string path = Server.MapPath(video.Src); + if (File.Exists(path)) + { + File.SetAttributes(path, FileAttributes.Normal); + File.Delete(path); + } + video.Src = ""; + } + } + } +} \ No newline at end of file diff --git a/VRS/Management/ComCertif_Add.aspx.designer.cs b/VRS/Management/ComCertif_Add.aspx.designer.cs new file mode 100644 index 0000000..2dc76e6 --- /dev/null +++ b/VRS/Management/ComCertif_Add.aspx.designer.cs @@ -0,0 +1,152 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace VRS.Management +{ + + + public partial class ComCertif_Add + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// RadScriptManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadScriptManager RadScriptManager1; + + /// + /// UseFor 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField UseFor; + + /// + /// dp_type 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadDropDownList dp_type; + + /// + /// td_pic 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTableCell td_pic; + + /// + /// imgTopic 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Image imgTopic; + + /// + /// td_video 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTableCell td_video; + + /// + /// video 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlVideo video; + + /// + /// RadAsyncUpload1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAsyncUpload RadAsyncUpload1; + + /// + /// btnUpload 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnUpload; + + /// + /// btnRemove 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnRemove; + + /// + /// dsc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox dsc; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnSure; + + /// + /// btnCancel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnCancel; + + /// + /// RadAjaxManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAjaxManager RadAjaxManager1; + } +} diff --git a/VRS/Management/ComCertif_Edit.aspx b/VRS/Management/ComCertif_Edit.aspx new file mode 100644 index 0000000..af14f1c --- /dev/null +++ b/VRS/Management/ComCertif_Edit.aspx @@ -0,0 +1,134 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComCertif_Edit.aspx.cs" Inherits="VRS.Management.ComCertif_Edit" %> + +<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> + + + + + + + 修改资质认证 + + + + + + + + + +
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
*资质类型: + + + + + + +
图片: + + + +
+ + + + + +
*内容: + + +
+ + + +
+
+ + + + + + + + + + + + + + + + + + diff --git a/VRS/Management/ComCertif_Edit.aspx.cs b/VRS/Management/ComCertif_Edit.aspx.cs new file mode 100644 index 0000000..97b0314 --- /dev/null +++ b/VRS/Management/ComCertif_Edit.aspx.cs @@ -0,0 +1,161 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Telerik.Web.UI; + +namespace VRS.Management +{ + public partial class ComCertif_Edit : BasePage + { + DataService.BLL.pro_com_certif bll = new DataService.BLL.pro_com_certif(); + + DataService.BLL.admin_log log = new DataService.BLL.admin_log(); + protected override void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + //VerifyPermissions("10016"); + //BindSystemRoles(dpRole); + DataLoad(); + } + } + + + protected void DataLoad() + { + string Id = Request.Params["Id"]; + if (!string.IsNullOrWhiteSpace(Id)) + { + var model = bll.GetModel(Id); + dsc.Text = model.dsc; + imgTopic.ImageUrl = model.url; + dp_type.SelectedValue = model.type; + + } + else + { + OnError(null); + } + } + + protected void btnSure_Click(object sender, EventArgs e) + { + string Id = Request.Params["Id"]; + + /* + if (string.IsNullOrEmpty(real_name.Text)) + { + RadAjaxManager1.Alert("姓名不能为空!"); + return; + } + */ + if (string.IsNullOrEmpty(imgTopic.ImageUrl)) + { + RadAjaxManager1.Alert("图片不能为空!"); + return; + } + + if (string.IsNullOrEmpty(dsc.Text)) + { + RadAjaxManager1.Alert("描述不能为空!"); + return; + } + + DataService.Model.pro_com_certif model = bll.GetModel(Id); + model.type = dp_type.SelectedValue; + model.url = imgTopic.ImageUrl; + model.dsc = dsc.Text; + if (bll.Update(model)) + { + log.write_log("修改资质认证成功。" + "内容:" + dsc.Text.Trim() + ",ID:" + model.id); + RadAjaxManager1.ResponseScripts.Add("alert('修改成功!');CloseAndRebind();"); + } + else + RadAjaxManager1.Alert("修改失败!"); + } + + protected void btnUpload_Click(object sender, EventArgs e) + { + if (RadAsyncUpload1.UploadedFiles.Count < 1) + { + RadAjaxManager1.Alert("未选择图片!"); + return; + } + + var uploadFile = RadAsyncUpload1.UploadedFiles[0]; + + var upload_type = "0";// type.SelectedValue; + + if (upload_type == "0") //图片 + { + var arrray = new string[] { ".jpg", ".png", ".bmp", ".jpeg" }; + var extension = uploadFile.GetExtension(); + if (!arrray.Contains(extension)) + { + RadAjaxManager1.Alert("请上传图片!"); + return; + } + } + else if (upload_type == "1") //视频,.mp4,.avi,.dat,.3gp,.mov,.rmvb + { + var arrray = new string[] { ".mp4", ".avi", ".dat", ".3gp", ".mov", ".rmvb" }; + var extension = uploadFile.GetExtension(); + if (!arrray.Contains(extension)) + { + RadAjaxManager1.Alert("请上传视频!"); + return; + } + } + + + if (BasePage.SaveFile(uploadFile, Context, out string filePath)) + { + //imgTopic.ImageUrl = "~" + filePath; + if (upload_type == "0") + { + td_pic.Visible = true; + td_video.Visible = false; + imgTopic.ImageUrl = "~" + filePath; + } + else + { + td_pic.Visible = false; + td_video.Visible = true; + video.Src = "~" + filePath; + } + } + else + { + RadAjaxManager1.Alert("上传失败!"); + } + } + + protected void btnRemove_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(imgTopic.ImageUrl)) + { + string path = Server.MapPath(imgTopic.ImageUrl); + if (File.Exists(path)) + { + File.SetAttributes(path, FileAttributes.Normal); + File.Delete(path); + } + imgTopic.ImageUrl = ""; + } + if (!string.IsNullOrEmpty(video.Src)) + { + string path = Server.MapPath(video.Src); + if (File.Exists(path)) + { + File.SetAttributes(path, FileAttributes.Normal); + File.Delete(path); + } + video.Src = ""; + } + } + } +} \ No newline at end of file diff --git a/VRS/Management/ComCertif_Edit.aspx.designer.cs b/VRS/Management/ComCertif_Edit.aspx.designer.cs new file mode 100644 index 0000000..2f05214 --- /dev/null +++ b/VRS/Management/ComCertif_Edit.aspx.designer.cs @@ -0,0 +1,152 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace VRS.Management +{ + + + public partial class ComCertif_Edit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// RadScriptManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadScriptManager RadScriptManager1; + + /// + /// UseFor 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField UseFor; + + /// + /// dp_type 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadDropDownList dp_type; + + /// + /// td_pic 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTableCell td_pic; + + /// + /// imgTopic 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Image imgTopic; + + /// + /// td_video 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlTableCell td_video; + + /// + /// video 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlVideo video; + + /// + /// RadAsyncUpload1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAsyncUpload RadAsyncUpload1; + + /// + /// btnUpload 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnUpload; + + /// + /// btnRemove 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnRemove; + + /// + /// dsc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox dsc; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnSure; + + /// + /// btnCancel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnCancel; + + /// + /// RadAjaxManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAjaxManager RadAjaxManager1; + } +} diff --git a/VRS/Management/ComHistory.aspx b/VRS/Management/ComHistory.aspx new file mode 100644 index 0000000..56824e3 --- /dev/null +++ b/VRS/Management/ComHistory.aspx @@ -0,0 +1,253 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComHistory.aspx.cs" Inherits="VRS.Management.ComHistory" %> + +<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> + + + + + + 公司历程管理 + + + + + + + +
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
标题、内容: + + + +   年份: + + + + +
公司历程列表:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + + <%-- --%> + + <%-- + + " style="color: green;">启用 + " style="color:magenta;">停用 + + --%> + + <%-- + + + + + --%> + + + + + ')" class="btn btn-warning btn-xs" title="编辑"> + ')" class="btn btn-danger btn-xs" title="删除"> + + + + + + + + + + + + + + + + + +
 
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/VRS/Management/ComHistory.aspx.cs b/VRS/Management/ComHistory.aspx.cs new file mode 100644 index 0000000..0660caf --- /dev/null +++ b/VRS/Management/ComHistory.aspx.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using Telerik.Web.UI; + +namespace VRS.Management +{ + public partial class ComHistory : BaseListPage + { + DataService.BLL.pro_com_history bll = new DataService.BLL.pro_com_history(); + DataService.BLL.admin_log log = new DataService.BLL.admin_log(); + + + protected override void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + //BindMajors(dpMajor, ""); + //BindGrade(grade, ""); + BindYears(dp_yearInfo,""); + + DataLoad(); + + } + } + + protected override void DataLoad() + { + + StringBuilder query = new StringBuilder(" 1 = 1 "); + if (!string.IsNullOrWhiteSpace(name.Text.Trim())) + { + query.AppendFormat(" AND (head LIKE '%{0}%' or dsc LIKE '%{0}%' ) ", name.Text.Trim()); + } + + if (!string.IsNullOrWhiteSpace(dp_yearInfo.SelectedValue)) + { + query.AppendFormat(" AND (year_info = '{0}' ) ", dp_yearInfo.SelectedValue); + + } + var sql = query.ToString(); + var data = bll.GetModelList(sql); + dataList.DataSource = data; + dataList.Rebind(); + + } + + protected override void GridList_PageIndexChanged(object sender, GridPageChangedEventArgs e) + { + DataLoad(); + } + + protected override void GridList_PageSizeChanged(object sender, GridPageSizeChangedEventArgs e) + { + DataLoad(); + } + + protected override void GridList_SortCommand(object sender, GridSortCommandEventArgs e) + { + DataLoad(); + } + + protected override void GrdList_DeleteCommand(object sender, GridCommandEventArgs e) + { + //string Id = (e.Item as GridDataItem).OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Id"].ToString(); + //bll.Delete(Id); + //DataLoad(); + } + + protected override void AjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e) + { + + } + + protected void btnSelect_Click(object sender, EventArgs e) + { + DataLoad(); + + } + + protected void btnDelete_Click(object sender, EventArgs e) + { + + var model = bll.GetModel(IdInput.Value); + var soft_id = IdInput.Value; + /* + var list = bll_app.GetModelList("soft_id='" + soft_id + "' "); // 附件条件,进度未完成:now() < end_time + if (list.Count > 0) + { + RadAjaxManager1.Alert("无法删除,该软件类型已经在使用中!"); + return; + } + */ + if (bll.Delete(IdInput.Value)) + { + log.write_log("删除公司历程成功。" + "标题:" + model.head + ",ID:" + IdInput.Value); + } + + DataLoad(); + } + + protected void dp_yearInfo_SelectedIndexChanged(object sender, DropDownListEventArgs e) + { + DataLoad(); + } + } +} \ No newline at end of file diff --git a/VRS/Management/ComHistory.aspx.designer.cs b/VRS/Management/ComHistory.aspx.designer.cs new file mode 100644 index 0000000..214d6c6 --- /dev/null +++ b/VRS/Management/ComHistory.aspx.designer.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace VRS.Management +{ + + + public partial class ComHistory + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// RadScriptManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadScriptManager RadScriptManager1; + + /// + /// IdInput 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField IdInput; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnDelete; + + /// + /// hd_mainId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hd_mainId; + + /// + /// hd_subId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hd_subId; + + /// + /// hd_taskId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField hd_taskId; + + /// + /// name 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox name; + + /// + /// dp_yearInfo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadDropDownList dp_yearInfo; + + /// + /// btnSelect 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnSelect; + + /// + /// dataList 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadGrid dataList; + + /// + /// RadWindowManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadWindowManager RadWindowManager1; + + /// + /// RadAjaxManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAjaxManager RadAjaxManager1; + } +} diff --git a/VRS/Management/ComHistory_Add.aspx b/VRS/Management/ComHistory_Add.aspx new file mode 100644 index 0000000..3e34cfd --- /dev/null +++ b/VRS/Management/ComHistory_Add.aspx @@ -0,0 +1,120 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComHistory_Add.aspx.cs" Inherits="VRS.Management.ComHistory_Add" %> + +<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> + + + + + + + 添加公司历程 + + + + + + + +
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + +
*年份: + + + + +
*标题: + + +
内容: + + +
备注: + + +
+ + + +
+
+ + + + + + + + + + + + + diff --git a/VRS/Management/ComHistory_Add.aspx.cs b/VRS/Management/ComHistory_Add.aspx.cs new file mode 100644 index 0000000..7966fdf --- /dev/null +++ b/VRS/Management/ComHistory_Add.aspx.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace VRS.Management +{ + public partial class ComHistory_Add : BasePage + { + DataService.BLL.pro_com_history bll = new DataService.BLL.pro_com_history(); + DataService.BLL.admin_log log = new DataService.BLL.admin_log(); + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + if (!IsPostBack) + { + BindYears(dp_yearInfo); + } + } + protected void btnSure_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(head.Text.Trim())) + { + RadAjaxManager1.Alert("标题不能为空!"); + return; + } + /* + if (bll.GetRecordCount(string.Format(" soft_name = '{0}' ", name.Text.Trim())) > 0) + { + RadAjaxManager1.Alert("类型名称禁止重复!"); + return; + } + */ + + DataService.Model.pro_com_history model = new DataService.Model.pro_com_history(); + model.id = BasePage.GetId(); + model.year_info = dp_yearInfo.SelectedValue; + model.head = head.Text.Trim(); + model.dsc = dsc_content.Text.Trim(); + model.create_time = DateTime.Now; + if (bll.Add(model)) + { + log.write_log("添加公司历程成功。" + "名称:" + model.head + ",ID:" + model.id); + RadAjaxManager1.ResponseScripts.Add("alert('添加成功!');CloseAndRebind();"); + } + else + { + RadAjaxManager1.Alert("添加失败!"); + } + + } + } +} \ No newline at end of file diff --git a/VRS/Management/ComHistory_Add.aspx.designer.cs b/VRS/Management/ComHistory_Add.aspx.designer.cs new file mode 100644 index 0000000..d5a51d2 --- /dev/null +++ b/VRS/Management/ComHistory_Add.aspx.designer.cs @@ -0,0 +1,107 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace VRS.Management +{ + + + public partial class ComHistory_Add + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// RadScriptManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadScriptManager RadScriptManager1; + + /// + /// UseFor 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField UseFor; + + /// + /// year_info 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox year_info; + + /// + /// dp_yearInfo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadDropDownList dp_yearInfo; + + /// + /// head 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox head; + + /// + /// dsc_content 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox dsc_content; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnSure; + + /// + /// btnCancel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnCancel; + + /// + /// RadAjaxManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAjaxManager RadAjaxManager1; + } +} diff --git a/VRS/Management/ComHistory_Edit.aspx b/VRS/Management/ComHistory_Edit.aspx new file mode 100644 index 0000000..ec90844 --- /dev/null +++ b/VRS/Management/ComHistory_Edit.aspx @@ -0,0 +1,119 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComHistory_Edit.aspx.cs" Inherits="VRS.Management.ComHistory_Edit" %> + +<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> + + + + + + + 修改公司历程 + + + + + + + +
+
+ + + + + + + + +
+ + + + + + + + + + + + + + + + + <%-- + + + --%> + + + + +
*年份: + + + + +
*标题: + + +
内容: + + +
备注: + + +
+ + + +
+
+ + + + + + + + + + + + diff --git a/VRS/Management/ComHistory_Edit.aspx.cs b/VRS/Management/ComHistory_Edit.aspx.cs new file mode 100644 index 0000000..822ec6f --- /dev/null +++ b/VRS/Management/ComHistory_Edit.aspx.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace VRS.Management +{ + public partial class ComHistory_Edit : BasePage + { + + + DataService.BLL.admin_log log = new DataService.BLL.admin_log(); + + + DataService.BLL.pro_com_history bll = new DataService.BLL.pro_com_history(); + protected override void Page_Load(object sender, EventArgs e) + { + base.Page_Load(sender, e); + if (!IsPostBack) + { + BindYears(dp_yearInfo); + DataLoad(); + } + } + + protected void DataLoad() + { + string Id = Request.Params["Id"]; + if (!string.IsNullOrWhiteSpace(Id)) + { + var model = bll.GetModel(Id); + dp_yearInfo.SelectedValue = model.year_info; + head.Text = model.head; + dsc_content.Text = model.dsc; + + } + else + { + OnError(null); + } + } + + protected void btnSure_Click(object sender, EventArgs e) + { + var model = bll.GetModel(Request.Params["Id"]); + if (string.IsNullOrEmpty(head.Text.Trim())) + { + RadAjaxManager1.Alert("标题不能为空!"); + return; + } + var id = Request.Params["Id"]; + /* + if (bll.GetRecordCount(string.Format(" soft_name = '{0}' and soft_id!='{1}' ", name.Text.Trim(), model.soft_id)) > 0) + { + RadAjaxManager1.Alert("类型名称称禁止重复!"); + return; + } + */ + model.year_info = dp_yearInfo.SelectedValue; + model.head = head.Text.Trim(); + model.dsc = dsc_content.Text.Trim(); + + if (bll.Update(model)) + { + log.write_log("修改公司历程成功。" + "标题:" + head.Text.Trim() + ",id:" + model.id); + RadAjaxManager1.ResponseScripts.Add("alert('修改成功!');CloseAndRebind();"); + } + else + RadAjaxManager1.Alert("修改失败!"); + } + } +} \ No newline at end of file diff --git a/VRS/Management/ComHistory_Edit.aspx.designer.cs b/VRS/Management/ComHistory_Edit.aspx.designer.cs new file mode 100644 index 0000000..5cb42ae --- /dev/null +++ b/VRS/Management/ComHistory_Edit.aspx.designer.cs @@ -0,0 +1,107 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace VRS.Management +{ + + + public partial class ComHistory_Edit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// RadScriptManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadScriptManager RadScriptManager1; + + /// + /// UseFor 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.HiddenField UseFor; + + /// + /// year_info 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox year_info; + + /// + /// dp_yearInfo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadDropDownList dp_yearInfo; + + /// + /// head 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox head; + + /// + /// dsc_content 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadTextBox dsc_content; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnSure; + + /// + /// btnCancel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadButton btnCancel; + + /// + /// RadAjaxManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::Telerik.Web.UI.RadAjaxManager RadAjaxManager1; + } +} diff --git a/VRS/Management/Home.aspx b/VRS/Management/Home.aspx index aaf72c0..9c7584a 100644 --- a/VRS/Management/Home.aspx +++ b/VRS/Management/Home.aspx @@ -117,7 +117,13 @@ - + <%----%> + + + + + + <%-- diff --git a/VRS/Management/SoftManagement.aspx b/VRS/Management/SoftManagement.aspx index 8676e49..88e1f5f 100644 --- a/VRS/Management/SoftManagement.aspx +++ b/VRS/Management/SoftManagement.aspx @@ -120,8 +120,8 @@ - - + + diff --git a/VRS/Util/BasePage.cs b/VRS/Util/BasePage.cs index 3bfe21e..fbdb6d4 100644 --- a/VRS/Util/BasePage.cs +++ b/VRS/Util/BasePage.cs @@ -521,6 +521,21 @@ namespace VRS } + public void BindYears(RadDropDownList control, string defaultItem = null) + { + var dpYear = control; + var year = DateTime.Now.Year; + dpYear.Items.Clear(); + if (null != defaultItem) + control.Items.Add(new DropDownListItem(defaultItem, defaultItem)); + for (int i = 0; i < 20; i++) + { + var currentYear = (year - i).ToString(); + dpYear.Items.Add(new DropDownListItem(currentYear, currentYear)); + } + } + + /* diff --git a/VRS/VRS.csproj b/VRS/VRS.csproj index 8f77d8a..a916f2e 100644 --- a/VRS/VRS.csproj +++ b/VRS/VRS.csproj @@ -636,6 +636,13 @@ + + + + + + + @@ -1037,6 +1044,55 @@ App_Func_Dsc.aspx + + ComAbout_Edit.aspx + ASPXCodeBehind + + + ComAbout_Edit.aspx + + + ComCertif.aspx + ASPXCodeBehind + + + ComCertif.aspx + + + ComCertif_Add.aspx + ASPXCodeBehind + + + ComCertif_Add.aspx + + + ComCertif_Edit.aspx + ASPXCodeBehind + + + ComCertif_Edit.aspx + + + ComHistory.aspx + ASPXCodeBehind + + + ComHistory.aspx + + + ComHistory_Add.aspx + ASPXCodeBehind + + + ComHistory_Add.aspx + + + ComHistory_Edit.aspx + ASPXCodeBehind + + + ComHistory_Edit.aspx + Course.aspx ASPXCodeBehind diff --git a/VRS/VRS.csproj.user b/VRS/VRS.csproj.user index 1290b45..7a3eabb 100644 --- a/VRS/VRS.csproj.user +++ b/VRS/VRS.csproj.user @@ -8,7 +8,7 @@ - Release|Any CPU + Debug|Any CPU ShowAllFiles E:\工作项目\2025项目\公司应用仿真\网站项目\dlmh_system\VRS\Properties\PublishProfiles\FolderProfile9.pubxml MvcControllerEmptyScaffolder