亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cllrsh.pas

?? 應對服裝行業的生產成本控制系統
?? PAS
?? 第 1 頁 / 共 2 頁
字號:
DataModule1.ClientDataSet25.Open;
DataModule1.ClientDataSet25.EnableControls;
help.Caption:='   查詢完畢!';
except
DataModule1.clientdataset25.EnableControls;
showmessage('數據庫沒有打開!');
end;
end;

procedure TFrmcllrsh.DBGrid5TitleClick(Column: TColumn);
var i : integer;
begin
for i:= 1 to DBGrid5.Columns.Count do
begin
//恢復所有標題字體為默認
DBGrid5.Columns[i-1].Title.Font.Color := clBlue;
DBGrid5.Columns[i-1].Title.Font.Style := [];
end;
if DataModule1.ClientDataSet25.IndexFieldNames<>(Column.FieldName) then //判斷原排序方式
begin
DataModule1.ClientDataSet25.IndexFieldNames:= Column.FieldName;
Column.Title.Font.Color := clRed; //改變標題行字體為紅色,表示當前的排序方式為升序
Column.Title.Font.Style := [fsBold];
end;
end;

procedure TFrmcllrsh.DBGrid5DrawColumnCell(Sender: TObject;
  const Rect: TRect; DataCol: Integer; Column: TColumn;
  State: TGridDrawState);
begin
 if DataModule1.ClientDataSet25.FieldByName('shbj').AsInteger=1 then
begin
dbgrid5.Canvas.Font.Color:=clred;
dbgrid5.Canvas.Brush.Color:=clyellow;
end
else
begin
dbgrid5.Canvas.Font.Color:=clblue;
dbgrid5.Canvas.Brush.Color:=clwhite;
end;
dbgrid5.DefaultDrawColumnCell(rect,datacol,column,state);
if   ((State = [gdSelected])   or   (State   =   [gdSelected,   gdFocused]))   then
   begin
DBGrid5.Canvas.Brush.Color:=clred;
DBGrid5.Canvas.Font.Color:=clWhite;
DBGrid5.DefaultDrawColumnCell(Rect,   datacol,column,   State);
end;
end;

procedure TFrmcllrsh.bshClick(Sender: TObject);
var
relation,cx,dx,sqlstr:string;
  begin
if not DataModule1.ClientDataSet25.Active then exit;
if DataModule1.ClientDataSet25.RecordCount<1 then exit;
 relation:=' = ''';
 cx:='';
 dx:= ' ''';
try
DataModule1.ClientDataSet25.Edit;
if DataModule1.ClientDataSet25.FieldByName('shbj').AsInteger=0 then
  begin
sqlstr:='update dbo.cllrb set shy'+relation+form1.StatusBar1.Panels[4].Text+dx+' ,shbj'+relation+'1'+dx+' ,shsj'+relation+datetimetostr(Date)+dx;
sqlstr:=sqlstr+' where (clh' +relation+cx+DataModule1.ClientDataSet25.FieldByName('clh').AsString+cx+''')';
DataModule1.ClientDataSet25.CommandText:=sqlstr;
DataModule1.ClientDataSet25.Execute;
DataModule1.ClientDataSet25.ApplyUpdates(-1);
DataModule1.ClientDataSet25.DisableControls;
DataModule1.ClientDataSet25.Close;
DataModule1.ClientDataSet25.CommandText:=commandstringq;
DataModule1.ClientDataSet25.Open;
DataModule1.ClientDataSet25.EnableControls;
 help.Caption:= '數據審核成功!';
 end;
 except
 DataModule1.clientdataset25.EnableControls;
 help.Caption:= '數據審核失敗!';
 end;
 end;

procedure TFrmcllrsh.bquerysClick(Sender: TObject);
var
commandtring1,relation,cx:string;
begin
 relation:=' like ''';
    cx:='%';
commandstring:='select * from dbo.cllrb';
commandtring1:='select * from dbo.cllrb';
  try
if (trim(qddh.Text)<>'') and (cddh.Checked) then
   begin
 relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.ddh'+relation+cx+trim(qddh.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.ddh'+relation+cx+trim(qddh.Text)+cx+''')';
end;
end
else
begin
qddh.Text:='';
end;
if (trim(qclh.Text)<>'') and (cclh.Checked) then
   begin
 relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.clh'+relation+cx+trim(qclh.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.clh'+relation+cx+trim(qclh.Text)+cx+''')';
end;
end
else
begin
qclh.Text:='';
end;
if cqq.Checked then
 begin
if commandstring=commandtring1 then
begin
relation:=' >= ''';
    cx:='';
commandstring:=commandstring+' where (dbo.cllrb.rq'+ relation+FormatDateTime('yyyy-mm-dd',qq.Date)+cx+''')';
end
else
begin
relation:=' >= ''';
    cx:='';
