Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
638cd977
Commit
638cd977
authored
Apr 23, 2022
by
罗显健
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://jhdsoft.gicp.net:18180/root/Ftt_Common
parents
cf1e1b85
68e8c561
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
47 additions
and
12 deletions
+47
-12
AutoUpdate.exe
AppHome/AutoUpdate/AutoUpdate.exe
+0
-0
AutoUpdate.pdb
AppHome/AutoUpdate/AutoUpdate.pdb
+0
-0
links.xml
AppHome/config/links.xml
+12
-0
Tools.csproj
Tools/Tools.csproj
+5
-5
wHelpDocument.cs
Tools/UI/sys/wHelpDocument.cs
+12
-1
wAppModel.cs
Tools/UI/wAppModel.cs
+2
-1
wFileShare.Designer.cs
Tools/UI/wFileShare.Designer.cs
+1
-1
wFileShare.cs
Tools/UI/wFileShare.cs
+14
-3
wFileShare.resx
Tools/UI/wFileShare.resx
+0
-0
wExtend.cs
Tools/wExtend.cs
+1
-1
No files found.
AppHome/AutoUpdate/AutoUpdate.exe
View file @
638cd977
No preview for this file type
AppHome/AutoUpdate/AutoUpdate.pdb
View file @
638cd977
No preview for this file type
AppHome/config/links.xml
View file @
638cd977
...
...
@@ -156,4 +156,16 @@
<UserId>
sa
</UserId>
<Pwd>
sa
</Pwd>
</links>
<links>
<Link>
192.168.18.253
</Link>
<DbName>
JHD_HY
</DbName>
<UserId>
sa
</UserId>
<Pwd>
a*1
</Pwd>
</links>
<links>
<Link>
192.168.18.253
</Link>
<DbName>
FTT
</DbName>
<UserId>
sa
</UserId>
<Pwd>
a*1
</Pwd>
</links>
</DocumentElement>
\ No newline at end of file
Tools/Tools.csproj
View file @
638cd977
...
...
@@ -202,11 +202,11 @@
<Compile
Include=
"UI\wEvaluationOfEmployee.Designer.cs"
>
<DependentUpon>
wEvaluationOfEmployee.cs
</DependentUpon>
</Compile>
<Compile
Include=
"UI\wF
low
Share.cs"
>
<Compile
Include=
"UI\wF
ile
Share.cs"
>
<SubType>
Form
</SubType>
</Compile>
<Compile
Include=
"UI\wF
low
Share.Designer.cs"
>
<DependentUpon>
wF
low
Share.cs
</DependentUpon>
<Compile
Include=
"UI\wF
ile
Share.Designer.cs"
>
<DependentUpon>
wF
ile
Share.cs
</DependentUpon>
</Compile>
<Compile
Include=
"UI\wImageSearch.cs"
>
<SubType>
Form
</SubType>
...
...
@@ -425,8 +425,8 @@
<EmbeddedResource
Include=
"UI\wEvaluationOfEmployee.resx"
>
<DependentUpon>
wEvaluationOfEmployee.cs
</DependentUpon>
</EmbeddedResource>
<EmbeddedResource
Include=
"UI\wF
low
Share.resx"
>
<DependentUpon>
wF
low
Share.cs
</DependentUpon>
<EmbeddedResource
Include=
"UI\wF
ile
Share.resx"
>
<DependentUpon>
wF
ile
Share.cs
</DependentUpon>
</EmbeddedResource>
<EmbeddedResource
Include=
"UI\wImageSearch.resx"
>
<DependentUpon>
wImageSearch.cs
</DependentUpon>
...
...
Tools/UI/sys/wHelpDocument.cs
View file @
638cd977
...
...
@@ -25,7 +25,11 @@ namespace Tools.UI.sys
private
void
wHelpDocument_Load
(
object
sender
,
EventArgs
e
)
{
//初始化模块表
this
.
ModuleTableList
=
new
List
<
TQuery
>
{
new
TQuery
(
"FTT_HelpDocument"
,
"SELECT * FROM FTT_HelpDocument "
)
};
this
.
ModuleTableList
=
new
List
<
TQuery
>
{
new
TQuery
(
"FTT_HelpDocument"
,
@"SELECT ID, dName, dSize, CAST(NULL AS IMAGE) AS dData, CreateDate, UpdateDate, CreateUser, UpdateUser
FROM FTT_HelpDocument "
)
};
//初始化数据访问对象
this
.
InitDBHelper
(
Utils
.
GetDbLinkString204
(
"FTT_Work"
));
//初始化界面
...
...
@@ -49,6 +53,8 @@ namespace Tools.UI.sys
public
override
void
InitData
()
{
this
.
_ds
=
this
.
_db
.
GetData
(
this
.
ModuleTableList
,
true
);
//为优化取数速度虚构dData列,虚构列默认为只读,这里改为可编辑,方便更新操作
this
.
_ds
.
Tables
[
0
].
Columns
[
"dData"
].
ReadOnly
=
false
;
this
.
AsyncUI
(()
=>
{
this
.
dgvDetail
.
DataSource
=
this
.
_ds
.
Tables
[
0
].
DefaultView
;
this
.
ButtonEnabled
(
true
);
...
...
@@ -116,6 +122,11 @@ namespace Tools.UI.sys
{
var
drNow
=
this
.
_ds
.
Tables
[
0
].
DefaultView
[
e
.
RowIndex
];
var
fileName
=
drNow
[
"dName"
].
ToString
();
if
(
drNow
[
"dData"
]
==
DBNull
.
Value
)
{
drNow
[
"dData"
]
=
this
.
_db
.
ExecScalar
(
$"SELECT dData FROM dbo.FTT_HelpDocument WHERE ID =
{
Convert
.
ToInt32
(
drNow
[
"ID"
])}
"
);
this
.
_ds
.
AcceptChanges
();
//忽略此更改
}
File
.
WriteAllBytes
(
$@"
{
dlg
.
SelectedPath
}
\
{
fileName
}
"
,
drNow
[
"dData"
]
as
byte
[]);
Utils
.
Tip
(
"下载成功!"
);
}
...
...
Tools/UI/wAppModel.cs
View file @
638cd977
...
...
@@ -38,7 +38,8 @@ namespace Tools.UI
public
override
void
InitData
()
{
string
sql
=
$@"
SELECT a.ID,a.Code,a.Name,a.PrevID,b.Name AS PrevName,a.ModuleName FROM dbo.App_SysBusinessModel a
SELECT a.ID,a.Code,a.Name,a.PrevID,b.Name AS PrevName,a.ModuleName
FROM dbo.App_SysBusinessModel a
INNER JOIN dbo.App_SysBusinessModel b ON a.PrevID=b.ID
WHERE
{
strWhere
}
ORDER BY A.ID DESC"
;
...
...
Tools/UI/wF
low
Share.Designer.cs
→
Tools/UI/wF
ile
Share.Designer.cs
View file @
638cd977
namespace
Tools.UI
{
partial
class
wF
low
Share
partial
class
wF
ile
Share
{
/// <summary>
/// Required designer variable.
...
...
Tools/UI/wF
low
Share.cs
→
Tools/UI/wF
ile
Share.cs
View file @
638cd977
...
...
@@ -15,9 +15,9 @@ using Tools.MyUtils;
namespace
Tools.UI
{
public
partial
class
wF
low
Share
:
wEditBasic
public
partial
class
wF
ile
Share
:
wEditBasic
{
public
wF
low
Share
()
public
wF
ile
Share
()
{
InitializeComponent
();
}
...
...
@@ -25,7 +25,11 @@ namespace Tools.UI
private
void
wFlowShare_Load
(
object
sender
,
EventArgs
e
)
{
//初始化模块表
this
.
ModuleTableList
=
new
List
<
TQuery
>
{
new
TQuery
(
"FTT_Share"
,
"SELECT * FROM FTT_Share"
)
};
this
.
ModuleTableList
=
new
List
<
TQuery
>
{
new
TQuery
(
"FTT_Share"
,
@"SELECT ID, dType, dName, dSize, CAST(NULL AS IMAGE) AS dData, CreateDate, UpdateDate, CreateUser, UpdateUser
FROM dbo.FTT_Share"
)
};
//初始化数据访问对象
this
.
InitDBHelper
(
Utils
.
GetDbLinkString204
(
"FTT_Work"
));
//初始化
...
...
@@ -45,6 +49,8 @@ namespace Tools.UI
this
.
AsyncUI
(()
=>
{
this
.
_ds
=
this
.
_db
.
GetData
(
this
.
ModuleTableList
,
true
);
this
.
dgvDetail
.
DataSource
=
this
.
_ds
.
Tables
[
0
].
DefaultView
;
//为优化取数速度虚构dData列,虚构列默认为只读,这里改为可编辑,方便更新操作
this
.
_ds
.
Tables
[
0
].
Columns
[
"dData"
].
ReadOnly
=
false
;
});
}
...
...
@@ -66,6 +72,11 @@ namespace Tools.UI
{
var
drNow
=
this
.
_ds
.
Tables
[
0
].
DefaultView
[
e
.
RowIndex
];
var
fileName
=
drNow
[
"dName"
].
ToString
();
if
(
drNow
[
"dData"
]
==
DBNull
.
Value
)
{
drNow
[
"dData"
]
=
this
.
_db
.
ExecScalar
(
$"SELECT dData FROM dbo.FTT_Share WHERE ID =
{
Convert
.
ToInt32
(
drNow
[
"ID"
])}
"
);
this
.
_ds
.
AcceptChanges
();
//忽略此更改
}
File
.
WriteAllBytes
(
$@"
{
dlg
.
SelectedPath
}
\
{
fileName
}
"
,
drNow
[
"dData"
]
as
byte
[]);
Utils
.
Tip
(
"下载成功!"
);
}
...
...
Tools/UI/wF
low
Share.resx
→
Tools/UI/wF
ile
Share.resx
View file @
638cd977
File moved
Tools/wExtend.cs
View file @
638cd977
...
...
@@ -40,7 +40,7 @@ namespace Tools
return
new
List
<
ModuleInfo
>
{
//-------------------------------
this
.
CreateModule
(
Tools_uni
,
typeof
(
UI
.
wF
low
Share
),
"共享文件"
,
"tr:助力业务沉淀与流程共享"
),
this
.
CreateModule
(
Tools_uni
,
typeof
(
UI
.
wF
ile
Share
),
"共享文件"
,
"tr:助力业务沉淀与流程共享"
),
this
.
CreateModule
(
Tools_uni
,
typeof
(
UI
.
wDbLinkMngr
),
"共享信息"
,
"tr:客户数据库及远程桌面信息"
),
this
.
CreateModule
(
Tools_uni
,
typeof
(
UI
.
wTaskBoard
),
"任务看板"
,
"tr:任务看板的简易化工具,免除翻页困扰"
),
this
.
CreateModule
(
Tools_uni
,
typeof
(
UI
.
wLoginPwd
),
"密码解析"
,
"tr:用于登陆密码的解密加密"
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment