111
This commit is contained in:
parent
ea48421f76
commit
1b8ba2485d
Binary file not shown.
Binary file not shown.
|
|
@ -71,7 +71,6 @@ object frmCollectInput: TfrmCollectInput
|
||||||
ParentCtl3D = False
|
ParentCtl3D = False
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
ExplicitTop = 44
|
|
||||||
object Label2: TLabel
|
object Label2: TLabel
|
||||||
Left = 245
|
Left = 245
|
||||||
Top = 20
|
Top = 20
|
||||||
|
|
@ -296,7 +295,7 @@ object frmCollectInput: TfrmCollectInput
|
||||||
OnBtnDnClick = PayMentBtnDnClick
|
OnBtnDnClick = PayMentBtnDnClick
|
||||||
end
|
end
|
||||||
object OppCoName: TBtnEditC
|
object OppCoName: TBtnEditC
|
||||||
Left = 301
|
Left = 303
|
||||||
Top = 17
|
Top = 17
|
||||||
Width = 140
|
Width = 140
|
||||||
Height = 20
|
Height = 20
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,8 @@ begin
|
||||||
Close;
|
Close;
|
||||||
SQL.Clear;
|
SQL.Clear;
|
||||||
Filtered := False;
|
Filtered := False;
|
||||||
sql.Add(' select A.*,Saleser=(select Saleser from BS_Company X where X.CoAbbrName=A.OppCoName)');
|
sql.Add(' select Amount=(Case when ISNULL(A.RegType,'''')=''ÊÕ¿î'' then -1*Amount else Amount end)');
|
||||||
|
SQL.Add(',A.*,Saleser=(select Saleser from BS_Company X where X.CoAbbrName=A.OppCoName)');
|
||||||
sql.Add(' from Finance_Flow A where A.FFType=''澗운되션'' ');
|
sql.Add(' from Finance_Flow A where A.FFType=''澗운되션'' ');
|
||||||
case cxTabControl1.TabIndex of
|
case cxTabControl1.TabIndex of
|
||||||
0:
|
0:
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ inherited frmCompanySel: TfrmCompanySel
|
||||||
Height = 476
|
Height = 476
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ExplicitTop = 88
|
|
||||||
object TV1: TcxGridDBTableView
|
object TV1: TcxGridDBTableView
|
||||||
OnDblClick = TV1DblClick
|
OnDblClick = TV1DblClick
|
||||||
Navigator.Buttons.CustomButtons = <>
|
Navigator.Buttons.CustomButtons = <>
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,6 @@ object frmPayInput: TfrmPayInput
|
||||||
ParentCtl3D = False
|
ParentCtl3D = False
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
ExplicitTop = 44
|
|
||||||
object Label2: TLabel
|
object Label2: TLabel
|
||||||
Left = 32
|
Left = 32
|
||||||
Top = 102
|
Top = 102
|
||||||
|
|
@ -108,7 +107,7 @@ object frmPayInput: TfrmPayInput
|
||||||
end
|
end
|
||||||
object Label8: TLabel
|
object Label8: TLabel
|
||||||
Left = 486
|
Left = 486
|
||||||
Top = 144
|
Top = 143
|
||||||
Width = 52
|
Width = 52
|
||||||
Height = 15
|
Height = 15
|
||||||
Caption = #20184#27454#26041#24335
|
Caption = #20184#27454#26041#24335
|
||||||
|
|
@ -262,6 +261,19 @@ object frmPayInput: TfrmPayInput
|
||||||
Font.Style = [fsBold]
|
Font.Style = [fsBold]
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
end
|
end
|
||||||
|
object Label6: TLabel
|
||||||
|
Left = 486
|
||||||
|
Top = 20
|
||||||
|
Width = 52
|
||||||
|
Height = 15
|
||||||
|
Caption = #30331#35760#31867#22411
|
||||||
|
Font.Charset = ANSI_CHARSET
|
||||||
|
Font.Color = clWindowText
|
||||||
|
Font.Height = -12
|
||||||
|
Font.Name = 'Times New Roman'
|
||||||
|
Font.Style = [fsBold]
|
||||||
|
ParentFont = False
|
||||||
|
end
|
||||||
object Note: TMemo
|
object Note: TMemo
|
||||||
Left = 92
|
Left = 92
|
||||||
Top = 237
|
Top = 237
|
||||||
|
|
@ -306,8 +318,8 @@ object frmPayInput: TfrmPayInput
|
||||||
OnBtnDnClick = PayMentBtnDnClick
|
OnBtnDnClick = PayMentBtnDnClick
|
||||||
end
|
end
|
||||||
object OppCoName: TBtnEditC
|
object OppCoName: TBtnEditC
|
||||||
Left = 92
|
Left = 90
|
||||||
Top = 100
|
Top = 99
|
||||||
Width = 140
|
Width = 140
|
||||||
Height = 20
|
Height = 20
|
||||||
Font.Charset = GB2312_CHARSET
|
Font.Charset = GB2312_CHARSET
|
||||||
|
|
@ -322,7 +334,7 @@ object frmPayInput: TfrmPayInput
|
||||||
OnBtnDnClick = PayMentBtnDnClick
|
OnBtnDnClick = PayMentBtnDnClick
|
||||||
end
|
end
|
||||||
object OurCoName: TBtnEditC
|
object OurCoName: TBtnEditC
|
||||||
Left = 92
|
Left = 90
|
||||||
Top = 18
|
Top = 18
|
||||||
Width = 140
|
Width = 140
|
||||||
Height = 20
|
Height = 20
|
||||||
|
|
@ -473,6 +485,18 @@ object frmPayInput: TfrmPayInput
|
||||||
Time = 0.670856296288548000
|
Time = 0.670856296288548000
|
||||||
TabOrder = 14
|
TabOrder = 14
|
||||||
end
|
end
|
||||||
|
object RegType: TComboBox
|
||||||
|
Left = 544
|
||||||
|
Top = 17
|
||||||
|
Width = 145
|
||||||
|
Height = 20
|
||||||
|
ItemIndex = 0
|
||||||
|
TabOrder = 15
|
||||||
|
Text = #20184#27454
|
||||||
|
Items.Strings = (
|
||||||
|
#20184#27454
|
||||||
|
#25910#27454)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object ADOQueryTemp: TADOQuery
|
object ADOQueryTemp: TADOQuery
|
||||||
Connection = DataLink_Financial.ADOLink
|
Connection = DataLink_Financial.ADOLink
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@ type
|
||||||
Label4: TLabel;
|
Label4: TLabel;
|
||||||
PKDate: TDateTimePicker;
|
PKDate: TDateTimePicker;
|
||||||
ToolButton1: TToolButton;
|
ToolButton1: TToolButton;
|
||||||
|
RegType: TComboBox;
|
||||||
|
Label6: TLabel;
|
||||||
procedure FormDestroy(Sender: TObject);
|
procedure FormDestroy(Sender: TObject);
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure TBCloseClick(Sender: TObject);
|
procedure TBCloseClick(Sender: TObject);
|
||||||
|
|
@ -77,7 +79,7 @@ type
|
||||||
function SaveData(): Boolean;
|
function SaveData(): Boolean;
|
||||||
public
|
public
|
||||||
{ Public declarations }
|
{ Public declarations }
|
||||||
FFFID,PState: string;
|
FFFID, PState: string;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|
@ -87,7 +89,7 @@ implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
U_DataLink, U_RTFun, U_ZDYHelp, U_CompanySel, U_BankSel, U_ZDYHelpFY,
|
U_DataLink, U_RTFun, U_ZDYHelp, U_CompanySel, U_BankSel, U_ZDYHelpFY,
|
||||||
U_TradePlanSel,U_FinFileUp;
|
U_TradePlanSel, U_FinFileUp;
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
|
|
@ -119,9 +121,9 @@ begin
|
||||||
PKDate.DateTime := SQDate.DateTime
|
PKDate.DateTime := SQDate.DateTime
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if PState='릿齡' then
|
if PState = '릿齡' then
|
||||||
begin
|
begin
|
||||||
FFFID:='';
|
FFFID := '';
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
@ -155,7 +157,14 @@ begin
|
||||||
frmCompanySel := TfrmCompanySel.Create(Application);
|
frmCompanySel := TfrmCompanySel.Create(Application);
|
||||||
with frmCompanySel do
|
with frmCompanySel do
|
||||||
begin
|
begin
|
||||||
FCoType := '묩壇<EBACA9>';
|
if RegType.text = '마운' then
|
||||||
|
begin
|
||||||
|
FCoType := '묩壇<EBACA9>';
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
FCoType := '와빵';
|
||||||
|
end;
|
||||||
if ShowModal = 1 then
|
if ShowModal = 1 then
|
||||||
begin
|
begin
|
||||||
OppCoName.Text := Trim(CDS_1.fieldbyname('CoAbbrName').AsString);
|
OppCoName.Text := Trim(CDS_1.fieldbyname('CoAbbrName').AsString);
|
||||||
|
|
@ -302,7 +311,14 @@ begin
|
||||||
frmZDYHelpFY := TfrmZDYHelpFY.Create(Application);
|
frmZDYHelpFY := TfrmZDYHelpFY.Create(Application);
|
||||||
with frmZDYHelpFY do
|
with frmZDYHelpFY do
|
||||||
begin
|
begin
|
||||||
MainType := '마운잚謹';
|
if RegType.text = '마운' then
|
||||||
|
begin
|
||||||
|
MainType := '마운잚謹';
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
MainType := '澗운잚謹';
|
||||||
|
end;
|
||||||
flag := Copy(fsj, 1, FWZ - 1);
|
flag := Copy(fsj, 1, FWZ - 1);
|
||||||
flagname := Copy(fsj, FWZ + 1, Length(fsj) - FWZ);
|
flagname := Copy(fsj, FWZ + 1, Length(fsj) - FWZ);
|
||||||
if ShowModal = 1 then
|
if ShowModal = 1 then
|
||||||
|
|
@ -380,8 +396,16 @@ begin
|
||||||
Append;
|
Append;
|
||||||
FieldByName('FillId').Value := Trim(DCode);
|
FieldByName('FillId').Value := Trim(DCode);
|
||||||
FieldByName('Filler').Value := Trim(DName);
|
FieldByName('Filler').Value := Trim(DName);
|
||||||
FieldByName('FFFlag').Value := '壇마마';
|
if RegType.text = '마운' then
|
||||||
FieldByName('FFType').Value := '마운되션';
|
begin
|
||||||
|
FieldByName('FFFlag').Value := '壇마마';
|
||||||
|
FieldByName('FFType').Value := '마운되션';
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
FieldByName('FFFlag').Value := '壇澗澗';
|
||||||
|
FieldByName('FFType').Value := '澗운되션';
|
||||||
|
end;
|
||||||
FieldByName('status').Value := '0';
|
FieldByName('status').Value := '0';
|
||||||
FieldByName('FFQtyFlag').Value := -1;
|
FieldByName('FFQtyFlag').Value := -1;
|
||||||
end
|
end
|
||||||
|
|
@ -415,7 +439,7 @@ end;
|
||||||
|
|
||||||
procedure TfrmPayInput.ToolButton1Click(Sender: TObject);
|
procedure TfrmPayInput.ToolButton1Click(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
try
|
try
|
||||||
frmFinFileUp := TfrmFinFileUp.Create(Application);
|
frmFinFileUp := TfrmFinFileUp.Create(Application);
|
||||||
with frmFinFileUp do
|
with frmFinFileUp do
|
||||||
begin
|
begin
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ inherited frmPayList: TfrmPayList
|
||||||
ClientWidth = 1284
|
ClientWidth = 1284
|
||||||
FormStyle = fsMDIChild
|
FormStyle = fsMDIChild
|
||||||
Visible = True
|
Visible = True
|
||||||
|
ExplicitLeft = -94
|
||||||
|
ExplicitTop = -42
|
||||||
ExplicitWidth = 1300
|
ExplicitWidth = 1300
|
||||||
ExplicitHeight = 629
|
ExplicitHeight = 629
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
|
|
@ -304,6 +306,7 @@ inherited frmPayList: TfrmPayList
|
||||||
Navigator.Buttons.Delete.Enabled = False
|
Navigator.Buttons.Delete.Enabled = False
|
||||||
Navigator.Buttons.Delete.Visible = False
|
Navigator.Buttons.Delete.Visible = False
|
||||||
ScrollbarAnnotations.CustomAnnotations = <>
|
ScrollbarAnnotations.CustomAnnotations = <>
|
||||||
|
OnCustomDrawCell = Tv1CustomDrawCell
|
||||||
DataController.DataSource = DS_1
|
DataController.DataSource = DS_1
|
||||||
DataController.Filter.AutoDataSetFilter = True
|
DataController.Filter.AutoDataSetFilter = True
|
||||||
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
|
DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
|
||||||
|
|
@ -504,6 +507,11 @@ inherited frmPayList: TfrmPayList
|
||||||
DataBinding.IsNullValueType = True
|
DataBinding.IsNullValueType = True
|
||||||
HeaderAlignmentHorz = taCenter
|
HeaderAlignmentHorz = taCenter
|
||||||
end
|
end
|
||||||
|
object Tv1Column12: TcxGridDBColumn
|
||||||
|
DataBinding.FieldName = 'RegType'
|
||||||
|
DataBinding.IsNullValueType = True
|
||||||
|
Visible = False
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object cxGridLevel1: TcxGridLevel
|
object cxGridLevel1: TcxGridLevel
|
||||||
GridView = Tv1
|
GridView = Tv1
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,7 @@ type
|
||||||
Button4: TButton;
|
Button4: TButton;
|
||||||
ToolButton6: TToolButton;
|
ToolButton6: TToolButton;
|
||||||
ToolButton7: TToolButton;
|
ToolButton7: TToolButton;
|
||||||
|
Tv1Column12: TcxGridDBColumn;
|
||||||
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
procedure FormClose(Sender: TObject; var Action: TCloseAction);
|
||||||
procedure TBCloseClick(Sender: TObject);
|
procedure TBCloseClick(Sender: TObject);
|
||||||
procedure btnDelClick(Sender: TObject);
|
procedure btnDelClick(Sender: TObject);
|
||||||
|
|
@ -125,6 +126,9 @@ type
|
||||||
procedure Button4Click(Sender: TObject);
|
procedure Button4Click(Sender: TObject);
|
||||||
procedure ToolButton6Click(Sender: TObject);
|
procedure ToolButton6Click(Sender: TObject);
|
||||||
procedure ToolButton7Click(Sender: TObject);
|
procedure ToolButton7Click(Sender: TObject);
|
||||||
|
procedure Tv1CustomDrawCell(Sender: TcxCustomGridTableView;
|
||||||
|
ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo;
|
||||||
|
var ADone: Boolean);
|
||||||
private
|
private
|
||||||
procedure InitGrid();
|
procedure InitGrid();
|
||||||
procedure SetStatus();
|
procedure SetStatus();
|
||||||
|
|
@ -232,7 +236,8 @@ begin
|
||||||
Filtered := False;
|
Filtered := False;
|
||||||
sql.Add(' select IsTP=cast((case when (select COUNT(T.WBID) from TP_File T where T.WBID=A.FFID)=0 then 0 else 1 end) as bit ) ');
|
sql.Add(' select IsTP=cast((case when (select COUNT(T.WBID) from TP_File T where T.WBID=A.FFID)=0 then 0 else 1 end) as bit ) ');
|
||||||
sql.ADD(',A.*,B.account,B.OpenBank from Finance_Flow A');
|
sql.ADD(',A.*,B.account,B.OpenBank from Finance_Flow A');
|
||||||
sql.Add(' Left join BS_Company_Bank B on A.OppBankID=B.CBID where A.FFType=''마운되션'' ');
|
sql.Add(' Left join BS_Company_Bank B on A.OppBankID=B.CBID where A.FFType=''¸¶¿îµÇ¼Ç'' ');
|
||||||
|
sql.Add(' Or ISNULL(A.RegType,'''')=''ÊÕ¿î''');
|
||||||
case cxTabControl1.TabIndex of
|
case cxTabControl1.TabIndex of
|
||||||
0:
|
0:
|
||||||
begin
|
begin
|
||||||
|
|
@ -253,6 +258,7 @@ begin
|
||||||
sql.Add(' and A.SQDate<''' + FormatDateTime('yyyy-MM-dd', Enddate.DateTime + 1) + ''' ');
|
sql.Add(' and A.SQDate<''' + FormatDateTime('yyyy-MM-dd', Enddate.DateTime + 1) + ''' ');
|
||||||
end;
|
end;
|
||||||
sql.Add(WSql);
|
sql.Add(WSql);
|
||||||
|
// showmessage(sql.text);
|
||||||
Open;
|
Open;
|
||||||
end;
|
end;
|
||||||
SCreateCDS(ADOQueryMain, CDS_1);
|
SCreateCDS(ADOQueryMain, CDS_1);
|
||||||
|
|
@ -901,6 +907,17 @@ begin
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfrmPayList.Tv1CustomDrawCell(Sender: TcxCustomGridTableView;
|
||||||
|
ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo;
|
||||||
|
var ADone: Boolean);
|
||||||
|
begin
|
||||||
|
if AViewInfo.GridRecord.Values[tv1.GetColumnByFieldName('RegType').Index] = 'ÊÕ¿î' then
|
||||||
|
begin
|
||||||
|
ACanvas.Brush.Color := $00FF8080;
|
||||||
|
end
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfrmPayList.OppCoNameKeyPress(Sender: TObject; var Key: Char);
|
procedure TfrmPayList.OppCoNameKeyPress(Sender: TObject; var Key: Char);
|
||||||
begin
|
begin
|
||||||
if Key = #13 then
|
if Key = #13 then
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user