commandstring:=commandstring+' and (dbo.cllrb.rq'+ relation+FormatDateTime('yyyy-mm-dd',qq.Date)+cx+''')';
end;
end;
if czq.Checked then
 begin
if commandstring=commandtring1 then
begin
relation:=' < ''';
    cx:='';
commandstring:=commandstring+' where (dbo.cllrb.rq'+ relation+FormatDateTime('yyyy-mm-dd',zq.Date+1)+cx+''')';
end
else
begin
relation:=' < ''';
    cx:='';
commandstring:=commandstring+' and (dbo.cllrb.rq'+ relation+FormatDateTime('yyyy-mm-dd',zq.Date+1)+cx+''')';
end;
end;
if (trim(qgh.Text)<>'') and (cgh.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.gh'+relation+cx+trim(qgh.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.gh'+relation+cx+trim(qgh.Text)+cx+''')';
end;
end
else
begin
qgh.Text:='';
end;
if (trim(qfb.Text)<>'') and (cfb.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.fb'+relation+cx+trim(qfb.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.fb'+relation+cx+trim(qfb.Text)+cx+''')';
end;
end
else
begin
qfb.Text:='';
end;
if (trim(qfz.Text)<>'') and (cfz.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.fz'+relation+cx+trim(qfz.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.fz'+relation+cx+trim(qfz.Text)+cx+''')';
end;
end
else
begin
qfz.Text:='';
end;
if (trim(qyg.Text)<>'') and (cyg.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.yg'+relation+cx+trim(qyg.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.yg'+relation+cx+trim(qyg.Text)+cx+''')';
end;
end
else
begin
qyg.Text:='';
end;
if (trim(qbh.Text)<>'') and (cbh.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.bh'+relation+cx+trim(qbh.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.bh'+relation+cx+trim(qbh.Text)+cx+''')';
end;
end
else
begin
qbh.Text:='';
end;
if (trim(qys.Text)<>'') and (cys.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.ys'+relation+cx+trim(qys.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.ys'+relation+cx+trim(qys.Text)+cx+''')';
end;
end
else
begin
qys.Text:='';
end;
if (trim(qcm.Text)<>'') and (ccm.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.cm'+relation+cx+trim(qcm.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.cm'+relation+cx+trim(qcm.Text)+cx+''')';
end;
end
else
begin
qcm.Text:='';
end;
if (trim(qsl.Text)<>'') and (csl.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.sl'+relation+cx+trim(qsl.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.sl'+relation+cx+trim(qsl.Text)+cx+''')';
end;
end
else
begin
qsl.Text:='';
end;
if (trim(qgxmc.Text)<>'') and (cgxmc.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.gxmc'+relation+cx+trim(qgxmc.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.gxmc'+relation+cx+trim(qgxmc.Text)+cx+''')';
end;
end
else
begin
qgxmc.Text:='';
end;
if (trim(qdj.Text)<>'') and (cdj.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.dj'+relation+cx+trim(qdj.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.dj'+relation+cx+trim(qdj.Text)+cx+''')';
end;
end
else
begin
qdj.Text:='';
end;
if (trim(qxs.Text)<>'') and (cxs.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.xs'+relation+cx+trim(qxs.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.xs'+relation+cx+trim(qxs.Text)+cx+''')';
end;
end
else
begin
qxs.Text:='';
end;
if (trim(qcz.Text)<>'') and (ccz.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.cz'+relation+cx+trim(qcz.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.cz'+relation+cx+trim(qcz.Text)+cx+''')';
end;
end
else
begin
qcz.Text:='';
end;
if (trim(qbz.Text)<>'') and (cbz.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.bz'+relation+cx+trim(qbz.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.bz'+relation+cx+trim(qbz.Text)+cx+''')';
end;
end
else
begin
qbz.Text:='';
end;
if (trim(qczy.Text)<>'') and (cczy.Checked) then
   begin
    relation:=' like ''';
    cx:='%';
  if  commandstring=commandtring1 then
  begin
commandstring:=commandstring+' where (dbo.cllrb.czy'+relation+cx+trim(qczy.Text)+cx+''')';
end
else
begin
commandstring:=commandstring+' and (dbo.cllrb.czy'+relation+cx+trim(qczy.Text)+cx+''')';
end;
end
else
begin
qczy.Text:='';
end;
if  commandstring=commandtring1 then
  begin
    relation:=' = ''';
    cx:='';
commandstring:=commandstring+' where (dbo.cllrb.shbj'+relation+cx+'1'+cx+''')';
end
else
begin
    relation:=' = ''';
    cx:='';
