关键事项、邮件管理、任务管理

This commit is contained in:
2025-03-13 10:52:32 +08:00
parent 7a242ed776
commit c73bb1124d
99 changed files with 9738 additions and 3791 deletions
@@ -24,7 +24,7 @@
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:TextBox ID="txtUserName" runat="server" Label="接口名称" EmptyText="输入查询条件"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="50px"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="300px" LabelWidth="80px"
LabelAlign="Right">
</f:TextBox>
<%-- <f:DropDownList ID="drpDataType" runat="server" Label="操作类型" EnableEdit="false" ForceSelection="false"
@@ -28,8 +28,8 @@ namespace FineUIPro.Web.InterFace
Model.InterFaceLog interFaceLog=new Model.InterFaceLog();
interFaceLog.InterFaceName=txtUserName.Text;
var q= BLL.InterFaceLogService.GetInterFaceLogByModle(interFaceLog);
Grid1.RecordCount = InterFaceLogService.count;
Grid1.DataSource= InterFaceLogService.getListData(interFaceLog, Grid1);
Grid1.RecordCount = InterFaceLogService.count;
Grid1.DataBind();
}
@@ -22,10 +22,16 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBox ID="cbIsSingleRequest" Label="是否单一来源" runat="server" DisplayType="Switch" OnCheckedChanged="cbIsSingleRequest_OnCheckedChanged"
Checked="true" AutoPostBack="true">
</f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow ID="rowFace">
<Items>
<f:DropDownList ID="drpUnit" runat="server" Label="源单位" EnableEdit="true" ForceSelection="false"
Required="true" ShowRedStar="true">
>
</f:DropDownList>
<f:TextBox ID="txtFaceUrl" runat="server" Label="来源地址" Required="true" ShowRedStar="true" >
</f:TextBox>
@@ -33,23 +39,18 @@
Required="true" ShowRedStar="true">
</f:DropDownList>
</Items>
</f:FormRow>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownBox runat="server" ID="drpAuthUnit" DataControlID="rbAuthUnits"
Label="目标单位" MaxLength="4000">
<PopPanel>
<f:SimpleForm ID="SimpleForm2" BodyPadding="10px" runat="server" AutoScroll="true"
ShowBorder="True" ShowHeader="false" Hidden="true">
<Items>
<f:Label ID="Label1" runat="server" Text="请选择目标单位:"></f:Label>
<f:CheckBoxList ID="rbAuthUnits" ColumnNumber="3" runat="server">
</f:CheckBoxList>
</Items>
</f:SimpleForm>
</PopPanel>
</f:DropDownBox>
<f:TextArea ID="txtRequestJsonBody" runat="server" Label="请求报文体" Hidden="True" >
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow ID="rowFaceFor">
<Items>
<f:DropDownList runat="server" ID="drpAuthUnit"
Label="目标单位" MaxLength="4000" EnableEdit="True" >
</f:DropDownList>
<f:TextBox ID="txtFaceForUrl" runat="server" Label="目标地址" Required="true" ShowRedStar="true">
</f:TextBox>
<f:DropDownList ID="DrpForUrlReqMethod" runat="server" Label="请求类型" EnableEdit="false" ForceSelection="false"
@@ -57,7 +58,7 @@
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<f:FormRow ID="rowCallBack">
<Items>
<f:CheckBox ID="IsCallBack" Label="是否回调" runat="server" DisplayType="Switch" OnCheckedChanged="IsCallBack_CheckedChanged"
Checked="true" AutoPostBack="true">
@@ -49,6 +49,11 @@ namespace FineUIPro.Web.InterFace
this.drpUnit.DataValueField = "UnitId";
this.drpUnit.DataSource = BLL.UnitService.GetUnitDropDownList();
drpUnit.DataBind();
this.drpAuthUnit.DataTextField = "UnitName";
this.drpAuthUnit.DataValueField = "UnitId";
this.drpAuthUnit.DataSource = BLL.UnitService.GetUnitDropDownList();
drpAuthUnit.DataBind();
Funs.FineUIPleaseSelect(this.drpUnit);
if (!string.IsNullOrEmpty(this.InterFaceSetId))
{
@@ -62,14 +67,7 @@ namespace FineUIPro.Web.InterFace
this.drpUnit.SelectedValue = unit.UnitId;
}
}
var list = (from x in Funs.DB.Base_Unit
orderby x.UnitName
select new { x.UnitName, x.UnitId }).ToList();
foreach (var item in list)
{
this.rbAuthUnits.Items.Add(item.UnitName, item.UnitId);
}
if (!string.IsNullOrEmpty(this.InterFaceSetId))
{
@@ -89,10 +87,11 @@ namespace FineUIPro.Web.InterFace
this.IsCallBack.Checked =(bool) FaceSet.IsCallBack;
if (!string.IsNullOrEmpty(FaceSet.AuthUnitIds))
{
this.drpAuthUnit.Values = FaceSet.AuthUnitIds.Split(',');
this.drpAuthUnit.SelectedValueArray = FaceSet.AuthUnitIds.Split(',');
}
this.txtRemarks.Text = FaceSet.TxtRemarks;
txtRequestJsonBody.Text = FaceSet.RequestJsonBody;
if (FaceSet.IsOpen.HasValue)
{
this.drpIsOpen.SelectedValue = Convert.ToString(FaceSet.IsOpen);
@@ -109,8 +108,15 @@ namespace FineUIPro.Web.InterFace
{
this.DrpCallBackUrlReqMethod.SelectedValue = FaceSet.CallBackUrlReqMethod;
}
if (FaceSet.IsSingleRequest != null) cbIsSingleRequest.Checked = (bool)FaceSet.IsSingleRequest;
cbIsSingleRequest_OnCheckedChanged(null, null);
}
}
else
{
cbIsSingleRequest_OnCheckedChanged(null, null);
}
}
}
@@ -132,24 +138,10 @@ namespace FineUIPro.Web.InterFace
//目标单位
string AuthUnitId = string.Empty;
string AuthUnitName = string.Empty;
string UnitId = string.Empty;
foreach (var item in this.drpAuthUnit.Values)
{
if (item != "")
{
AuthUnitId += item + ",";
}
}
foreach (var item in this.drpAuthUnit.Texts)
{
if (item != "")
{
AuthUnitName += item + ",";
}
}
AuthUnitId = AuthUnitId.Substring(0, AuthUnitId.LastIndexOf(","));
AuthUnitName = AuthUnitName.Substring(0, AuthUnitName.LastIndexOf(","));
string UnitId = string.Empty;
AuthUnitId = string.Join(",", drpAuthUnit.SelectedValueArray);
AuthUnitName = UnitService.getUnitNamesUnitIds(AuthUnitId);
if (this.drpUnit.SelectedValue != Const._Null)
{
UnitId = this.drpUnit.SelectedValue;
@@ -168,7 +160,9 @@ namespace FineUIPro.Web.InterFace
InterFaceCallBackUrl = txtCallBackUrl.Text,
UrlReqMethod=DrpUrlReqMethod.SelectedValue.Trim(),
ForUrlReqMethod=DrpForUrlReqMethod.SelectedValue.Trim(),
CallBackUrlReqMethod=DrpCallBackUrlReqMethod.SelectedValue.Trim()
CallBackUrlReqMethod=DrpCallBackUrlReqMethod.SelectedValue.Trim(),
IsSingleRequest = cbIsSingleRequest.Checked,
RequestJsonBody = txtRequestJsonBody.Text.Trim(),
};
if (string.IsNullOrEmpty(this.InterFaceSetId))
@@ -195,7 +189,7 @@ namespace FineUIPro.Web.InterFace
/// <returns></returns>
private void GetButtonPower()
{
var buttonList = BLL.CommonService.GetAllButtonList(null,this.CurrUser.UserId, BLL.Const.InterFaceSetMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(string.Empty, this.CurrUser.UserId, BLL.Const.UserMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnSave))
@@ -218,5 +212,23 @@ namespace FineUIPro.Web.InterFace
}
}
protected void cbIsSingleRequest_OnCheckedChanged(object sender, CheckedEventArgs e)
{
if (cbIsSingleRequest.Checked == true)
{
this.rowFace.Hidden = false;
this.rowFaceFor.Hidden = true;
this.rowCallBack.Hidden = true;
txtRequestJsonBody.Hidden = false;
}
else
{
this.rowFace.Hidden = false;
this.rowFaceFor.Hidden = false;
this.rowCallBack.Hidden = false;
txtRequestJsonBody.Hidden = true;
}
}
}
}
@@ -50,6 +50,24 @@ namespace FineUIPro.Web.InterFace
/// </remarks>
protected global::FineUIPro.TextBox txtFaceName;
/// <summary>
/// cbIsSingleRequest 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBox cbIsSingleRequest;
/// <summary>
/// rowFace 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow rowFace;
/// <summary>
/// drpUnit 控件。
/// </summary>
@@ -77,6 +95,24 @@ namespace FineUIPro.Web.InterFace
/// </remarks>
protected global::FineUIPro.DropDownList DrpUrlReqMethod;
/// <summary>
/// txtRequestJsonBody 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtRequestJsonBody;
/// <summary>
/// rowFaceFor 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow rowFaceFor;
/// <summary>
/// drpAuthUnit 控件。
/// </summary>
@@ -84,34 +120,7 @@ namespace FineUIPro.Web.InterFace
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownBox drpAuthUnit;
/// <summary>
/// SimpleForm2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.SimpleForm SimpleForm2;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// rbAuthUnits 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBoxList rbAuthUnits;
protected global::FineUIPro.DropDownList drpAuthUnit;
/// <summary>
/// txtFaceForUrl 控件。
@@ -131,6 +140,15 @@ namespace FineUIPro.Web.InterFace
/// </remarks>
protected global::FineUIPro.DropDownList DrpForUrlReqMethod;
/// <summary>
/// rowCallBack 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FormRow rowCallBack;
/// <summary>
/// IsCallBack 控件。
/// </summary>
@@ -20,7 +20,7 @@
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="接口设置" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="InterFaceSetId" EnableColumnLines="true"
runat="server" BoxFlex="1" DataKeyNames="InterFaceSetId" EnableColumnLines="true" ForceFit="true"
ClicksToEdit="2" DataIDField="InterFaceSetId" AllowSorting="true" SortField="InterFaceName"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" Width="980px">
@@ -55,8 +55,7 @@
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center" TextAlign="Center"/>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center" TextAlign="Center"/>
<f:RenderField Width="120px" ColumnID="InterFaceName" DataField="InterFaceName" EnableFilter="true"
SortField="InterFaceName" FieldType="String" HeaderText="接口名称" HeaderTextAlign="Center"
TextAlign="Left">
@@ -77,13 +76,13 @@
<asp:Label ID="Label4" runat="server" Text='<%# Bind("InterFaceForUrl") %>' ToolTip='<%# Bind("InterFaceForUrl") %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<%-- <f:TemplateField Width="100px" HeaderText="频率" ColumnID="ValidPeriod" HeaderTextAlign="Center" ExpandUnusedSpace="true"
<%-- <f:TemplateField Width="100px" HeaderText="频率" ColumnID="ValidPeriod" HeaderTextAlign="Center"
TextAlign="Left">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("ValidPeriod") %>' ToolTip='<%# Bind("ValidPeriod") %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>--%>
<f:TemplateField Width="350px" HeaderText="目标单位" ColumnID="AuthUnitName" HeaderTextAlign="Center" ExpandUnusedSpace="true"
<f:TemplateField Width="350px" HeaderText="目标单位" ColumnID="AuthUnitName" HeaderTextAlign="Center"
TextAlign="Left">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("AuthUnitName") %>' ToolTip='<%# Bind("AuthUnitName") %>'></asp:Label>
@@ -76,7 +76,7 @@
{
if (this.CurrUser != null)
{
var buttonList = BLL.CommonService.GetAllButtonList(null,this.CurrUser.UserId, BLL.Const.InterFaceSetMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(string.Empty, this.CurrUser.UserId, BLL.Const.UserMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
@@ -37,7 +37,7 @@
<f:Button ID="btnEdit" Text="编辑" ToolTip="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click"
Hidden="true">
</f:Button>
<f:Button ID="Button1" Text="立即执行" ToolTip="开始执行" Icon="ServerStart" OnClick="btnStart_Click"
<f:Button ID="Button1" Text="执行" ToolTip="开始执行" Icon="SystemSaveNew" OnClick="btnStart_Click"
runat="server">
</f:Button>
</Items>
@@ -50,7 +50,7 @@
{
if (this.CurrUser != null)
{
var buttonList = BLL.CommonService.GetAllButtonList(null,this.CurrUser.UserId, BLL.Const.InterFaceTaskMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(string.Empty, this.CurrUser.UserId, BLL.Const.UserMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnModify))
@@ -205,11 +205,6 @@
#endregion
protected void btnStart_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInParent("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
var Id = Grid1.SelectedRowID;
BLL.InterFaceTaskService.ExecuteTasks(Id);
}
@@ -16,8 +16,10 @@
<f:FormRow>
<Items>
<f:TextBox ID="txtInterFaceName" runat="server" Label="任务名称" LabelAlign="Right" AutoPostBack="true" LabelWidth="140px"></f:TextBox>
<f:NumberBox ID="txtFrequency" runat="server" NoDecimal="true" NoNegative="false" Label="频率(小时)" MinValue="0" MaxValue="12">
</f:NumberBox>
<%-- <f:NumberBox ID="txtFrequency" runat="server" NoDecimal="true" NoNegative="false" Label="频率(小时)" MinValue="0" MaxValue="12">
</f:NumberBox>--%>
<f:TextBox ID="txtFrequency" runat="server" Label="频率(表达式)" LabelAlign="Right" LabelWidth="140px" >
</f:TextBox>
<f:CheckBox ID="IsEnable" Label="是否启用" runat="server" DisplayType="Switch" Checked="true">
</f:CheckBox>
</Items>
@@ -81,7 +81,7 @@ namespace FineUIPro.Web.InterFace
{
var model=BLL.InterFaceTaskService.GetInterFaceTaskById(InterFaceTaskId);
model.InterFaceName=txtInterFaceName.Text;
model.Frequency = txtFrequency.Text;
model.Frequency = txtFrequency.Text.Trim();
model.InterFaceSetLists=string .Join(",", list);
model.CreateTime = DateTime.Now;
model.Enable = IsEnable.Checked;
@@ -93,7 +93,7 @@ namespace FineUIPro.Web.InterFace
model.InterFaceTaskId = SQLHelper.GetNewID(typeof(Model.InterFaceTask));
InterFaceTaskId = model.InterFaceTaskId;
model.InterFaceName = txtInterFaceName.Text;
model.Frequency = txtFrequency.Text;
model.Frequency = txtFrequency.Text.Trim();
model.InterFaceSetLists = string.Join(",", list);
model.CreateTime = DateTime.Now;
model.Enable = IsEnable.Checked;
@@ -57,7 +57,7 @@ namespace FineUIPro.Web.InterFace
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtFrequency;
protected global::FineUIPro.TextBox txtFrequency;
/// <summary>
/// IsEnable 控件。