init lserp cs 5.0

This commit is contained in:
cyf
2026-07-10 15:25:05 +08:00
commit 90f3fda86a
3799 changed files with 976868 additions and 0 deletions
@@ -0,0 +1,84 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Common
{
public class ControlModelTag_Bak
{
public ControlModelTag_Bak()
{
}
public ControlModelTag_Bak(bool IsSave, bool IsEmpt, string TipMsg, int filedTypeid, bool IsClear, string DefaultValue,
string DefaultText, object Tag)
{
this.IsSave = IsSave;
this.IsEmpt = IsEmpt;
this.TipMsg = TipMsg;
this.fieldTypeId = filedTypeid;
this.IsClear = IsClear;
this.DefaultValue = DefaultValue;
this.DefaultText = DefaultText;
this.Tag = Tag;
}
/// <summary>
/// 是否保存
/// </summary>
public bool IsSave { get; set; }
/// <summary>
/// 是否为空
/// </summary>
public bool IsEmpt { get; set; }
/// <summary>
/// 提示信息
/// </summary>
public string TipMsg { get; set; }
/// <summary>
/// 控件类型
/// </summary>
public int fieldTypeId { get; set; }
/// <summary>
/// 控件字段
/// </summary>
public string fieldName { get; set; }
/// <summary>
/// 是否清除
/// </summary>
public bool IsClear { get; set; }
/// <summary>
///默认Vlaue值
/// </summary>
public string DefaultValue { get; set; }
/// <summary>
/// 默认Text
/// </summary>
public string DefaultText { get; set; }
/// <summary>
/// 关联字段
/// </summary>
public string unionFields { get; set; }
/// <summary>
/// 关联值
/// </summary>
public string unionValue { get; set; }
/// <summary>
/// 扩展字段
/// </summary>
public object Tag { get; set; }
/// <summary>
/// 赋值
/// </summary>
public bool isSetText { get; set; }
/// <summary>
/// 时间格式化
/// </summary>
public string DateFormat { get; set; }
///<summary>
///下拉sql
///</summary>
public string lookupSql { get; set; }
}
}
+41
View File
@@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.Common
{
public class ControlType
{
public const int LabText = 0;//文本框
public const int LabComboxValue = 1;//下拉框 获取Value值
public const int LabTreeType = 3;//树
public const int LabComboxText = 2;//下拉框 获取Text值
public const int LabDate = 4;//日期(年-月-日)
public const int LabDateTime = 44;//日期和时间(年-月-日 时-分-秒)
public const int LabDateTimeShort = 444; // 日期短时间(年-月-日 时-分)
public const int LabTime = 4444; // 时间(时-分-秒)
public const int LabShortTime = 44444; // 短时间(时-分)
public const int LabAutoSeacherValue = 5;//自动搜索 获取Value值
public const int LabAutoSeacherText = 6;//自动搜索 获取Text值
public const int LabTextInt = 7;//数字控件
public const int LabRemark = 9;//备注
public const int LabWWW = 10;//网址
public const int LabQQ = 11;//QQ
public const int LabMultiSelectValue = 13;//多选,获取Value
public const int LabMultiSelectText = 14;//多选,获取Text
public const int LabPic = 99;//图片
public const int LabCheckComboxValue = 21;
public const int LabCheckComboxText = 22;
public const int LabCheckAutoSeacherValue = 25;
public const int LabCheckAutoSeacherText = 26;
public const int LabCheckDateEx = 24;
public const int LabCheckDateTimeEx = 244;
public const int LabCheckDateTimeShort = 2444;
public const int LabCheckTime = 24444;
public const int LabCheckShortTime = 244444;
}
}
@@ -0,0 +1,55 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
namespace Lskj.Common
{
public class CreateControlModel
{
public CreateControlModel()
{
}
public CreateControlModel(Control ctr, string sql,string loginid, string loginname, DataTable dt)
{
this.ctr = ctr;
this.sql = sql;
this.loginid = loginid;
this.loginname = loginname;
this.dt = dt;
}
/// <summary>
/// 填充数据控件
/// </summary>
public Control ctr { get; set; }
/// <summary>
/// 填充Sql
/// </summary>
public string sql { get; set; }
/// <summary>
/// 登录Id
/// </summary>
public string loginid { get; set; }
/// <summary>
/// 登录用户名
/// </summary>
public string loginname { get; set; }
/// <summary>
/// 关联GUID
/// </summary>
public string formKey { get; set; }
/// <summary>
/// 数据
/// </summary>
public DataTable dt { get; set; }
/// <summary>
/// 搜索Sql
/// </summary>
public string SearchSql { get; set; }
public string[] otherParams { get; set; }
}
}
@@ -0,0 +1,72 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
namespace Lskj.Common
{
public class CreateControlModel2
{
/// <summary>
/// 开始坐标
/// </summary>
public int StartX { get; set; }
/// <summary>
/// 结束坐标
/// </summary>
public int StartY { get; set; }
/// <summary>
/// 添加控件容器
/// </summary>
public Control ctr { get; set; }
/// <summary>
/// 添加控件容器
/// </summary>
public Control ctr1 { get; set; }
/// <summary>
/// 添加控件容器
/// </summary>
public Control ctr2 { get; set; }
// /// <summary>
/// 添加控件容器
/// </summary>
public Control ctr3 { get; set; }
/// <summary>
/// 数据集
/// </summary>
public DataTable dt { get; set; }
/// <summary>
/// sql
/// </summary>
public string sql { get; set; }
/// <summary>
/// 登录Id
/// </summary>
public string loginid { get; set; }
/// <summary>
/// 容器存放控件数量
/// </summary>
public int ctrNum { get; set; }
/// <summary>
/// 登录用户名
/// </summary>
public string loginname { get; set; }
/// <summary>
/// 查看视图
/// </summary>
public int isView { get; set; }
/// <summary>
/// 操作类型
/// </summary>
public bool isUpdate { get; set; }
/// <summary>
/// 构造函数
/// </summary>
public CreateControlModel2()
{
}
}
}
@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Windows.Forms;
namespace Lskj.Common
{
public class MyControlText
{
public MyControlText() { }
/// <summary>
/// 赋值dr
/// </summary>
public DataRow dr { get; set; }
/// <summary>
/// 查询列数据
/// </summary>
public string sql { get; set; }
/// <summary>
/// 数据集合
/// </summary>
public DataTable dt { get; set; }
/// <summary>
/// 控件容器
/// </summary>
public Control ctr { get; set; }
/// <summary>
/// 表名
/// </summary>
public string TableName { get; set; }
/// <summary>
/// 修改条件
/// </summary>
public string where { get; set; }
public bool IsAdd { get; set; }
/// <summary>
/// 数据集合
/// </summary>
public string KeyFieldName { get; set; }
public string modid { get; set; }
/// <summary>
/// 数据集合
/// </summary>
public DataTable dtData { get; set; }
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff