Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Biz.Finances.V2.0
Project
Overview
Details
Activity
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
陶然
Kivii.Biz.Finances.V2.0
Commits
190cc324
Commit
190cc324
authored
Jul 15, 2022
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资源优化
parent
36d9b77e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
918 additions
and
4 deletions
+918
-4
Classic.Control.DownloadField.js
Src/Content/codes/Classic.Control.DownloadField.js
+2
-2
Classic.Control.Kivii.Finances.General.Template.Selector.js
...assic.Control.Kivii.Finances.General.Template.Selector.js
+1
-1
Classic.Control.Kivii.Finances.Invoice.Form.js
...tent/codes/Classic.Control.Kivii.Finances.Invoice.Form.js
+0
-0
Classic.Control.Kivii.Finances.Policy.Customer.Selector.js
...lassic.Control.Kivii.Finances.Policy.Customer.Selector.js
+3
-0
Classic.Control.Kivii.Finances.Policy.Form.js
...ntent/codes/Classic.Control.Kivii.Finances.Policy.Form.js
+5
-0
Classic.Control.Kivii.Finances.PolicyDetail.List.js
...codes/Classic.Control.Kivii.Finances.PolicyDetail.List.js
+3
-0
Classic.Control.Kivii.Finances.PolicyRecord.List.js
...codes/Classic.Control.Kivii.Finances.PolicyRecord.List.js
+3
-0
Classic.View.Kivii.Finances.Policy.List.js
Src/Content/codes/Classic.View.Kivii.Finances.Policy.List.js
+3
-0
Classic.Control.Kivii.Finances.Invoice.Form.js
...tent/codet/Classic.Control.Kivii.Finances.Invoice.Form.js
+1
-1
Classic.Control.Kivii.Finances.Policy.Customer.Selector.js
...lassic.Control.Kivii.Finances.Policy.Customer.Selector.js
+70
-0
Classic.Control.Kivii.Finances.Policy.Form.js
...ntent/codet/Classic.Control.Kivii.Finances.Policy.Form.js
+130
-0
Classic.Control.Kivii.Finances.PolicyDetail.List.js
...codet/Classic.Control.Kivii.Finances.PolicyDetail.List.js
+162
-0
Classic.Control.Kivii.Finances.PolicyRecord.List.js
...codet/Classic.Control.Kivii.Finances.PolicyRecord.List.js
+224
-0
Classic.View.Kivii.Finances.Policy.List.js
Src/Content/codet/Classic.View.Kivii.Finances.Policy.List.js
+296
-0
Kivii.Biz.Finances.V2.0.csproj
Src/Kivii.Biz.Finances.V2.0.csproj
+15
-0
No files found.
Src/Content/codes/Classic.Control.DownloadField.js
View file @
190cc324
//Version:0.
31
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'w.2i(
\'
28.1E.1F
\'
,{1G:
\'
w.1H.1I
\'
,1J:
\'
1K
\'
,1a:{14:7,19:
\'
x-I I-1L
\'
,1M:
\'
1N
\'
,1O:7,W:7,16:
\'
1P
\'
,13:{},1c:{8:7,1Q:
\'
1R
\'
,19:
\'
x-I I-1T-1U-o
\'
,1C:17,1V:1B,1A:1k,1l:
\'
1m
\'
,1n:17,1p:
\'
1q
\'
,1d:{}}},1r:{1s:
\'
15
\'
,1t:
\'
1b
\'
},1u:{15:V(p,12){p.14=12},1b:V(p){2 v=p.1z();6(!v.8)11;6(!p.W)11;2 X=1W;2 1X=X.1Y();2 q=X.2k();2 e=p.13;2 f=q.2m(
\'
2n
\'
);2 c=7;2 d=7;2 a=7;2 J=
\'\'
;2 D=0;2 S=0;2 E=0;6(f!==7&&f!==2o){2 G=f.T().2p.10;y(i=0;i<G.2q;i++){J+=(G[i].2r().2t()=="2z"?"":"-")+G[i].1a.2u+
\'
,
\'
}c=f.2v();d=f.2w();a=f.2x();D=f.T().2y();S=f.T().2j;E=2s.2g(f.T().21/D)}2 H=w.18(v.8);v.10=[H];2 Y=p.16;2 Z=w.18(
\'
w.1c.25
\'
,v);Z.26();H.27(v.1d);H.2a(
\'
2b
\'
,V(2d,1g){Z.2f();2 A=4.9("1j");A.2h.2e="2c";2 3=4.9(
\'
29
\'
);6(d!==7){y(2 m K d){2 u=4.9(
\'
l
\'
);u.8=
\'
k
\'
;u.j=m;u.5=d[m];6(d[m]&&(L d[m]===
\'
M
\'
)&&d[m].Q===N){2 1h=d[m].O()+
\'
-
\'
+(d[m].P()+1)+
\'
-
\'
+d[m].R();u.5=1h}3.b(u)}}6(c!==7){y(2 n K c){2 t=4.9(
\'
l
\'
);t.8=
\'
k
\'
;t.j=n;t.5=c[n];6(c[n]&&(L c[n]===
\'
M
\'
)&&c[n].Q===N){2 1i=c[n].O()+
\'
-
\'
+(c[n].P()+1)+
\'
-
\'
+c[n].R();t.5=1i}3.b(t)}}6(a!==7){y(2 g K a){2 s=4.9(
\'
l
\'
);s.8=
\'
k
\'
;s.j=g;s.5=a[g];6(a[g]&&(L a[g]===
\'
M
\'
)&&a[g].Q===N){2 U=a[g].O()+
\'
-
\'
+(a[g].P()+1)+
\'
-
\'
+a[g].R();s.5=U}3.b(s)}}6(e!==7){y(2 h K e){2 r=4.9(
\'
l
\'
);r.8=
\'
k
\'
;r.j=h;r.5=e[h];6(e[h]&&(L e[h]===
\'
M
\'
)&&e[h].Q===N){2 U=e[h].O()+
\'
-
\'
+(e[h].P()+1)+
\'
-
\'
+e[h].R();r.5=U}3.b(r)}}2 q=4.9(
\'
l
\'
);q.8=
\'
k
\'
;q.j=
\'
24
\'
;q.5=1g[0].23;3.b(q);2 z=4.9(
\'
l
\'
);z.8=
\'
k
\'
;z.j=
\'
22
\'
;z.5=E===0?Y:Y+
\'
(20
\'
+S+
\'
1f,1Z
\'
+E+
\'
1f)
\'
;3.b(z);6(E!==0){2 F=4.9(
\'
l
\'
);F.8=
\'
k
\'
;F.j=
\'
2l
\'
;F.5=(S-1)*D;3.b(F);2 C=4.9(
\'
l
\'
);C.8=
\'
k
\'
;C.j=
\'
1D
\'
;C.5=D;3.b(C)}6(J!==
\'\'
){2 B=4.9(
\'
l
\'
);B.8=
\'
k
\'
;B.j=
\'
1y
\'
;B.5=J;3.b(B)}A.b(3);4.1e.b(A);3.1x=
\'
1w
\'
;3.1v=p.W;3.1o();4.1e.1S(A)})}}});'
,
62
,
160
,
'||let|_220
4151439540|document|value|if|null|type|createElement|_2204151439541|appendChild|_2204151439543|_2204151439542|_2204151439544|_2204151439545|_2204151439548|_2204151439549||name|hidden|input|_2204151439546|_2204151439547||_22041514395410|_22041514395411|_22041514395416|_22041514395415|_22041514395414|_22041514395413|_22041514395412|Ext||for|_22041514395418|_22041514395417|_22041514395423|_22041514395422|_22041514395421|_22041514395419|_22041514395420|_22041514395426|_22041514395427|fa|_22041514395428|in|typeof|object|Date|getFullYear|getMonth|constructor|getDate|_22041514395424|getStore|_22041514395425|function|dataSource|_22041514395431|_22041514395430|_22041514395429|items|return|_22041514395432|dynamicalFilter|_22041514395437|_22041514395438|fileName|true|create|iconCls|config|_22041514395433|window|filter|body|页|_22041514395434|_22041514395435|_22041514395436|iframe|350|closeAction|hide|modal|submit|layout|fit|listeners|added|click|controller|action|GET|method|OrderBy|getWindow|height|700|autoScroll|Take|Control|DownloadField|extend|button|Button|xtype|downloadField|download|text|导出数据|urlBase|数据导出|title|选择模板|removeChild|file|excel|width|this|_22041514395439|getViewModel|共|第|totalCount|__fileName|Path|View|Window|show|setFilter|App|form|on|entitySelected|none|_220415143954
40|display|close|ceil|style|define|currentPage|getView|Skip|up|grid|undefined|sorters|length|getDirection|Math|toLocaleLowerCase|property|getFilter|getGlobalFilter|getSearchFilter|getPageSize|asc'
.
split
(
'|'
),
0
,{}))
//Version:0.
02
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'w.2i(
\'
28.1E.1F
\'
,{1G:
\'
w.1H.1I
\'
,1J:
\'
1K
\'
,1a:{14:7,19:
\'
x-I I-1L
\'
,1M:
\'
1N
\'
,1O:7,W:7,16:
\'
1P
\'
,13:{},1c:{8:7,1Q:
\'
1R
\'
,19:
\'
x-I I-1T-1U-o
\'
,1C:17,1V:1B,1A:1k,1l:
\'
1m
\'
,1n:17,1p:
\'
1q
\'
,1d:{}}},1r:{1s:
\'
15
\'
,1t:
\'
1b
\'
},1u:{15:V(p,12){p.14=12},1b:V(p){2 v=p.1z();6(!v.8)11;6(!p.W)11;2 X=1W;2 1X=X.1Y();2 q=X.2k();2 e=p.13;2 f=q.2m(
\'
2n
\'
);2 c=7;2 d=7;2 a=7;2 J=
\'\'
;2 D=0;2 S=0;2 E=0;6(f!==7&&f!==2o){2 G=f.T().2p.10;y(i=0;i<G.2q;i++){J+=(G[i].2r().2t()=="2z"?"":"-")+G[i].1a.2u+
\'
,
\'
}c=f.2v();d=f.2w();a=f.2x();D=f.T().2y();S=f.T().2j;E=2s.2g(f.T().21/D)}2 H=w.18(v.8);v.10=[H];2 Y=p.16;2 Z=w.18(
\'
w.1c.25
\'
,v);Z.26();H.27(v.1d);H.2a(
\'
2b
\'
,V(2d,1g){Z.2f();2 A=4.9("1j");A.2h.2e="2c";2 3=4.9(
\'
29
\'
);6(d!==7){y(2 m K d){2 u=4.9(
\'
l
\'
);u.8=
\'
k
\'
;u.j=m;u.5=d[m];6(d[m]&&(L d[m]===
\'
M
\'
)&&d[m].Q===N){2 1h=d[m].O()+
\'
-
\'
+(d[m].P()+1)+
\'
-
\'
+d[m].R();u.5=1h}3.b(u)}}6(c!==7){y(2 n K c){2 t=4.9(
\'
l
\'
);t.8=
\'
k
\'
;t.j=n;t.5=c[n];6(c[n]&&(L c[n]===
\'
M
\'
)&&c[n].Q===N){2 1i=c[n].O()+
\'
-
\'
+(c[n].P()+1)+
\'
-
\'
+c[n].R();t.5=1i}3.b(t)}}6(a!==7){y(2 g K a){2 s=4.9(
\'
l
\'
);s.8=
\'
k
\'
;s.j=g;s.5=a[g];6(a[g]&&(L a[g]===
\'
M
\'
)&&a[g].Q===N){2 U=a[g].O()+
\'
-
\'
+(a[g].P()+1)+
\'
-
\'
+a[g].R();s.5=U}3.b(s)}}6(e!==7){y(2 h K e){2 r=4.9(
\'
l
\'
);r.8=
\'
k
\'
;r.j=h;r.5=e[h];6(e[h]&&(L e[h]===
\'
M
\'
)&&e[h].Q===N){2 U=e[h].O()+
\'
-
\'
+(e[h].P()+1)+
\'
-
\'
+e[h].R();r.5=U}3.b(r)}}2 q=4.9(
\'
l
\'
);q.8=
\'
k
\'
;q.j=
\'
24
\'
;q.5=1g[0].23;3.b(q);2 z=4.9(
\'
l
\'
);z.8=
\'
k
\'
;z.j=
\'
22
\'
;z.5=E===0?Y:Y+
\'
(20
\'
+S+
\'
1f,1Z
\'
+E+
\'
1f)
\'
;3.b(z);6(E!==0){2 F=4.9(
\'
l
\'
);F.8=
\'
k
\'
;F.j=
\'
2l
\'
;F.5=(S-1)*D;3.b(F);2 C=4.9(
\'
l
\'
);C.8=
\'
k
\'
;C.j=
\'
1D
\'
;C.5=D;3.b(C)}6(J!==
\'\'
){2 B=4.9(
\'
l
\'
);B.8=
\'
k
\'
;B.j=
\'
1y
\'
;B.5=J;3.b(B)}A.b(3);4.1e.b(A);3.1x=
\'
1w
\'
;3.1v=p.W;3.1o();4.1e.1S(A)})}}});'
,
62
,
160
,
'||let|_220
6301452500|document|value|if|null|type|createElement|_2206301452501|appendChild|_2206301452503|_2206301452502|_2206301452504|_2206301452505|_2206301452508|_2206301452509||name|hidden|input|_2206301452506|_2206301452507||_22063014525010|_22063014525011|_22063014525016|_22063014525015|_22063014525014|_22063014525013|_22063014525012|Ext||for|_22063014525018|_22063014525017|_22063014525023|_22063014525022|_22063014525021|_22063014525019|_22063014525020|_22063014525026|_22063014525027|fa|_22063014525028|in|typeof|object|Date|getFullYear|getMonth|constructor|getDate|_22063014525024|getStore|_22063014525025|function|dataSource|_22063014525031|_22063014525030|_22063014525029|items|return|_22063014525032|dynamicalFilter|_22063014525037|_22063014525038|fileName|true|create|iconCls|config|_22063014525033|window|filter|body|页|_22063014525034|_22063014525035|_22063014525036|iframe|350|closeAction|hide|modal|submit|layout|fit|listeners|added|click|controller|action|GET|method|OrderBy|getWindow|height|700|autoScroll|Take|Control|DownloadField|extend|button|Button|xtype|downloadField|download|text|导出数据|urlBase|数据导出|title|选择模板|removeChild|file|excel|width|this|_22063014525039|getViewModel|共|第|totalCount|__fileName|Path|View|Window|show|setFilter|App|form|on|entitySelected|none|_220630145250
40|display|close|ceil|style|define|currentPage|getView|Skip|up|grid|undefined|sorters|length|getDirection|Math|toLocaleLowerCase|property|getFilter|getGlobalFilter|getSearchFilter|getPageSize|asc'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.General.Template.Selector.js
View file @
190cc324
//Version:0.05
//Version:0.04
//Version:0.03
//Version:0.02
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'r.H(
\'
8.6.4.9.a.e.b
\'
,{o:
\'
n.6.m
\'
,l:
\'
4.k.j.i
\'
,3:
\'
8.6.4.9.a.e.b
\'
,f:g,p:{q:A},s:[{3:
\'
I
\'
,d:1,h:G,F:
\'
7
\'
,E:
\'
D
\'
}],C:[{3:
\'
J
\'
},{2:
\'
7
\'
,0:
\'
B
\'
,5:z},{2:
\'
y
\'
,0:
\'
x
\'
,5:c},{2:
\'
w
\'
,0:
\'
v
\'
,5:c},{2:
\'
u
\'
,0:
\'
t
\'
,d:1}]});'
,
46
,
46
,
'text||dataIndex|xtype|Kivii|width|Control|Name|App|Finances|General|Selector|80|flex|Template|selModel|false|labelWidth|DbFile|Entities|Storages|entityType|EntitySelector|System|extend|store|autoLoad|Ext|tbar|所属路径|DbFolderPath|版本|Version|文件类型|Extension|150|true|文件名称|columns|模糊搜索文件名称|emptyText|queryField|60|define|searchField|rownumberer'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Invoice.Form.js
View file @
190cc324
This diff is collapsed.
Click to expand it.
Src/Content/codes/Classic.Control.Kivii.Finances.Policy.Customer.Selector.js
0 → 100644
View file @
190cc324
//Version:0.11
//Version:0.11
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'7.1l(
\'
t.8.e.f.o.a.j
\'
,{1z:
\'
M.8.I
\'
,P:
\'
e.Q.10.a
\'
,3:
\'
t.8.e.f.o.a.j
\'
,Z:{},Y:{X:9},W:{V:
\'
U
\'
,T:9,S:R,O:
\'
y
\'
},11:[{3:
\'
N
\'
,l:1,C:D,E:
\'
m,F,H,G
\'
,J:
\'
K
\'
},{3:
\'
L
\'
,6:
\'
12
\'
,1b:
\'
x-h h-1n
\'
,1o:
\'
k
\'
}],1p:[{3:
\'
1q
\'
},{6:
\'
1r
\'
,q:
\'
m
\'
,p:1u},{6:
\'
1t
\'
,q:
\'
1v
\'
,l:1}],1w:{k:r(4){0 d=5;0 2=d.u();0 v=d.z();7.i.1x({1y:4.6,1m:
\'
1s(1k,14,15,16):
\'
,p:17,18:7.i.19,1a:9,1c:5,1j:5.w,1d:4})},w:r(s,B,4){1e(s!==
\'
1f
\'
)1g;0 b=5;0 2=b.u();0 v=b.z();0 A=B.c(/,/g,
\'
,
\'
).c(/、/g,
\'
,
\'
).c(/
\\
n/g,
\'
,
\'
);2.1h({1i:A});2.13()},}});'
,
62
,
98
,
'var||_2206301730220|xtype|_2206301730221|this|text|Ext|Control|true|Customer|_2206301730222|replace|_2206301730223|Kivii|Finances||fa|MessageBox|Selector|_2206301730229|flex|FullName||Policy|width|dataIndex|function|_2206301730227|App|getView|_2206301730226|_2206301730228|||getViewModel|_2206301730224|_2206301730225|labelWidth|60|queryField|Mobilephone|WebSite|Email|EntitySelector|emptyText|模糊搜索客户信息|button|System|searchField|extensible|entityType|Customers|false|pruneRemoved|checkboxSelect|checkboxmodel|selType|selModel|autoLoad|store|filter|Entities|tbar|指定搜索|reload|回车|顿号|空格间隔|500|buttons|OKCANCEL|multiline|iconCls|scope|animateTarget|if|ok|return|setSearchFilter|FullNameIn|fn|支持逗号|define|msg|search|handler|columns|rownumberer|客户名称|请批量传入客户信息|备注|180|Remark|controller|show|title|extend'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.Policy.Form.js
0 → 100644
View file @
190cc324
//Version:0.20
//Version:0.19
//Version:0.17
//Version:0.18
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'1V.28(
\'
E.o.l.r.q.V
\'
,{1p:
\'
1o.o.1g
\'
,1d:
\'
l.r.Q.q
\'
,9:
\'
E.o.l.r.q.V
\'
,1h:{1i:
\'
1j
\'
,1k:{7:1l,1m:0}},1n:[
\'
->
\'
,{1r:
\'
1s
\'
,1t:
\'
x-k k-1u
\'
,1v:
\'
1w
\'
,W:
\'
A
\'
,4:{1x:
\'
{!1y}
\'
}}],1z:{1A:v,1e:
\'
1f
\'
,9:
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O=N},A:K(){e f=C;e y=f.F();e z=f.I();z.1D()}}});'
,
62
,
134
,
'|nbsp||entity|bind|100|fieldLabel|small|big|xtype|responsiveCls|false|||let|_2206281643350|allowBlank|value|||fa|Kivii|||Control|40|Policy|Finances||categoryField|editable|60|internalCode||_2206281643352|_2206281643351|_2206281643353|altFormats|this||App|getViewModel|Currency||getView|30|function|format||null|ExpiredTime|datefield|Entities|DiscountRate|Type||_2206281643355|Form|handler|_2206281643354||keyField||margin|depart|items|comboSelector|所属部门|reference|dataSource|json|Restful|Query|Organization|Organizations|entityType|labelAlign|right|EntityForm|layout|type|responsivecolumn|states|1000|large|tbar|System|extend|Kvid|text|保存|iconCls|save|iconAlign|left|disabled|formIsValid|defaults|labelWidth|textfield|valueField|saveEntity|key|triggers|clear|weight|cls|times|摘|失效日期|要|备|注|Remark|controller|setValue|data|Summary|FullName|Ext|货币单位|OwnerKvid|OwnerName|政策名称|Name|EffectiveTime|政策类型|政策折扣|numberfield|折扣金额|minValue|生效日期|define|Amount'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.PolicyDetail.List.js
0 → 100644
View file @
190cc324
//Version:0.18
//Version:0.26
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'4.2A(
\'
n.2C.g
\'
);4.1l(
\'
n.m.h.g.D.G
\'
,{1m:
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.U;5.1Y=f.i;5.1Z="h.20.V.16";5.k=f.U;5.21=f.i;E.22(5)}4.23.24({25:
\'
/27/
\'
+3.X+
\'
/2k.28
\'
,29:{2a:E},2b:6(B){2 I=4.2c(B.2d);4.2e(
\'
2f!
\'
);3.2g(
\'
2h
\'
,a,I.2i[0]);3.S()},2j:6(B){}})})},P:6(b){2 a=q;2 3=a.A();3.1S()}}});'
,
62
,
173
,
'||let|_2207041012000|Ext|_2207041012001|function|true|_2207041012002|text|_2207041012003|_2207041012004|xtype|fa|iconCls|_2207041012005|Finances|Kivii|Kvid|_2207041012006|TargetName|_2207041012007|Control|App||items|this|_22070410120011|_22070410120012|left|iconAlign|_22070410120010|null||_22070410120013|bind|getView|_2207041012009|handler|PolicyDetail|_2207041012008|data|List|目标客户|_22070410120017|selectionCount|false|dock|header|create|width|_22070410120015|title|fit|reload|minWidth|FullName|Entities|getViewModel|entityType|flex|PolicyKvid|filter|_22070410120016|_22070410120014|labelWidth|dataIndex|60|Customer|layout|已选择|columns|check|条记录|displayInfo|bottom|button|点击清除|hidden|pagingtoolbar|square|250|trash|define|extend|System|EntityList|viewModel|lastOwnerKvid|selection|store|autoLoad|pageSize|50|sorters|property|direction|DESC|plugins|ptype|删除|plus|新增|模糊搜索公司名称|emptyText|queryField|disabled|searchField|overflowHandler|top|toolbar|dockedItems|clicksToEdit|cellediting|scroller|defaults|deleteEntity|sortable|close|for|length|BizId|BizKvid|BizType|Customers|TargetKvid|push|Ajax|request|url|entitySelected|Restful|json|jsonData|Items|success|decode|responseText|toast|新增成功|fireEvent|entityCreated|Results|failure|Create|menuDisabled|on|resizable|rownumberer|align|center|180|创建人|CreatorName|100|setOwner|if|setFilter|show|set|require|clearSelections|Const|Policy|Selector|window|Window|autoScroll|660|height|380|modal|controller'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.Control.Kivii.Finances.PolicyRecord.List.js
0 → 100644
View file @
190cc324
//Version:0.24
//Version:0.40
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'B.3s(
\'
t.3B.b
\'
);B.1Y(
\'
t.q.r.b.p.1w
\'
,{1X:
\'
1W.q.1V
\'
,5:
\'
t.q.r.b.p.1w
\'
,23:[
\'
t.q.1M
\'
],1L:
\'
r.b.1k.p
\'
,26:a,1c:
\'
1d
\'
,1b:
\'
2y
\'
,2t:{F:{1C:g,2s:g},},1l:{2r:
\'
{1C}
\'
},2p:{2o:a,2n:2z,2f:[{2e:
\'
U
\'
,27:
\'
1O
\'
}]},2x:[{28:
\'
29
\'
,2a:0}],2b:[{5:
\'
2c
\'
,1i:
\'
2d
\'
,2h:
\'
2i
\'
,G:[{5:
\'
12
\'
,I:
\'
16 2j
\'
,11:
\'
Y-m-d
\'
,s:E,10:
\'
1n
\'
,W:2l,15:18,1h:{1o:
\'
Q
\'
}},{5:
\'
12
\'
,I:
\'
2m
\'
,11:
\'
Y-m-d
\'
,s:30,10:
\'
17
\'
,W:2q,15:18,1h:{1o:
\'
Q
\'
}},{5:
\'
2u
\'
,1B:1,1G:2v,s:H,2w:
\'
V,13,Z
\'
,25:
\'
2k、14、X
\'
},{5:
\'
24
\'
,I:
\'
1S
\'
,s:H,19:
\'
1s
\'
},{5:
\'
1N
\'
,1K:
\'
/1I/r.b.1k.p/1J.1Q
\'
,1R:
\'
1P
\'
,1T:{1U:
\'
t.q.r.b.1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M-37";35 L 3.4.O;3.J()},Q:h(N,2Y,2U){k K=y;k 3=K.T();k S=K.2M();k e=S.1n.1r;k j=S.17.1r||P R();9(e>j){B.2I("3y!");c}9(3.4===g)3.1a({});L 3.4.1p;L 3.4.1q;9(e!==g)3.4.1p=P R(e.1e(),e.1f(),e.1g());3.4.1q=P R(j.1e(),j.1f(),j.1g()+1);3.J()}}});'
,
62
,
227
,
'|||_2207051604280|filter|xtype|text|dataIndex|width|if|true|Finances|return||_2207051604281|renderer|null|function|_2207051604282|_2207051604283|var|_2207051604284||align||PolicyRecord|Control|Kivii|labelWidth|App|_2207051604286|_2207051604285|_2207051604287||this|100|right|Ext|fa|let|90|data|items|60|fieldLabel|reload|_2207051604289|delete|0000|_22070516042810|OffsetKvid|new|_22070516042811|Date|_2207051604288|getView|OperateTime|BizId|maxWidth|客户名称||TargetName|reference|format|datefield|OperatorName|操作人|editable|业务日期|endTime|false|handler|setFilter|title|layout|fit|getFullYear|getMonth|getDate|listeners|dock|iconCls|Entities|bind|selectionCount|startTime|select|OperateTimeGreaterThanOrEqualTo|OperateTimeLessThan|value|_22070516042815|_22070516042812|_22070516042818|color|List|_22070516042813|background|Amount|_22070516042816|flex|_22070516042819|style|_22070516042814|_22070516042817|minWidth|180|Restful|Query|dataSource|entityType|DownloadField|downloadField|DESC|数据导出|xlsx|fileName|过滤作废|window|type|EntityList|System|extend|define|General|Template|Selector|选择模板|requires|checkbox|emptyText|header|direction|ptype|cellediting|clicksToEdit|dockedItems|toolbar|top|property|sorters|file|overflowHandler|scroller|开始|模糊搜索业务编号|220|结束|pageSize|autoLoad|store|160|selection|lastOwnerKvid|viewModel|searchField|250|queryField|plugins|执行记录|800|excel|00000000|700|autoScroll|原折后额|AmountPolicy|减免金额|合计金额|toast|util|Format|dateRenderer|getReferences|备注|Remark|setOwner|getViewModel|原金额|PolicyKvid|set|_22070516042821|controller|clearSelections|hasOwnProperty|_22070516042820|FFA500||已作废|FFB5C5|作废冲账|parseFloat|else|toFixed|000000000000|Kvid|AmountPlan|AmountOrigin|square|check|button|displayInfo|bottom|pagingtoolbar|TagsContains|230|Files|FolderPath|modal|hide|closeAction|350|height|Policy|已选择|require|defaults|业务编号|点击清除|center|rownumberer|开始日期不能大于结束日期|hidden|columns|Const|条记录|menuDisabled|sortable'
.
split
(
'|'
),
0
,{}))
Src/Content/codes/Classic.View.Kivii.Finances.Policy.List.js
0 → 100644
View file @
190cc324
//Version:0.30
//Version:0.41
eval
(
function
(
p
,
a
,
c
,
k
,
e
,
d
){
e
=
function
(
c
){
return
(
c
<
a
?
""
:
e
(
parseInt
(
c
/
a
)))
+
((
c
=
c
%
a
)
>
35
?
String
.
fromCharCode
(
c
+
29
):
c
.
toString
(
36
))};
if
(
!
''
.
replace
(
/^/
,
String
)){
while
(
c
--
)
d
[
e
(
c
)]
=
k
[
c
]
||
e
(
c
);
k
=
[
function
(
e
){
return
d
[
e
]}];
e
=
function
(){
return
'
\\
w+'
};
c
=
1
;};
while
(
c
--
)
if
(
k
[
c
])
p
=
p
.
replace
(
new
RegExp
(
'
\\
b'
+
e
(
c
)
+
'
\\
b'
,
'g'
),
k
[
c
]);
return
p
;}(
'6.2E(
\'
t.3a.n
\'
);6.22(
\'
t.1F.u.n.G.W
\'
,{1Z:
\'
1Y.K.1W
\'
,q:
\'
t.1F.u.n.G.W
\'
,1U:
\'
u.n.1V.G
\'
,1N:{},C:4,L:
\'
M
\'
,N:
\'
1S
\'
,1P:{A:{J:12,1R:12},},H:{I:
\'
{J}
\'
},29:{2w:4,2s:2q,2p:[{2o:
\'
2n
\'
,2l:
\'
2k
\'
}]},2j:[{2f:
\'
2b
\'
,1O:0}],2A:[{q:
\'
2c
\'
,1l:
\'
2d
\'
,2e:
\'
2g
\'
,l:[{q:
\'
2h
\'
,1r:1,2i:2m,1v:1u,2r:
\'
18
\'
,2t:
\'
2u
\'
},{3:
\'
2v
\'
,8:
\'
x-e e-2x
\'
,p:
\'
k
\'
,w:
\'
1c
\'
,},{3:
\'
2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+E},1g:h(D,1f,B,1e){s(D===
\'
19
\'
)r
\'
38
\'
;s(D===
\'
39
\'
)r
\'
2G
\'
;r D},1c:h(7){2 c=z;2 f=c.y();2 16=c.17();2 b={};b.1b=V.U.2H;b.2I=V.U.2J;b.1a=
\'
19
\'
;b.1d=0;b.15=0.5;b.1L=1G 1M();b.2K=1G 1M();b.2L="2M";b.1w=V.U.2N;b.2O=V.U.2P;2 a=6.j(
\'
t.K.u.n.G.1z
\'
,{C:v});2 g=6.j(
\'
6.S.10
\'
,{L:
\'
M
\'
,N:7.3,8:7.8,p:
\'
k
\'
,O:4,9:2Q,Z:1x,R:4,P:v,l:[a]});g.T();a.2R(b);a.1y(
\'
2S
\'
,h(7,1J){g.1H();f.1D()})},1B:h(7){2 c=z;2 f=c.y();f.2T()},1E:h(7){2 c=z;2 f=c.y();2 16=c.17();s(!f.I)r;2 a=6.j(
\'
t.K.u.n.G.1z
\'
,{C:v});2 g=6.j(
\'
6.S.10
\'
,{L:
\'
M
\'
,N:7.3,8:7.8,p:
\'
k
\'
,O:4,9:2U,Z:1x,R:4,P:v,l:[a]});g.T();a.2V(f.I.A,4);a.1y(
\'
2W
\'
,h(7,1J){g.1H();f.1D()})},1C:h(7){2 c=z;2 f=c.y();2 16=c.17();s(!f.I)r;2 a=6.j(
\'
t.K.u.n.2X.W
\'
,{C:v});2 g=6.j(
\'
6.S.10
\'
,{L:
\'
M
\'
,N:7.3,8:7.8,p:
\'
k
\'
,O:4,9:2Y,Z:2Z,R:4,P:v,l:[a]});g.T();a.1I(f.I.A)},1K:h(7,30,31,b,32,B){2 c=z;2 f=c.y();2 a=6.j(
\'
t.K.u.n.33.W
\'
,{C:v});2 g=6.j(
\'
6.S.10
\'
,{L:
\'
M
\'
,N:7.3,8:7.8,p:
\'
k
\'
,O:4,9:34,Z:35,R:4,36:4,P:4,l:[a]});g.T();a.1I(B.A)}}});'
,
62
,
220
,
'||let|text|true||Ext|_2207031330470|iconCls|width|_2207031330471|_2207031330473|_2207031330472||fa|_2207031330474|_2207031330475|function|dataIndex|create|left|items||Finances||iconAlign|xtype|return|if|App|Kivii|false|handler||getView|this|data|_2207031330476|header|_2207031330478|_2207031330477|100|Policy|bind|selection|_2207031330479|Control|layout|fit|title|autoScroll|resizable|_22070313304710|modal|window|show|CurrentMember|KiviiContext|List|renderer||height|Window|sortable|null|disabled|_22070313304712|DiscountRate|_22070313304711|getViewModel|Name|Original|Type|OwnerName|_22070313304718|Amount|_22070313304717|_22070313304716|_22070313304715|util|Format|dateRenderer|目标客户|dock|else|无折扣|align|_22070313304714|_22070313304721|flex|center|120|60|labelWidth|OperatorName|380|on|Form|selectionCount|_22070313304719|_22070313304722|reload|_22070313304720|View|new|close|setOwner|_22070313304723|_22070313304713|EffectiveTime|Date|filter|clicksToEdit|viewModel|pagingtoolbar|lastOwnerKvid|优惠政策|bottom|entityType|Entities|EntityList|button|System|extend|check|square|define|已选择|条记录|点击清除|hidden|displayInfo|trash|store|signal|cellediting|toolbar|top|overflowHandler|ptype|scroller|searchField|minWidth|plugins|DESC|direction|250|CreateTime|property|sorters|50|queryField|pageSize|emptyText|模糊搜索公司名称|新增|autoLoad|plus|详情|list|dockedItems|执行记录|删除|columns|require|menuDisabled|折上折|DepartmentName|OwnerKvid|DepartmentKvid|OperateTime|Currency|CNY|FullName|OperatorKvid|Kvid|660|newEntity|entityCreated|deleteEntity|600|readEntity|entityUpdated|PolicyRecord|1200|680|_22070313304724|_22070313304726|_22070313304725|PolicyDetail|800|480|maximizable|defaults|普通折扣|Additional|Const|rownumberer|政策名称|230|所属部门|180|政策类型|减免方式|生效日期|ExpiredTime|失效日期|折扣|search|actioncolumn|Remark|90|金额|clearSelections|controller|摘要|Summary|备注|操作人|150'
.
split
(
'|'
),
0
,{}))
Src/Content/codet/Classic.Control.Kivii.Finances.Invoice.Form.js
View file @
190cc324
...
...
@@ -145,7 +145,7 @@ Ext.define('App.Control.Kivii.Finances.Invoice.Form', {
columnWidth
:
1
/
3
,
allowBlank
:
false
,
bind
:
{
readOnly
:
'{entity.Kvid}'
,
//
readOnly: '{entity.Kvid}',
value
:
'{entity.TaxRate}'
},
internalCode
:
'TaxRate'
,
...
...
Src/Content/codet/Classic.Control.Kivii.Finances.Policy.Customer.Selector.js
0 → 100644
View file @
190cc324
Ext
.
define
(
'App.Control.Kivii.Finances.Policy.Customer.Selector'
,
{
extend
:
'System.Control.EntitySelector'
,
entityType
:
'Kivii.Customers.Entities.Customer'
,
xtype
:
'App.Control.Kivii.Finances.Policy.Customer.Selector'
,
filter
:
{},
store
:
{
autoLoad
:
true
},
selModel
:
{
selType
:
'checkboxmodel'
,
checkboxSelect
:
true
,
pruneRemoved
:
false
,
extensible
:
'y'
},
tbar
:
[{
xtype
:
'searchField'
,
flex
:
1
,
labelWidth
:
60
,
queryField
:
'FullName,Mobilephone,Email,WebSite'
,
emptyText
:
'模糊搜索客户信息'
},{
xtype
:
'button'
,
text
:
'指定搜索'
,
iconCls
:
'x-fa fa-search'
,
handler
:
'_onSearch'
// disabled:true
}],
columns
:
[{
xtype
:
'rownumberer'
},
{
text
:
'客户名称'
,
dataIndex
:
'FullName'
,
width
:
180
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
flex
:
1
}],
controller
:{
_onSearch
:
function
(
_ctrl
)
{
var
_controller
=
this
;
var
_view
=
_controller
.
getView
();
var
_vm
=
_controller
.
getViewModel
();
Ext
.
MessageBox
.
show
({
title
:
_ctrl
.
text
,
msg
:
'请批量传入客户信息(支持逗号,回车,顿号,空格间隔):'
,
width
:
500
,
// height:300,
buttons
:
Ext
.
MessageBox
.
OKCANCEL
,
multiline
:
true
,
scope
:
this
,
fn
:
this
.
_showResultText
,
animateTarget
:
_ctrl
});
},
_showResultText
:
function
(
_btn
,
_text
,
_ctrl
)
{
if
(
_btn
!==
'ok'
)
return
;
var
_me
=
this
;
var
_view
=
_me
.
getView
();
var
_vm
=
_me
.
getViewModel
();
var
_fullNames
=
_text
.
replace
(
/,/g
,
','
).
replace
(
/、/g
,
','
).
replace
(
/
\n
/g
,
','
);
_view
.
setSearchFilter
({
FullNameIn
:
_fullNames
});
_view
.
reload
();
},
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.Policy.Form.js
0 → 100644
View file @
190cc324
Ext
.
define
(
'App.Control.Kivii.Finances.Policy.Form'
,
{
extend
:
'System.Control.EntityForm'
,
entityType
:
'Kivii.Finances.Entities.Policy'
,
xtype
:
'App.Control.Kivii.Finances.Policy.Form'
,
layout
:
{
type
:
'responsivecolumn'
,
states
:
{
small
:
1000
,
large
:
0
}
},
// title: '开票信息',
// iconCls: 'x-fa fa-file',
tbar
:
[
'->'
,
{
text
:
'保存'
,
iconCls
:
'x-fa fa-save'
,
iconAlign
:
'left'
,
handler
:
'_onSaveEntity'
,
bind
:
{
disabled
:
'{!formIsValid}'
}
}],
defaults
:
{
labelWidth
:
60
,
labelAlign
:
'right'
,
xtype
:
'textfield'
,
margin
:
'0 10 10 10'
,
responsiveCls
:
'big-100 small-100'
},
items
:
[{
xtype
:
'comboSelector'
,
fieldLabel
:
'所属部门'
,
responsiveCls
:
'big-100 small-100'
,
editable
:
false
,
allowBlank
:
false
,
dataSource
:
'/Restful/Kivii.Organizations.Entities.Organization/Query.json'
,
reference
:
'depart'
,
keyField
:
'Kvid'
,
valueField
:
'FullName'
,
bind
:
{
key
:
'{entity.OwnerKvid}'
,
value
:
'{entity.OwnerName}'
}
},
{
fieldLabel
:
'政策名称'
,
bind
:
'{entity.Name}'
,
responsiveCls
:
'big-60 small-100'
,
allowBlank
:
false
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'政策类型'
,
responsiveCls
:
'big-40 small-100'
,
allowBlank
:
false
,
internalCode
:
'Type'
,
bind
:
'{entity.Type}'
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'政策折扣'
,
responsiveCls
:
'big-30 small-100'
,
internalCode
:
'DiscountRate'
,
bind
:
'{entity.DiscountRate}'
},
{
xtype
:
'numberfield'
,
fieldLabel
:
'折扣金额'
,
minValue
:
0
,
responsiveCls
:
'big-30 small-100'
,
bind
:
'{entity.Amount}'
},
{
xtype
:
'categoryField'
,
fieldLabel
:
'货币单位'
,
responsiveCls
:
'big-40 small-100'
,
allowBlank
:
false
,
internalCode
:
'Currency'
,
bind
:
'{entity.Currency}'
},{
xtype
:
'datefield'
,
format
:
'Y-m-d'
,
altFormats
:
'D, d M Y H:i:s T|c|Y-m-d|Y-m-d H:i|Y/n/j'
,
fieldLabel
:
'生效日期'
,
editable
:
false
,
responsiveCls
:
'big-40 small-100'
,
allowBlank
:
false
,
bind
:
{
value
:
'{entity.EffectiveTime}'
}
},
{
xtype
:
'datefield'
,
format
:
'Y-m-d'
,
altFormats
:
'D, d M Y H:i:s T|c|Y-m-d|Y-m-d H:i|Y/n/j'
,
fieldLabel
:
'失效日期'
,
editable
:
false
,
responsiveCls
:
'big-60 small-100'
,
triggers
:
{
clear
:
{
weight
:
2
,
cls
:
'x-fa fa-times'
,
handler
:
'_cleanExpiredTime'
}
},
bind
:
{
value
:
'{entity.ExpiredTime}'
}
},
{
fieldLabel
:
'摘 要'
,
bind
:
{
value
:
'{entity.Summary}'
}
},
{
fieldLabel
:
'备 注'
,
bind
:
{
value
:
'{entity.Remark}'
}
}],
controller
:
{
_cleanExpiredTime
:
function
(
_ctrl
)
{
_ctrl
.
setValue
(
null
);
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
_vm
.
data
.
entity
.
ExpiredTime
=
null
;
},
_onSaveEntity
:
function
()
{
let
_controller
=
this
;
let
_vm
=
_controller
.
getViewModel
();
let
_view
=
_controller
.
getView
();
_view
.
saveEntity
();
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.PolicyDetail.List.js
0 → 100644
View file @
190cc324
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.PolicyDetail.List'
,
{
extend
:
'System.Control.EntityList'
,
xtype
:
'App.Control.Kivii.Finances.PolicyDetail.List'
,
entityType
:
'Kivii.Finances.Entities.PolicyDetail'
,
// filter: {},
// disabled:true,
header
:
true
,
layout
:
'fit'
,
title
:
'目标客户'
,
// iconCls: 'x-fa fa-cc',
viewModel
:
{
data
:
{
_selection
:
null
,
lastOwnerKvid
:
null
},
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
50
,
sorters
:
[{
property
:
'TargetName'
,
direction
:
'DESC'
}]
},
plugins
:
[{
ptype
:
'cellediting'
,
clicksToEdit
:
0
}],
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'scroller'
,
items
:
[{
xtype
:
'searchField'
,
flex
:
1
,
minWidth
:
250
,
labelWidth
:
60
,
queryField
:
'TargetName'
,
emptyText
:
'模糊搜索公司名称'
},
{
text
:
'新增'
,
iconCls
:
'x-fa fa-plus'
,
iconAlign
:
'left'
,
handler
:
'_onAddPolicyDetail'
,
},
{
text
:
'删除'
,
iconCls
:
'x-fa fa-trash-o'
,
iconAlign
:
'left'
,
handler
:
'_onDeleteEntity'
,
bind
:
{
disabled
:
'{!_selection}'
}
}]
},
{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
},
{
text
:
'目标客户'
,
dataIndex
:
'TargetName'
,
minWidth
:
180
,
flex
:
1
},{
text
:
'创建人'
,
dataIndex
:
'CreatorName'
,
width
:
100
}]
},
setOwner
:
function
(
_owner
,
_ctrl
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
_view
.
filter
.
PolicyKvid
=
_owner
.
Kvid
;
_vm
.
set
(
'_owner'
,
_owner
);
_view
.
reload
();
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_onAddPolicyDetail
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_owner
=
_vm
.
data
.
_owner
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Policy.Customer.Selector'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
660
,
height
:
380
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
on
(
'entitySelected'
,
function
(
_ctrl
,
_entities
)
{
_win
.
close
();
let
_items
=
[];
for
(
let
_i
=
0
;
_i
<
_entities
.
length
;
_i
++
)
{
let
_selected
=
_entities
[
_i
];
let
_item
=
{};
_item
.
PolicyKvid
=
_owner
.
Kvid
;
_item
.
BizId
=
_selected
.
FullName
;
_item
.
BizKvid
=
_selected
.
Kvid
;
_item
.
BizType
=
"Kivii.Customers.Entities.Customer"
;
_item
.
TargetName
=
_selected
.
FullName
;
_item
.
TargetKvid
=
_selected
.
Kvid
;
_items
.
push
(
_item
);
}
Ext
.
Ajax
.
request
({
url
:
'/Restful/'
+
_view
.
entityType
+
'/Create.json'
,
jsonData
:
{
Items
:
_items
},
success
:
function
(
_response
)
{
let
_rtns
=
Ext
.
decode
(
_response
.
responseText
);
Ext
.
toast
(
'新增成功!'
);
_view
.
fireEvent
(
'entityCreated'
,
_controller
,
_rtns
.
Results
[
0
]);
_view
.
reload
();
},
failure
:
function
(
_response
)
{
}
});
});
},
_onDeleteEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
deleteEntity
();
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.Control.Kivii.Finances.PolicyRecord.List.js
0 → 100644
View file @
190cc324
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.Control.Kivii.Finances.PolicyRecord.List'
,
{
extend
:
'System.Control.EntityList'
,
xtype
:
'App.Control.Kivii.Finances.PolicyRecord.List'
,
requires
:
[
'App.Control.DownloadField'
],
entityType
:
'Kivii.Finances.Entities.PolicyRecord'
,
// filter: {},
// disabled:true,
header
:
true
,
layout
:
'fit'
,
title
:
'执行记录'
,
// iconCls: 'x-fa fa-cc',
viewModel
:
{
data
:
{
_selection
:
null
,
lastOwnerKvid
:
null
},
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
800
,
sorters
:
[{
property
:
'OperateTime'
,
direction
:
'DESC'
}]
},
plugins
:
[{
ptype
:
'cellediting'
,
clicksToEdit
:
0
}],
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'scroller'
,
items
:
[{
xtype
:
'datefield'
,
fieldLabel
:
'业务日期 开始'
,
format
:
'Y-m-d'
,
labelWidth
:
90
,
reference
:
'startTime'
,
maxWidth
:
220
,
editable
:
false
,
// readOnly:true,
// minValue: '2019-10-01',
// value: new Date(new Date().getFullYear(), new Date().getMonth(), 1),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'datefield'
,
fieldLabel
:
'结束'
,
format
:
'Y-m-d'
,
labelWidth
:
30
,
reference
:
'endTime'
,
maxWidth
:
160
,
editable
:
false
,
// minValue: '2019-10-02',
// value: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate()),
listeners
:
{
select
:
'_onSelectMonth'
}
},
{
xtype
:
'searchField'
,
flex
:
1
,
minWidth
:
250
,
labelWidth
:
60
,
queryField
:
'BizId,OperatorName,TargetName'
,
emptyText
:
'模糊搜索业务编号、操作人、客户名称'
},
{
xtype
:
'checkbox'
,
fieldLabel
:
'过滤作废'
,
labelWidth
:
60
,
handler
:
'_onCheck'
},{
xtype
:
'downloadField'
,
dataSource
:
'/Restful/Kivii.Finances.Entities.PolicyRecord/Query.xlsx'
,
//数据源
fileName
:
'数据导出'
,
window
:
{
type
:
'App.Control.Kivii.Finances.General.Template.Selector'
,
title
:
'选择模板'
,
iconCls
:
'x-fa fa-file-excel-o'
,
autoScroll
:
true
,
width
:
700
,
height
:
350
,
closeAction
:
'hide'
,
modal
:
true
,
layout
:
'fit'
,
filter
:
{
FolderPath
:
'/Finances/Policy/Files'
,
TagsContains
:
'PolicyRecord'
}
}
}
]
},
{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
},
{
text
:
'业务编号'
,
dataIndex
:
'BizId'
,
renderer
:
'_renderBizId'
,
width
:
230
},
{
text
:
'客户名称'
,
dataIndex
:
'TargetName'
,
width
:
180
},
{
dataIndex
:
'AmountPlan'
,
text
:
'原金额'
,
align
:
'right'
,
renderer
:
'_renderAmount'
,
width
:
90
},
{
dataIndex
:
'AmountOrigin'
,
text
:
'原折后额'
,
align
:
'right'
,
renderer
:
'_renderAmount'
,
width
:
100
},
{
dataIndex
:
'AmountPolicy'
,
text
:
'减免金额'
,
align
:
'right'
,
renderer
:
'_renderAmount'
,
width
:
100
},
{
dataIndex
:
'Amount'
,
text
:
'合计金额'
,
align
:
'right'
,
renderer
:
'_renderAmount'
,
width
:
100
},
{
text
:
'业务日期'
,
dataIndex
:
'OperateTime'
,
width
:
100
,
renderer
:
Ext
.
util
.
Format
.
dateRenderer
(
'Y-m-d'
)
},
{
text
:
'操作人'
,
dataIndex
:
'OperatorName'
,
width
:
90
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
minWidth
:
180
,
flex
:
1
}]
},
setOwner
:
function
(
_owner
,
_ctrl
)
{
let
_view
=
this
;
let
_vm
=
_view
.
getViewModel
();
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
_view
.
filter
.
PolicyKvid
=
_owner
.
Kvid
;
_vm
.
set
(
'_owner'
,
_owner
);
_view
.
reload
();
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_renderBizId
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_record
.
data
.
hasOwnProperty
(
"OffsetKvid"
))
{
if
(
_record
.
data
.
Amount
>=
0
){
_meta
.
style
=
'background-color:#FFA500'
;
return
_value
+
"(已作废)"
;
}
_meta
.
style
=
'background-color:#FFB5C5'
;
return
_value
+
"(作废冲账)"
;
}
return
_value
;
},
_renderAmount
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
return
"¥ "
+
parseFloat
(
_value
).
toFixed
(
2
);
},
_onCheck
:
function
(
_ctrl
,
_checked
){
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
if
(
_view
.
filter
===
null
)
return
;
if
(
_checked
)
_view
.
filter
.
OffsetKvid
=
"00000000-0000-0000-0000-000000000000"
;
else
delete
_view
.
filter
.
OffsetKvid
;
_view
.
reload
();
},
_onSelectMonth
:
function
(
_ctrl
,
_time
,
_eOpts
)
{
var
_me
=
this
;
var
_view
=
_me
.
getView
();
var
_refs
=
_me
.
getReferences
();
var
_startTime
=
_refs
.
startTime
.
value
;
var
_endTime
=
_refs
.
endTime
.
value
||
new
Date
();
if
(
_startTime
>
_endTime
)
{
Ext
.
toast
(
"开始日期不能大于结束日期!"
);
return
;
}
if
(
_view
.
filter
===
null
)
_view
.
setFilter
({});
delete
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
;
delete
_view
.
filter
.
OperateTimeLessThan
;
if
(
_startTime
!==
null
)
_view
.
filter
.
OperateTimeGreaterThanOrEqualTo
=
new
Date
(
_startTime
.
getFullYear
(),
_startTime
.
getMonth
(),
_startTime
.
getDate
());
_view
.
filter
.
OperateTimeLessThan
=
new
Date
(
_endTime
.
getFullYear
(),
_endTime
.
getMonth
(),
_endTime
.
getDate
()
+
1
);
_view
.
reload
();
}
}
});
\ No newline at end of file
Src/Content/codet/Classic.View.Kivii.Finances.Policy.List.js
0 → 100644
View file @
190cc324
Ext
.
require
(
'App.Const.Finances'
);
Ext
.
define
(
'App.View.Kivii.Finances.Policy.List'
,
{
extend
:
'System.Control.EntityList'
,
xtype
:
'App.View.Kivii.Finances.Policy.List'
,
entityType
:
'Kivii.Finances.Entities.Policy'
,
filter
:
{},
// disabled:true,
header
:
true
,
layout
:
'fit'
,
title
:
'优惠政策'
,
// iconCls: 'x-fa fa-cc',
viewModel
:
{
data
:
{
_selection
:
null
,
lastOwnerKvid
:
null
},
},
bind
:
{
selection
:
'{_selection}'
},
store
:
{
autoLoad
:
true
,
pageSize
:
50
,
sorters
:
[{
property
:
'CreateTime'
,
direction
:
'DESC'
}]
},
plugins
:
[{
ptype
:
'cellediting'
,
clicksToEdit
:
0
}],
dockedItems
:
[{
xtype
:
'toolbar'
,
dock
:
'top'
,
overflowHandler
:
'scroller'
,
items
:
[{
xtype
:
'searchField'
,
flex
:
1
,
minWidth
:
250
,
labelWidth
:
60
,
queryField
:
'Name'
,
emptyText
:
'模糊搜索公司名称'
},
{
text
:
'新增'
,
iconCls
:
'x-fa fa-plus'
,
iconAlign
:
'left'
,
handler
:
'_onAddPolicy'
,
},
{
text
:
'详情'
,
iconCls
:
'x-fa fa-list'
,
iconAlign
:
'left'
,
handler
:
'_onReadPolicy'
,
bind
:
{
disabled
:
'{!_selection}'
}
},{
text
:
'执行记录'
,
iconCls
:
'x-fa fa-signal'
,
iconAlign
:
'left'
,
handler
:
'_onReadPolicyRecord'
,
bind
:
{
disabled
:
'{!_selection}'
}
},
{
text
:
'删除'
,
iconCls
:
'x-fa fa-trash-o'
,
iconAlign
:
'left'
,
handler
:
'_onDeleteEntity'
,
bind
:
{
disabled
:
'{!_selection}'
}
}]
},
{
xtype
:
'pagingtoolbar'
,
dock
:
'bottom'
,
displayInfo
:
true
,
items
:
[{
xtype
:
'button'
,
labelWidth
:
60
,
iconCls
:
'x-fa fa-check-square-o'
,
bind
:
{
text
:
'已选择{selectionCount}条记录,点击清除'
,
hidden
:
'{selectionCount==0}'
},
handler
:
'_onClearSelections'
}]
}],
columns
:
{
defaults
:
{
menuDisabled
:
true
,
sortable
:
true
},
items
:
[{
xtype
:
'rownumberer'
,
align
:
'center'
,
},
{
text
:
'政策名称'
,
dataIndex
:
'Name'
,
width
:
230
},
{
text
:
'所属部门'
,
dataIndex
:
'OwnerName'
,
width
:
180
},
{
text
:
'政策类型'
,
dataIndex
:
'Type'
,
width
:
100
,
renderer
:
'_renderType'
// }, {
// dataIndex: 'Amount',
// text: '减免金额',
// align: 'right',
// width: 120
},
{
text
:
'减免方式'
,
dataIndex
:
'DiscountRate'
,
width
:
120
,
renderer
:
'_renderRate'
},
{
dataIndex
:
'EffectiveTime'
,
text
:
'生效日期'
,
sortable
:
true
,
width
:
100
,
renderer
:
Ext
.
util
.
Format
.
dateRenderer
(
'Y-m-d'
)
},
{
dataIndex
:
'ExpiredTime'
,
text
:
'失效日期'
,
sortable
:
true
,
width
:
100
,
renderer
:
Ext
.
util
.
Format
.
dateRenderer
(
'Y-m-d'
)
},
{
xtype
:
'actioncolumn'
,
text
:
'目标客户'
,
align
:
'center'
,
items
:
[{
text
:
'目标客户'
,
iconCls
:
'x-fa fa-search'
,
handler
:
'_onReadDetail'
}],
width
:
100
},
{
dataIndex
:
'OperatorName'
,
text
:
'操作人'
,
width
:
90
},
{
text
:
'摘要'
,
dataIndex
:
'Summary'
,
width
:
120
},
{
text
:
'备注'
,
dataIndex
:
'Remark'
,
width
:
150
,
flex
:
1
}]
},
controller
:
{
_onClearSelections
:
function
()
{
this
.
getView
().
clearSelections
();
},
_renderRate
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
let
_amount
=
_record
.
data
.
Amount
;
if
(
_amount
>
0
){
return
"金额: "
+
_amount
;
}
let
_urgent
=
null
;
let
_urgentRate
=
_record
.
data
.
DiscountRate
||
1
;
if
(
_urgentRate
===
1
)
_urgent
=
'无折扣'
;
else
if
(
_amount
>
0
)
_urgent
=
'无折扣'
;
else
_urgent
=
_urgentRate
*
100
+
'%'
;
return
"折扣: "
+
_urgent
;
},
_renderType
:
function
(
_value
,
_meta
,
_record
,
_rowIndex
)
{
if
(
_value
===
'Original'
)
return
'普通折扣'
;
if
(
_value
===
'Additional'
)
return
'折上折'
;
return
_value
;
},
_onAddPolicy
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
let
_item
=
{};
_item
.
OwnerName
=
KiviiContext
.
CurrentMember
.
DepartmentName
;
_item
.
OwnerKvid
=
KiviiContext
.
CurrentMember
.
DepartmentKvid
;
_item
.
Type
=
'Original'
;
_item
.
Amount
=
0
;
_item
.
DiscountRate
=
0.5
;
_item
.
EffectiveTime
=
new
Date
();
_item
.
OperateTime
=
new
Date
();
_item
.
Currency
=
"CNY"
;
_item
.
OperatorName
=
KiviiContext
.
CurrentMember
.
FullName
;
_item
.
OperatorKvid
=
KiviiContext
.
CurrentMember
.
Kvid
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Policy.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
660
,
height
:
380
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
newEntity
(
_item
);
_form
.
on
(
'entityCreated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onDeleteEntity
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
_view
.
deleteEntity
();
},
_onReadPolicy
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
!
_view
.
selection
)
return
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.Policy.Form'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
600
,
height
:
380
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
readEntity
(
_view
.
selection
.
data
,
true
);
_form
.
on
(
'entityUpdated'
,
function
(
_ctrl
,
_entity
)
{
_win
.
close
();
_view
.
reload
();
});
},
_onReadPolicyRecord
:
function
(
_ctrl
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_vm
=
_controller
.
getViewModel
();
if
(
!
_view
.
selection
)
return
;
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.PolicyRecord.List'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
autoScroll
:
true
,
width
:
1200
,
height
:
680
,
modal
:
true
,
resizable
:
false
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_view
.
selection
.
data
);
},
_onReadDetail
:
function
(
_ctrl
,
_recIndex
,
_cellIndex
,
_item
,
_e
,
_record
)
{
let
_controller
=
this
;
let
_view
=
_controller
.
getView
();
let
_form
=
Ext
.
create
(
'App.Control.Kivii.Finances.PolicyDetail.List'
,
{
header
:
false
});
let
_win
=
Ext
.
create
(
'Ext.window.Window'
,
{
layout
:
'fit'
,
title
:
_ctrl
.
text
,
iconCls
:
_ctrl
.
iconCls
,
iconAlign
:
'left'
,
// header:false,
autoScroll
:
true
,
width
:
800
,
height
:
480
,
modal
:
true
,
maximizable
:
true
,
resizable
:
true
,
items
:
[
_form
]
});
_win
.
show
();
_form
.
setOwner
(
_record
.
data
);
}
}
});
\ No newline at end of file
Src/Kivii.Biz.Finances.V2.0.csproj
View file @
190cc324
...
...
@@ -248,5 +248,19 @@
<ItemGroup>
<None
Include=
"packages.config"
/>
</ItemGroup>
<ItemGroup>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Account.Pay.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Policy.Customer.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.Policy.Form.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.PolicyDetail.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.Control.Kivii.Finances.PolicyRecord.List.js"
/>
<EmbeddedResource
Include=
"Content\codes\Classic.View.Kivii.Finances.Policy.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Account.Pay.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Policy.Customer.Selector.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.Policy.Form.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.PolicyDetail.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.Control.Kivii.Finances.PolicyRecord.List.js"
/>
<EmbeddedResource
Include=
"Content\codet\Classic.View.Kivii.Finances.Policy.List.js"
/>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
\ No newline at end of file
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