commandstring:=commandstring+' and (dbo.cllrb.shbj'+relation+cx+'1'+cx+''')';
end;
commandstring:=commandstring+' order by ddh,clh';
commandstringq:=commandstring;
DataModule1.ClientDataSet25.DisableControls;
DataModule1.ClientDataSet25.Close;
DataModule1.ClientDataSet25.CommandText:=commandstring;
DataModule1.ClientDataSet25.Open;
DataModule1.ClientDataSet25.EnableControls;
help.Caption:='   查詢完畢!';
except
DataModule1.clientdataset25.EnableControls;
showmessage('數據庫沒有打開!');
end;
end;

procedure TFrmcllrsh.bfsClick(Sender: TObject);
var
relation,cx,dx,sqlstr:string;
  begin
if not DataModule1.ClientDataSet25.Active then exit;
if DataModule1.ClientDataSet25.RecordCount<1 then exit;
 relation:=' = ''';
 cx:='';
 dx:= ' ''';
try
DataModule1.ClientDataSet25.Edit;
if DataModule1.ClientDataSet25.FieldByName('shbj').AsInteger=1 then
  begin
sqlstr:='update dbo.cllrb set shy'+relation+form1.StatusBar1.Panels[4].Text+dx+' ,shbj'+relation+'0'+dx+' ,shsj'+relation+datetimetostr(Date)+dx;
sqlstr:=sqlstr+' where (clh' +relation+cx+DataModule1.ClientDataSet25.FieldByName('clh').AsString+cx+''')';
DataModule1.ClientDataSet25.CommandText:=sqlstr;
DataModule1.ClientDataSet25.Execute;
DataModule1.ClientDataSet25.ApplyUpdates(-1);
DataModule1.ClientDataSet25.DisableControls;
DataModule1.ClientDataSet25.Close;
DataModule1.ClientDataSet25.CommandText:=commandstringq;
DataModule1.ClientDataSet25.Open;
DataModule1.ClientDataSet25.EnableControls;
 help.Caption:= '數據審核成功!';
 end;
 except
 DataModule1.clientdataset25.EnableControls;
 help.Caption:= '數據審核失敗!';
 end;
end;

procedure TFrmcllrsh.bprintcClick(Sender: TObject);
var
excelname: string;
begin
if not DataModule1.ClientDataSet25.Active then exit;
if not form1.excel then
begin
showmessage('您還未獲得管理員的授權!請您與管理員聯系獲取授權!');
exit;
end;
if DataModule1.ClientDataSet25.RecordCount<1 then exit;
opendialog1.Filter:='Excel 文件 (*.xls) │*.xls';
if opendialog1.Execute then excelname:=opendialog1.FileName;
if length(excelname)>0 then writetoexcel(DataModule1.ClientDataSet25,excelname,'員工產量信息報表');
exit;
end;

end.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
樱花草国产18久久久久| 不卡视频一二三| 欧美网站大全在线观看| 综合欧美亚洲日本| 不卡一区二区在线| 国产精品免费视频网站| 日韩和欧美一区二区三区| 欧美日韩在线三级| 精品影视av免费| 日韩亚洲国产中文字幕欧美| 亚瑟在线精品视频| 欧美一区二区三区在线看| 日韩精品乱码av一区二区| 7777精品伊人久久久大香线蕉完整版| 中文字幕一区二区三区在线不卡| 粉嫩aⅴ一区二区三区四区| 欧美国产在线观看| 99久久99久久精品免费看蜜桃| 日韩码欧中文字| 在线观看国产精品网站| 午夜国产精品一区| 欧美一卡二卡三卡| 国产综合久久久久影院| 国产色综合久久| 91啪九色porn原创视频在线观看| 亚洲精选免费视频| 777xxx欧美| 国产精品影视网| 亚洲欧美在线aaa| 色婷婷精品久久二区二区蜜臂av| 亚洲一级二级三级| 日韩女优毛片在线| 成人aaaa免费全部观看| 亚洲电影一级片| 精品国产在天天线2019| 99久久久精品| 天天操天天色综合| 亚洲精品在线免费观看视频| 成人午夜免费av| 亚洲成人动漫精品| 欧美一区二区三区小说| 国产不卡在线视频| 亚洲国产欧美在线人成| 日韩视频中午一区| 972aa.com艺术欧美| 日韩中文欧美在线| 中文字幕一区二区在线播放| 日本精品一区二区三区四区的功能| 日本视频中文字幕一区二区三区| 中文在线一区二区| 日韩一区二区三区四区| 99综合影院在线| 美国十次了思思久久精品导航| 精品久久久网站| 色哟哟国产精品免费观看| 美女一区二区在线观看| 亚洲欧美另类久久久精品| 精品久久久久av影院 | 韩国精品主播一区二区在线观看| 国产精品久久久久婷婷| 日韩一区二区中文字幕| 色综合久久久久网| 国产成人在线视频免费播放| 五月天一区二区| 亚洲欧洲日韩一区二区三区| 欧美va亚洲va香蕉在线| 色乱码一区二区三区88| 欧美日韩aaaaaa| 色综合久久综合| 色香色香欲天天天影视综合网| 成人91在线观看| 波多野结衣一区二区三区| 成人免费黄色大片| 成人av集中营| 91视频免费看| 一本色道久久综合亚洲91| 在线免费亚洲电影| 欧美午夜不卡在线观看免费| 欧美日韩国产美女| 日韩一区二区精品| 精品国产乱码久久久久久牛牛| 久久亚洲二区三区| 亚洲国产岛国毛片在线| 成人欧美一区二区三区小说| 亚洲欧美日韩国产成人精品影院| 一区二区三区中文字幕在线观看| 亚洲福利国产精品| 精品在线一区二区| 国产精品亚洲成人| 99精品欧美一区二区蜜桃免费| 色又黄又爽网站www久久| 欧美日韩国产天堂| 欧美精品一区二区三| 国产婷婷色一区二区三区四区 | 亚洲成人免费观看| 午夜精品久久久久| 久久国产三级精品| 国产91在线观看丝袜| 色婷婷狠狠综合| 91精品国产aⅴ一区二区| 精品盗摄一区二区三区| 中文字幕日韩av资源站| 香蕉成人啪国产精品视频综合网| 久久成人免费网| aaa欧美色吧激情视频| 欧美日韩大陆一区二区| 精品福利在线导航| 夜夜爽夜夜爽精品视频| 激情综合色播五月| 色哟哟精品一区| 精品国产伦一区二区三区观看体验 | 日本美女一区二区三区视频| 国产一区二区在线电影| 在线国产电影不卡| 久久久久久久久久久久久夜| 亚洲精品伦理在线| 国内精品国产成人国产三级粉色 | 国产成人a级片| 欧美日韩一本到| 久久精品欧美一区二区三区不卡 | 亚洲综合成人在线| 精品在线播放午夜| 国产午夜精品美女毛片视频| 国产精品福利影院| 激情综合网最新| 欧美午夜精品一区二区三区| 久久精品免费在线观看| 亚洲 欧美综合在线网络| 成人免费三级在线| 日韩视频在线永久播放| 亚洲精品v日韩精品| 国产精品亚洲午夜一区二区三区| 欧美日韩免费视频| 国产精品成人一区二区艾草| 蜜臀va亚洲va欧美va天堂| 色综合久久综合| 中文字幕巨乱亚洲| 国产一区激情在线| 制服丝袜国产精品| 亚洲国产一区二区三区青草影视| 国产99精品国产| 精品少妇一区二区三区日产乱码| 亚洲国产另类av| 91蜜桃婷婷狠狠久久综合9色| 日韩一级黄色大片| 天堂成人国产精品一区| 日本韩国精品在线| 综合欧美一区二区三区| 国产a区久久久| 国产日韩一级二级三级| 韩日av一区二区| 日韩欧美一二三区| 日韩激情一二三区| 91精品麻豆日日躁夜夜躁| 亚洲成a人在线观看| 日本道色综合久久| 亚洲最大成人综合| 色综合久久99| 亚洲综合视频在线观看| 色婷婷激情综合| 亚洲五码中文字幕| 欧美亚日韩国产aⅴ精品中极品| 亚洲色图一区二区三区| 91丨porny丨在线| 一区二区三区高清在线| 在线观看成人小视频| 亚洲高清免费观看高清完整版在线观看| a4yy欧美一区二区三区| 亚洲激情五月婷婷| 欧美午夜精品一区二区蜜桃| 亚洲精品午夜久久久| 欧美三级中文字| 亚洲va国产va欧美va观看| 91精品国产全国免费观看| 日韩av一区二区三区| 欧美一区二区在线观看| 蜜桃久久久久久| 久久久精品2019中文字幕之3| 国产69精品久久久久777| 亚洲天天做日日做天天谢日日欢| 91网站在线观看视频| 一二三四区精品视频| 欧美一区二区三区影视| 国产尤物一区二区在线| 国产精品黄色在线观看 | 欧美日韩在线免费视频| 午夜不卡av在线| 欧美xxxxxxxx| av高清久久久| 亚洲va韩国va欧美va精品| 日韩欧美资源站| 成人午夜电影久久影院| 一区二区三区四区蜜桃| 日韩欧美一级二级| av电影在线观看完整版一区二区| 亚洲国产精品自拍| 久久精品人人做人人综合| 欧美在线观看18| 国产自产视频一区二区三区 | 亚洲va国产va欧美va观看|