old_flsystem/应用/Delivery.Plugin/Model/fl_plugin_delivery_group.cs

341 lines
14 KiB
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
using Api.Framework;
using Api.Framework.Enums;
using Api.Framework.Tools;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UI.Framework.Entitys;
namespace Delivery.Plugin.Model
{
public class fl_plugin_delivery_group : base_model
{
[Category("1、基础设置"), DisplayName("01.大学名字"), DefaultValue(3), Description(@"")]
/// <summary>
/// 大学名
/// </summary>
public string name { get; set; }
[SqlSugar.SugarColumn(Length = 2000)]
[Category("1、基础设置"), DisplayName("02.取件位置"), DefaultValue(@""), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor)),Browsable(false)]
/// <summary>
/// 取件位置
/// </summary>
public string position { get; set; }
private List<string> Positions;
public List<string> GetPositions(bool f5 = false)
{
if (Positions == null || f5)
{
Positions = new List<string>();
var session = ApiClient.GetSession();
var _temp = session.Queryable<fl_plugin_delivery_kuaidi>().Where(f=>f.group_id == this.id).ToList();
foreach (var item in _temp) Positions.Add(item.name);
}
return Positions;
}
[Category("1、基础设置"), DisplayName("03.机器人微信号"), DefaultValue(@""), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
[SqlSugar.SugarColumn(Length = 2000)]
/// <summary>
/// 微信号
/// </summary>
public string weixinhao { get; set; }
private List<string> weixinhaos;
public List<string> GetWeixinhao(bool f5=false)
{
if (weixinhaos==null || f5)
{
weixinhaos = weixinhao.Split(new string[] { "\r\n" },StringSplitOptions.None).ToList();
}
return weixinhaos;
}
[Category("1、基础设置"), DisplayName("04.管理员ID"), DefaultValue(@""), Description("软件上的数据编号ID,并非微信号,或者微信ID."), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
[SqlSugar.SugarColumn(Length = 2000)]
public string admins { get; set; }
[Category("1、基础设置"), DisplayName("05.最迟几点可提交"), DefaultValue(@""), Description("例如16:30")]
public string lastTime { get; set; }
[Category("1、基础设置"), DisplayName("07.强制停止提交原因"), DefaultValue(@""), Description("此处请不要写,如果写了原因,所有人将无法提交成功,将会提示此原因!"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
public string stop_sumbmit_text { get; set; }
[Category("1、基础设置"), DisplayName("08.备注"), DefaultValue(@""), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 备注信息
/// </summary>
public string remark { get; set; }
[Category("1、基础设置"), DisplayName("09.上传凭证成功"), DefaultValue(@"快递已经到啦!
[]
.
[凭证图片地址]
...
.
[教程]"), Description(""), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 上传凭证提示语
/// </summary>
public string upload_msg { get; set; }
#region
[Category("2、运营设置"), DisplayName("01.免费次数"), DefaultValue(3), Description(@"新用户都会赠送免单码")]
/// <summary>
/// 免费多少单
/// </summary>
public int FreeCount { get; set; }
[ Category("2、运营设置"), DisplayName("02.最低标准"), DefaultValue(3), Description(@"最低多少佣金,才参与免单")]
/// <summary>
/// 满足多少加一次
/// </summary>
public double ConditionPoint { get; set; }
[Category("2、运营设置"), DisplayName("03.自动通过好友申请开关"), DefaultValue(SwitchType.开启), Description(@"功能开启时,将自动通过好友申请")]
public SwitchType Accept { get; set; }
/// <summary>
/// 申请延迟时间秒数
/// </summary>
[Category("2、运营设置"), DisplayName("04.自动通过好友申请延迟时间"), DefaultValue(10), Description(@"自动通过好友申请功能开启时,将延迟申请通过动作")]
public int Retardation { get; set; }
/// <summary>
/// 新人欢迎提示
/// </summary>
[SqlSugar.SugarColumn(Length = 2000), Category("2、运营设置"), DisplayName("05.新人欢迎提示"), DefaultValue(@"您好同学,我们承诺“终身免费”配送快递,永不收费!!!!!
👇👇👇
[]
[]
[教程]"), Description(@"[][][][][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
public string WelcomeTip { get; set; }
[ Category("2、运营设置"), DisplayName("06.付款成功提示"), DefaultValue(@"--------【获得免单】--------
[商品标题]
🔨[]
🔥[]
🚚[]
----------------------------------
🎁,🎁
🉐使🉐
"), Description("[][][][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 绑定订单 - 提示语
/// </summary>
public string BMsgSuccess1 { get; set; }
[ Category("2、运营设置"), DisplayName("07.订单不满足标准"), DefaultValue(@"一一一一免 单 失 败一一一一
[商品标题]
🔨[]🔨
,!"), Description("[][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 订单不满足
/// </summary>
public string BMsgError1 { get; set; }
[ Category("2、运营设置"), DisplayName("08.找不到这个订单号"), DefaultValue(@"一一一一免 单 失 败一一一一
🔨[]
!"), Description("[]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 订单不存在
/// </summary>
public string BMsgError2 { get; set; }
[Category("2、运营设置"), DisplayName("09.订单退款或失效了"), DefaultValue(@"一一一一撤 销 免 单一一一一
[商品标题]
🔥[]
🔨[]
退!"), Description("[][][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 订单失效、或退款
/// </summary>
public string BMsgError3 { get; set; }
[ Category("2、运营设置"), DisplayName("10.订单维权中"), DefaultValue(@"一一一一撤 销 免 单一一一一
[商品标题]
🔥[]
🔨[]
,"), Description(@"[][][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 订单维权中
/// </summary>
public string BMsgError4 { get; set; }
[ Category("2、运营设置"), DisplayName("11.订单重复绑定"), DefaultValue(@"一一一一【获得免单】一一一一
[商品标题]
🔨[]
🔥[]
🚚[]
----------------------------------
🎁,🎁
🉐使🉐"), Description(@"[][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 订单重复绑定
/// </summary>
public string BMsgError5 { get; set; }
[ Category("2、运营设置"), DisplayName("12.订单号已被他人绑定"), DefaultValue(@"一一一一免 单 失 败一一一一
[]
!"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 订单重复绑定
/// </summary>
public string BMsgError6 { get; set; }
[ Category("2、运营设置"), DisplayName("13.获取免单码列表"), DefaultValue(@"一一一一免 单 码一一一一
[免单码列表]
🚚[]
~"), Description(@"[][][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 查询免单码 提示语
/// </summary>
public string CMsgSuccess1 { get; set; }
[ Category("2、运营设置"), DisplayName("14.提交代取件成功"), DefaultValue(@"一一一一【提交成功】一一一一
💞 []
🔥[]
💬[]
📞[]
💒[]
----------------------------------
,
[教程]"), Description(@"[][[][]"), Editor(typeof(PropertyGridRichText), typeof(System.Drawing.Design.UITypeEditor))]
/// <summary>
/// 提交订单 提示语
/// </summary>
public string TMsgSuccess1 { get; set; }
#endregion
#region
#endregion
public fl_plugin_delivery_group()
{
this.stop_sumbmit_text = string.Empty;
this.remark = string.Empty;
this.lastTime = "17:00";
this.name = string.Empty;
this.position = string.Empty;
this.weixinhao = string.Empty;
this.admins = string.Empty;
this.upload_msg = @"快递已经到啦!
[]
.
[凭证图片地址]
...
.
[教程]";
this.WelcomeTip = @"您好同学,我们承诺“终身免费”配送快递,永不收费!!!!!
👇👇👇
[]
[]
[教程]";
this.BMsgSuccess1 = @"一一一一免 单 失 败一一一一
[商品标题]
🔨[]
,!";
this.BMsgError1 = @"一一一一免 单 失 败一一一一
[商品标题]
🔨[]
,!";
this.BMsgError2 = @"一一一一免 单 失 败一一一一
🔨[]
!";
this.BMsgError3 = @"一一一一撤 销 免 单一一一一
[商品标题]
🔥[]
🔨[]
退!";
this.BMsgError4 = @"一一一一撤 销 免 单一一一一
[商品标题]
🔥[]
🔨[]
,";
this.BMsgError5 = @"一一一一【获得免单】一一一一
[商品标题]
🔨[]
🔥[]
🚚[]
----------------------------------
🎁,🎁
🉐使🉐";
this.BMsgError6 = @"一一一一免 单 失 败一一一一
[]
!";
this.CMsgSuccess1 = @"一一一一免 单 码一一一一
[免单码列表]
🚚[]
~";
this.TMsgSuccess1 = @"一一一一【提交成功】一一一一
💞 []
🔥[]
💬[]
📞[]
💒[]
----------------------------------
,
[教程]";
}
}
}