WzglDB.pas
上传用户:psxgmh
上传日期:2013-04-08
资源大小:15112k
文件大小:4k
源码类别:

Delphi/CppBuilder

开发平台:

Delphi

  1. unit WzglDB;
  2. interface
  3. uses
  4.   SysUtils, Classes, DB, DBClient, MConnect, SConnect,dialogs;
  5. type
  6.   TDM = class(TDataModule)
  7.     CDS_QXGL_YHSZ: TClientDataSet;
  8.     CDS_QXGL_ZHSZ: TClientDataSet;
  9.     CDS_QXGL_ZHNR: TClientDataSet;
  10.     CDS_QXGL_ZHSZCDSDesigner: TStringField;
  11.     CDS_QXGL_ZHSZCDSDesigner2: TStringField;
  12.     CDS_QXGL_ZHSZCDSDesigner3: TStringField;
  13.     CDS_QXGL_ZHSZQ_QXGL_ZHNR: TDataSetField;
  14.     CDS_QXGL_ZHSZ_INDEX: TClientDataSet;
  15.     CDS_QXGL_ZHNR_INDEX: TClientDataSet;
  16.     CDS_QXGL_YHSZ_INDEX: TClientDataSet;
  17.     CDS_ZGDA: TClientDataSet;
  18.     CDS_BMDA: TClientDataSet;
  19.     CDS_DQFLB: TClientDataSet;
  20.     CDS_GYSFLB: TClientDataSet;
  21.     CDS_GYSDA: TClientDataSet;
  22.     CDS_DQFLB_INDEX: TClientDataSet;
  23.     CDS_GYSFLB_INDEX: TClientDataSet;
  24.     CDS_GYSDA_INDEX: TClientDataSet;
  25.     CDS_ZGDA_INDEX: TClientDataSet;
  26.     CDS_BMDA_INDEX: TClientDataSet;
  27.     CDS_CLSLD_CX: TClientDataSet;
  28.     CDS_CLSLD: TClientDataSet;
  29.     CDS_CLSLD_DETAIL: TClientDataSet;
  30.     CDS_CLBM_INDEX: TClientDataSet;
  31.     CDS_CLBM_TEMP_INDEX: TClientDataSet;
  32.     CDS_CKXX_INDEX: TClientDataSet;
  33.     CDS_CKXX: TClientDataSet;
  34.     CDS_CKXXCDSDesigner: TStringField;
  35.     CDS_CKXXCDSDesigner2: TStringField;
  36.     CDS_CKXXCDSDesigner3: TStringField;
  37.     CDS_CKXXCDSDesigner4: TStringField;
  38.     CDS_CKXXCDSDesigner5: TStringField;
  39.     CDS_CLSLD_INDEX: TClientDataSet;
  40.     CDS_CLSLD_DETAIL_INDEX: TClientDataSet;
  41.     CDS_BMLLD: TClientDataSet;
  42.     CDS_BMLLD_DETAIL: TClientDataSet;
  43.     CDS_BMLLD_DETAIL_INDEX: TClientDataSet;
  44.     CDS_BMLLD_CX: TClientDataSet;
  45.     CDS_BMLLDCDSDesigner: TStringField;
  46.     CDS_BMLLDCDSDesigner2: TStringField;
  47.     CDS_BMLLDCDSDesigner3: TStringField;
  48.     CDS_BMLLDCDSDesigner4: TDateTimeField;
  49.     CDS_BMLLDCDSDesigner5: TStringField;
  50.     CDS_BMLLDCDSDesigner6: TStringField;
  51.     CDS_BMLLDCDSDesigner7: TStringField;
  52.     CDS_BMLLDCDSDesigner8: TStringField;
  53.     CDS_BMLLDCDSDesigner9: TStringField;
  54.     CDS_BMLLDCDSDesigner10: TStringField;
  55.     CDS_BMLLDCDSDesigner11: TStringField;
  56.     CDS_BMLLDCDSDesigner12: TStringField;
  57.     CDS_BMLLDCDSDesigner13: TBooleanField;
  58.     CDS_BMLLDCDSDesigner14: TDateTimeField;
  59.     CDS_BMLLDQ_BMLLD_DETAIL: TDataSetField;
  60.     CDS_BMLLD_INDEX: TClientDataSet;
  61.     CDS_GCXMDY: TClientDataSet;
  62.     CDS_GCXMDY_INDEX: TClientDataSet;
  63.     CDS_KC: TClientDataSet;
  64.     CDS_CLSLDCDSDesigner: TStringField;
  65.     CDS_CLSLDCDSDesigner2: TStringField;
  66.     CDS_CLSLDCDSDesigner3: TDateTimeField;
  67.     CDS_CLSLDCDSDesigner4: TStringField;
  68.     CDS_CLSLDCDSDesigner5: TStringField;
  69.     CDS_CLSLDCDSDesigner6: TStringField;
  70.     CDS_CLSLDCDSDesigner7: TStringField;
  71.     CDS_CLSLDCDSDesigner8: TFloatField;
  72.     CDS_CLSLDCDSDesigner9: TFloatField;
  73.     CDS_CLSLDCDSDesigner10: TStringField;
  74.     CDS_CLSLDCDSDesigner11: TStringField;
  75.     CDS_CLSLDCDSDesigner12: TStringField;
  76.     CDS_CLSLDCDSDesigner13: TStringField;
  77.     CDS_CLSLDCDSDesigner14: TStringField;
  78.     CDS_CLSLDCDSDesigner15: TBooleanField;
  79.     CDS_CLSLDCDSDesigner16: TDateTimeField;
  80.     CDS_CLSLDCDSDesigner17: TStringField;
  81.     CDS_CLSLDQ_CLSLD_DETAIL: TDataSetField;
  82.     CDS_CLSLD_DETAILID: TAutoIncField;
  83.     CDS_CLSLD_DETAILCDSDesigner: TStringField;
  84.     CDS_CLSLD_DETAILCDSDesigner2: TStringField;
  85.     CDS_CLSLD_DETAILCDSDesigner3: TStringField;
  86.     CDS_CLSLD_DETAILCDSDesigner4: TFloatField;
  87.     CDS_CLSLD_DETAILCDSDesigner5: TFloatField;
  88.     CDS_CLSLD_DETAILCDSDesigner6: TFloatField;
  89.     CDS_CLSLD_DETAILCDSDesigner7: TStringField;
  90.     CDS_CLSLD_DETAILCDSDesigner8: TStringField;
  91.     CDS_CLSLD_DETAILCDSDesigner9: TStringField;
  92.     CDS_CLSLD_DETAILCDSDesigner10: TCurrencyField;
  93.     CDS_CLSLD_DETAILCDSDesigner11: TStringField;
  94.     CDS_CLSLD_DETAILField: TFloatField;
  95.     procedure CDS_CLSLD_DETAILCalcFields(DataSet: TDataSet);
  96.     procedure CDS_CLSLDReconcileError(DataSet: TCustomClientDataSet;
  97.       E: EReconcileError; UpdateKind: TUpdateKind;
  98.       var Action: TReconcileAction);
  99.   private
  100.     { Private declarations }
  101.   public
  102.     { Public declarations }
  103.   end;
  104. var
  105.   DM: TDM;
  106. implementation
  107. uses U_mainform;
  108. {$R *.dfm}
  109. procedure TDM.CDS_CLSLD_DETAILCalcFields(DataSet: TDataSet);
  110. begin
  111.   CDS_CLSLD_DETAIL.FieldByName('入库总价').value := CDS_CLSLD_DETAIL.fieldbyname('实收数量').asfloat * CDS_CLSLD_DETAIL.fieldbyname('入库单价').asfloat;
  112. end;
  113. procedure TDM.CDS_CLSLDReconcileError(DataSet: TCustomClientDataSet;
  114.   E: EReconcileError; UpdateKind: TUpdateKind;
  115.   var Action: TReconcileAction);
  116. begin
  117.   showMessage(e.Message );
  118. end;
  119. end.