Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
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
liudong1993
Property
Commits
10e2cd47
Commit
10e2cd47
authored
Apr 14, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产批量导入 增加二维码生成, 资产流程 模板查询增加集团
parent
64ea889d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
PropertyModule.cs
Property.Modele.FixedAssets/PropertyModule.cs
+27
-6
No files found.
Property.Modele.FixedAssets/PropertyModule.cs
View file @
10e2cd47
...
...
@@ -553,8 +553,29 @@ namespace Property.Module.FixedAssets
BMStr
=
"0"
+
BMStr
;
break
;
}
}
#
region
生成二维码
string
QRPath
=
DateTime
.
Now
.
Ticks
.
ToString
()
+
".png"
;
string
basepath
=
AppContext
.
BaseDirectory
;
string
path_server
=
basepath
+
"\\upfile\\code\\"
+
QRPath
;
string
ImageAddress
=
"/upfile/code/"
+
QRPath
;
string
logoPath
=
basepath
+
"\\ExportFile\\Branch\\Logo.png"
;
try
{
QRCodeHelper
.
Create_CodeImages
(
"PropertyCheck|Id="
+
PropertyId
,
5
,
logoPath
,
path_server
,
System
.
Drawing
.
Imaging
.
ImageFormat
.
Png
);
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"QRCodeHelper.Create_CodeImages"
);
ImageAddress
=
""
;
}
#
endregion
Dictionary
<
string
,
object
>
files
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Property_Info
.
PropertyNum
),
BMStr
}
{
nameof
(
RB_Property_Info
.
PropertyNum
),
BMStr
},
{
nameof
(
RB_Property_Info
.
QRCode
),
ImageAddress
}
};
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
@@ -1362,7 +1383,7 @@ namespace Property.Module.FixedAssets
}
#
endregion
//判断是否需要流程审批
var
tmodel
=
GetTempleteModel
(
auditenum
,
demodel
.
BranchId
??
0
);
var
tmodel
=
GetTempleteModel
(
auditenum
,
demodel
.
BranchId
??
0
,
demodel
.
RB_Group_Id
??
0
);
var
rmodel
=
auditRelevanceRepository
.
GetList
(
new
RB_Property_AuditRelevance
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
Type
=
auditenum
}).
FirstOrDefault
();
model
.
AuditStatus
=
OrderStateEnum
.
Complete
;
model
.
TempleteId
=
0
;
...
...
@@ -1698,7 +1719,7 @@ namespace Property.Module.FixedAssets
}
#
endregion
//判断是否需要流程审批
var
tmodel
=
GetTempleteModel
(
auditenum
,
demodel
.
BranchId
??
0
);
var
tmodel
=
GetTempleteModel
(
auditenum
,
demodel
.
BranchId
??
0
,
demodel
.
RB_Group_Id
??
0
);
demodel
.
AuditStatus
=
OrderStateEnum
.
Complete
;
var
rmodel
=
auditRelevanceRepository
.
GetList
(
new
RB_Property_AuditRelevance
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
Type
=
auditenum
}).
FirstOrDefault
();
...
...
@@ -2010,7 +2031,7 @@ namespace Property.Module.FixedAssets
var
demodel
=
supplies_StockInRepository
.
GetEntity
(
StockInId
);
UserInfo
userInfo
=
CacheManager
.
User
.
UserReidsCache
.
GetUserLoginInfo
((
demodel
.
CreateBy
??
0
).
ToString
());
//判断是否需要流程审批
var
tmodel
=
GetTempleteModel
(
PropertyFlowEnum
.
StockIn
,
demodel
.
RB_Branch_Id
??
0
);
var
tmodel
=
GetTempleteModel
(
PropertyFlowEnum
.
StockIn
,
demodel
.
RB_Branch_Id
??
0
,
demodel
.
RB_Group_Id
??
0
);
var
rmodel
=
auditRelevanceRepository
.
GetList
(
new
RB_Property_AuditRelevance
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
Type
=
PropertyFlowEnum
.
StockIn
}).
FirstOrDefault
();
if
(
rmodel
!=
null
&&
rmodel
.
Enabled
==
1
)
{
...
...
@@ -2419,9 +2440,9 @@ namespace Property.Module.FixedAssets
/// <param name="audite"></param>
/// <param name="BranchId"></param>
/// <returns></returns>
private
Rb_Workflow_Template_Extend
GetTempleteModel
(
PropertyFlowEnum
audite
,
int
BranchId
)
private
Rb_Workflow_Template_Extend
GetTempleteModel
(
PropertyFlowEnum
audite
,
int
BranchId
,
int
GroupId
)
{
var
tempList
=
workflow_TemplateRepository
.
GetList
(
new
Rb_Workflow_Template_Extend
()
{
TemplateSorce
=
2
,
PropertyType
=
audite
,
Status
=
FinanceDataEnum
.
Normal
});
var
tempList
=
workflow_TemplateRepository
.
GetList
(
new
Rb_Workflow_Template_Extend
()
{
RB_GroupId
=
GroupId
,
TemplateSorce
=
2
,
PropertyType
=
audite
,
Status
=
FinanceDataEnum
.
Normal
});
List
<
RB_FinanceFlowConnect_Extend
>
fcList
=
new
List
<
RB_FinanceFlowConnect_Extend
>();
//再验证公司别
if
(
tempList
.
Any
())
...
...
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