|  | @@ -494,17 +494,14 @@ begin
 | 
												
													
														
															|  |    cdsZJJLBillsID.AsInteger := ANode.ID;
 |  |    cdsZJJLBillsID.AsInteger := ANode.ID;
 | 
												
													
														
															|  |    cdsZJJLType.AsInteger := AType;
 |  |    cdsZJJLType.AsInteger := AType;
 | 
												
													
														
															|  |    ZJJLNode := GetOrgZJJLNode(ANode.ID);
 |  |    ZJJLNode := GetOrgZJJLNode(ANode.ID);
 | 
												
													
														
															|  | -  if not Assigned(ZJJLNode) then
 |  | 
 | 
												
													
														
															|  | -  begin
 |  | 
 | 
												
													
														
															|  | -    cdsZJJLCode.AsString := GetNewCode;
 |  | 
 | 
												
													
														
															|  | -    if AType = Ord(ztFx) then
 |  | 
 | 
												
													
														
															|  | -      cdsZJJLBillsCode.AsString := ANode.Rec.ValueByName('Code').AsString
 |  | 
 | 
												
													
														
															|  | -    else if AType = Ord(ztGcl) then
 |  | 
 | 
												
													
														
															|  | -      cdsZJJLBillsCode.AsString := ANode.Rec.ValueByName('B_Code').AsString;
 |  | 
 | 
												
													
														
															|  | -  end
 |  | 
 | 
												
													
														
															|  | -  else
 |  | 
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +  cdsZJJLCode.AsString := GetNewCode;
 | 
												
													
														
															|  | 
 |  | +  if AType = Ord(ztFx) then
 | 
												
													
														
															|  | 
 |  | +    cdsZJJLBillsCode.AsString := ANode.Rec.ValueByName('Code').AsString
 | 
												
													
														
															|  | 
 |  | +  else if AType = Ord(ztGcl) then
 | 
												
													
														
															|  | 
 |  | +    cdsZJJLBillsCode.AsString := ANode.Rec.ValueByName('B_Code').AsString;
 | 
												
													
														
															|  | 
 |  | +  if Assigned(ZJJLNode) then
 | 
												
													
														
															|  |    begin
 |  |    begin
 | 
												
													
														
															|  | -    cdsZJJLCode.AsString := GetNewCode;
 |  | 
 | 
												
													
														
															|  |      cdsZJJLCertificateCode.AsString := ZJJLNode.FCertificateCode;
 |  |      cdsZJJLCertificateCode.AsString := ZJJLNode.FCertificateCode;
 | 
												
													
														
															|  |      cdsZJJLFormulaMemo.AsString := ZJJLNode.FFormulaMemo;
 |  |      cdsZJJLFormulaMemo.AsString := ZJJLNode.FFormulaMemo;
 | 
												
													
														
															|  |      cdsZJJLRelaFile.AsString := ZJJLNode.FRelaFile;
 |  |      cdsZJJLRelaFile.AsString := ZJJLNode.FRelaFile;
 |