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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? weeksql.~cpp

?? 銷售分析,JUSCO,日月周查詢,待完善.
?? ~CPP
?? 第 1 頁 / 共 2 頁
字號:

void __fastcall Tsumm::suiDBComboBox2DblClick(TObject *Sender)
{
AnsiString str;
if (flag==1){
 str="select store,weeklastd ,itmaster.dept_code,itmaster.section_code,itmaster.article_code,itmaster.vendor_code,sellweek.item_code,itmaster.item_desc ,quantity, customs,round((SELL/customs),2) as price , sell   FROM sellweek left join itmaster on sellweek.item_code=itmaster.item_code" ;
str=str+" where quantity<>0 and weeklastd >=# "+StrToDate(DateTimePicker1->Date.DateString())+"# and weeklastd <=#"+StrToDate(DateTimePicker2->Date.DateString())+"#" ;
 if(!suiComboBox1->Text.IsEmpty()){
str=str+" and store='"+suiComboBox1->Text.Trim()+"' ";
}
}
if (flag==2){
str="select store,itmaster.dept_code,itmaster.section_code,itmaster.article_code,itmaster.vendor_code,sellweek.item_code,itmaster.item_desc,stock_onhand ,SUM(quantity) AS quantities ,SUM(customs) AS allcustoms ,itmaster.price ,SUM(SELL) as total  FROM sellweek left join itmaster on sellweek.item_code=itmaster.item_code" ;
str=str+" where weeklastd >=#"+StrToDate(DateTimePicker1->Date.DateString())+"# and weeklastd <=#"+StrToDate(DateTimePicker2->Date.DateString())+"#    ";
 if(!suiComboBox1->Text.IsEmpty()){
str=str+" and store='"+suiComboBox1->Text.Trim()+"' ";
}
}

if(! suiDBComboBox2->Text.IsEmpty()&&suiDBComboBox2->Text.Length()==3){
str=str+" and itmaster.section_code='"+suiDBComboBox2->Text.Trim()+"'";
tempstr=str;
 if (flag==2){
  if ( suiRadioButton2->Checked)
str=str+"  group by store,article_code,itmaster.dept_code,itmaster.section_code,sellweek.item_code,itmaster.vendor_code,itmaster.item_desc,price,stock_onhand  order by SUM(SELL) desc  " ;
else
str=str+"  group by store,article_code,itmaster.dept_code,itmaster.section_code,sellweek.item_code,itmaster.vendor_code,itmaster.item_desc,price,stock_onhand order by SUM(quantity) desc ";

}



 try{
dm->dayseq->Active=false;
dm->dayseq->SQL->Clear();
dm->dayseq->SQL->Add(str);
 dm->dayseq->Active=true;
 }
 catch(...){
 dm->dayseq->Active=false;
 }




 suiDBComboBox1->Text=dm->dayseq->FieldByName("dept_code")->AsString;
 suiDBComboBox3->Text="";
 suiEdit1->Text="";

suiStatusBar1->SimpleText="  查詢時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString()+"  庫存為本店庫存";;

 }       
}
//---------------------------------------------------------------------------

void __fastcall Tsumm::suiDBComboBox3DblClick(TObject *Sender)
{
 AnsiString str;
if (flag==1){
 str="select store,weeklastd ,itmaster.dept_code,itmaster.section_code,itmaster.article_code,itmaster.vendor_code,sellweek.item_code,itmaster.item_desc ,quantity, customs,round((SELL/customs),2) as price , sell   FROM sellweek left join itmaster on sellweek.item_code=itmaster.item_code" ;
str=str+" where quantity<>0 and weeklastd >=# "+StrToDate(DateTimePicker1->Date.DateString())+"# and weeklastd <=#"+StrToDate(DateTimePicker2->Date.DateString())+"#" ;
 if(!suiComboBox1->Text.IsEmpty()){
str=str+" and store='"+suiComboBox1->Text.Trim()+"' ";
}
}
if (flag==2){
str="select store,itmaster.dept_code,itmaster.section_code,itmaster.article_code,itmaster.vendor_code,sellweek.item_code,itmaster.item_desc,stock_onhand ,SUM(quantity) AS quantities ,SUM(customs) AS allcustoms ,itmaster.price ,SUM(SELL) as total  FROM sellweek left join itmaster on sellweek.item_code=itmaster.item_code" ;
str=str+" where weeklastd >=#"+StrToDate(DateTimePicker1->Date.DateString())+"# and weeklastd <=#"+StrToDate(DateTimePicker2->Date.DateString())+"#    ";
 if(!suiComboBox1->Text.IsEmpty()){
str=str+" and store='"+suiComboBox1->Text.Trim()+"' ";
}
}


if(!suiDBComboBox3->Text.IsEmpty()&&suiDBComboBox3->Text.Length()==4){
str=str+ " and itmaster.article_code='"+suiDBComboBox3->Text.Trim()+"'";
 tempstr=str;
if (flag==2){
  if ( suiRadioButton2->Checked)
str=str+"  group by  store,article_code,itmaster.dept_code,itmaster.section_code,sellweek.item_code,itmaster.vendor_code,itmaster.item_desc,price,stock_onhand  order by SUM(SELL) desc  " ;
else
str=str+"  group by store,article_code,itmaster.dept_code,itmaster.section_code,sellweek.item_code,itmaster.vendor_code,itmaster.item_desc,price,stock_onhand order by SUM(quantity) desc ";

}

  ShowMessage(str);

 try{
dm->dayseq->Active=false;
dm->dayseq->SQL->Clear();
dm->dayseq->SQL->Add(str);
 dm->dayseq->Active=true;
 }
 catch(...){
 dm->dayseq->Active=false;
 }


suiDBComboBox1->Text=dm->dayseq->FieldByName("dept_code")->AsString;
suiDBComboBox2->Text=dm->dayseq->FieldByName("section_code")->AsString;
suiEdit1->Text=""  ;

suiStatusBar1->SimpleText=" 查詢時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString()+"  庫存為本店庫存";;


}
}
//---------------------------------------------------------------------------

void __fastcall Tsumm::suiEdit1DblClick(TObject *Sender)
{
  AnsiString str;
if (flag==1){
 str="select store,weeklastd ,itmaster.dept_code,itmaster.section_code,itmaster.article_code,itmaster.vendor_code,sellweek.item_code,itmaster.item_desc ,quantity, customs,round((SELL/customs),2) as price , sell   FROM sellweek left join itmaster on sellweek.item_code=itmaster.item_code" ;
str=str+" where quantity<>0 and weeklastd >=# "+StrToDate(DateTimePicker1->Date.DateString())+"# and weeklastd <=#"+StrToDate(DateTimePicker2->Date.DateString())+"#" ;
 if(!suiComboBox1->Text.IsEmpty()){
str=str+" and store='"+suiComboBox1->Text.Trim()+"' ";
}
}
if (flag==2){
str="select store,itmaster.dept_code,itmaster.section_code,itmaster.article_code,itmaster.vendor_code,sellweek.item_code,itmaster.item_desc,stock_onhand ,SUM(quantity) AS quantities ,SUM(customs) AS allcustoms ,itmaster.price ,SUM(SELL) as total  FROM sellweek left join itmaster on sellweek.item_code=itmaster.item_code" ;
str=str+" where weeklastd >=#"+StrToDate(DateTimePicker1->Date.DateString())+"# and weeklastd <=#"+StrToDate(DateTimePicker2->Date.DateString())+"#    ";
 if(!suiComboBox1->Text.IsEmpty()){
str=str+" and store='"+suiComboBox1->Text.Trim()+"' ";
}
}

if(!suiEdit1->Text.IsEmpty()&suiEdit1->Text.Length()==9){
str=str+" and sellweek.item_code='"+suiEdit1->Text.Trim()+"'";
tempstr=str;

 if(flag==2){
  if ( suiRadioButton2->Checked)
str=str+" group by  store,article_code,itmaster.dept_code,itmaster.section_code,sellweek.item_code,itmaster.vendor_code,itmaster.item_desc,price,stock_onhand order by SUM(SELL) desc " ;
else
str=str+" group by store,article_code,itmaster.dept_code,itmaster.section_code,sellweek.item_code,itmaster.vendor_code,itmaster.item_desc,price,stock_onhand order by SUM(quantity) desc ";
}


try{
dm->dayseq->Active=false;
dm->dayseq->SQL->Clear();
dm->dayseq->SQL->Add(str);
 dm->dayseq->Active=true;
 }
 catch(...){
 dm->dayseq->Active=false;
 }


suiDBComboBox1->Text=dm->dayseq->FieldByName("dept_code")->AsString;
suiDBComboBox2->Text=dm->dayseq->FieldByName("section_code")->AsString;
suiDBComboBox3->Text=dm->dayseq->FieldByName("article_code")->AsString;
}



// suiStatusBar1->SimpleText="全店鋪   總金額:"+FloatToStrF(ctotal,ffCurrency,12,2)+";  總數(shù)量:"+IntToStr(qtotal)+"  查詢時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString();

suiStatusBar1->SimpleText="  查詢時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString()+"  庫存為本店庫存";;



       
}
//---------------------------------------------------------------------------

void __fastcall Tsumm::suiButton4Click(TObject *Sender)
{
 suiButton2->Enabled=false;

 AnsiString str="select store,itmaster.dept_code,itmaster.section_code,itmaster.article_code,itmaster.vendor_code,sellweek.item_code,itmaster.item_desc,stock_onhand ,SUM(quantity) AS quantities ,SUM(customs) AS allcustoms ,itmaster.price ,SUM(SELL) as total  FROM sellweek left join itmaster on sellweek.item_code=itmaster.item_code" ;
str=str+" where weeklastd >=# "+StrToDate(DateTimePicker1->Date.DateString())+"# and weeklastd <=#"+StrToDate(DateTimePicker2->Date.DateString())+"#  ";


str=str+" group by store,article_code,itmaster.dept_code,itmaster.section_code,sellweek.item_code,itmaster.vendor_code,itmaster.item_desc,price,stock_onhand  ";
if ( suiRadioButton2->Checked)
str=str+" order by SUM(SELL) desc " ;
else
str=str+" order by SUM(quantity) desc ";
//ShowMessage(str);
 try{
dm->dayseq->Active=false;
dm->dayseq->SQL->Clear();
dm->dayseq->SQL->Add(str);
dm->dayseq->Active=true;

}
catch(...){
}
suiEdit1->Text="";
suiStatusBar1->SimpleText="查詢時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString()+"  庫存為本店庫存";
 flag=2;
}
//---------------------------------------------------------------------------



void __fastcall Tsumm::suiListBox1DblClick(TObject *Sender)
{
 AnsiString tstr;
 float ctotal=0.0;
 int qtotal=0;
 int stotal=0;
  if(!dm->dayseq->Active||flag!=1||!suiCheckBox1->Checked){
  return;
  }
 if (Trim(tempstr).IsEmpty()){

 tempstr=AnsiString(dm->dayseq->SQL->Text);
  tstr=dm->dayseq->SQL->Text+" and month(weeklastd)="+(suiListBox1->TopIndex+1)+" order by weeklastd";//+suiListBox1->TopIndex;

     } else{
  tstr=Trim(tempstr)+" and month(weeklastd)="+(suiListBox1->TopIndex+1)+" order by weeklastd";

 }

 ShowMessage(tstr);
 try{
dm->dayseq->Active=false;
dm->dayseq->SQL->Clear();
dm->dayseq->SQL->Add(tstr);
 dm->dayseq->Active=true;
 }
 catch(...){
 dm->dayseq->Active=false;
 }

   if (!suiEdit1->Text.IsEmpty()){
  dm->dayseq->DisableControls();
  dm->dayseq->First();
 while( !dm->dayseq->Eof){
  ctotal=ctotal+ dm->dayseq->FieldByName("sell")->AsFloat;
 qtotal=qtotal+dm->dayseq->FieldByName("quantity")->AsInteger;
  stotal=stotal+dm->dayseq->FieldByName("Customs")->AsInteger;
dm->dayseq->Next();
  }
dm->dayseq->EnableControls();

 suiStatusBar1->SimpleText="該項(xiàng)目匯總結(jié)果 "+suiListBox1->Items->operator [](suiListBox1->TopIndex)+"銷售數(shù)量:"+IntToStr(qtotal)+" 銷售客數(shù)為"+IntToStr(stotal)+" 銷售金額:"+FormatFloat("0.0",ctotal);
}
}
//---------------------------------------------------------------------------





?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97国产一区二区| av不卡免费电影| 国产精品久久影院| 欧美群妇大交群的观看方式| 成人视屏免费看| 日韩中文字幕亚洲一区二区va在线| 日本一区二区三级电影在线观看| 欧美日韩第一区日日骚| 国产99久久久国产精品免费看| 亚洲成av人片在www色猫咪| 中文字幕精品综合| 日韩精品专区在线影院重磅| 91国产精品成人| 国产一区福利在线| 青青草国产精品97视觉盛宴 | 欧美巨大另类极品videosbest| 欧美男生操女生| 亚洲午夜精品久久久久久久久| 在线播放中文一区| 日韩国产精品久久久久久亚洲| 欧美私人免费视频| 国产乱人伦偷精品视频免下载| 欧美色国产精品| 日本不卡视频在线| 久久亚洲影视婷婷| 欧美在线观看一区| 国产精品自产自拍| 日韩黄色免费电影| 一区二区三区在线免费观看| 亚洲国产精品t66y| 国产日韩欧美在线一区| 日韩视频一区二区三区在线播放| 欧美日韩亚洲国产综合| 欧美探花视频资源| 欧美日韩一区国产| 欧美日韩中文字幕一区| 精品婷婷伊人一区三区三| 欧美在线观看禁18| 在线免费亚洲电影| 在线观看视频91| 欧美日韩精品一区二区三区| 欧美在线不卡一区| 欧美日韩国产在线播放网站| 欧美日韩精品福利| 欧美久久一二三四区| 51午夜精品国产| 日韩欧美亚洲国产精品字幕久久久| 欧美高清你懂得| 欧美一区二区不卡视频| 91精品在线一区二区| 欧美xxxxxxxx| 国产午夜精品一区二区 | 久久久久久久免费视频了| 久久综合色鬼综合色| 国产蜜臀av在线一区二区三区| 国产午夜精品一区二区三区视频| 久久精品视频免费观看| 国产精品视频第一区| 亚洲免费色视频| 亚洲第一激情av| 麻豆国产精品官网| 韩国成人精品a∨在线观看| 国产一区二区三区不卡在线观看 | 日本不卡在线视频| 狠狠色综合日日| 丁香婷婷综合激情五月色| 97久久精品人人爽人人爽蜜臀| 色婷婷av一区二区| 91精品麻豆日日躁夜夜躁| 久久综合网色—综合色88| 亚洲精品菠萝久久久久久久| 国产精品―色哟哟| 日本午夜精品视频在线观看| 免费成人av在线| 久草中文综合在线| 成人av小说网| 久久久国产精华| 精品日韩一区二区| 中文字幕不卡在线| 午夜成人在线视频| 精品一区二区在线观看| 欧美日韩综合在线免费观看| 久久久国产精品不卡| 亚洲欧美日韩国产综合| 日韩精品乱码免费| 国产suv一区二区三区88区| 日本韩国视频一区二区| 26uuu亚洲婷婷狠狠天堂| 亚洲日本青草视频在线怡红院 | 精品国产成人在线影院| 国产精品久久久久久亚洲毛片| 日韩电影在线观看电影| 成人午夜又粗又硬又大| 在线综合视频播放| 亚洲同性同志一二三专区| 捆绑变态av一区二区三区| 在线免费观看日本欧美| 欧美韩国一区二区| 青青草原综合久久大伊人精品优势| 99r精品视频| 亚洲精品一区二区三区精华液| 一区二区三区成人在线视频| 国产成人久久精品77777最新版本| 欧美日韩精品一区视频| 国产精品乱人伦中文| 久久国产精品第一页| 欧美亚一区二区| 中文字幕免费观看一区| 美女高潮久久久| 欧美日韩黄视频| 亚洲另类在线视频| 成人免费高清视频| 久久精品亚洲乱码伦伦中文| 日韩二区三区在线观看| 欧美综合久久久| 国产精品的网站| 国产suv精品一区二区883| 精品福利二区三区| 美女在线观看视频一区二区| 欧美久久久久中文字幕| 夜夜精品浪潮av一区二区三区| 成人午夜在线播放| 国产欧美一区二区精品性色超碰| 美国av一区二区| 日韩一区二区在线看片| 五月综合激情网| 欧美另类变人与禽xxxxx| 亚洲自拍另类综合| 欧美性猛片aaaaaaa做受| 一区二区三区四区乱视频| 91在线视频观看| 中文字幕在线观看一区| a美女胸又www黄视频久久| 国产精品色在线观看| 国产suv精品一区二区三区| 久久精品免费观看| **欧美大码日韩| 婷婷综合五月天| 国产免费观看久久| 7878成人国产在线观看| 国产精品一区一区| 久热成人在线视频| 亚洲国产精品av| 欧美日韩的一区二区| 成人影视亚洲图片在线| 亚洲超丰满肉感bbw| 精品对白一区国产伦| 欧美精品粉嫩高潮一区二区| 一区二区三区鲁丝不卡| 日本丰满少妇一区二区三区| 一区视频在线播放| 欧美在线一区二区三区| 日韩精品电影一区亚洲| 日韩一区二区在线看| 国产精品亚洲一区二区三区在线| 中文无字幕一区二区三区| 99久久国产免费看| 亚洲图片一区二区| 日韩欧美一区在线| 丁香亚洲综合激情啪啪综合| 亚洲日韩欧美一区二区在线| 欧美日韩一区二区三区在线| 美女视频网站黄色亚洲| 国产欧美一区二区三区沐欲| 91久久国产最好的精华液| 日韩不卡手机在线v区| 久久一区二区视频| 91麻豆文化传媒在线观看| 亚洲成年人网站在线观看| 精品少妇一区二区三区日产乱码| 国产成人免费xxxxxxxx| 亚洲综合免费观看高清完整版| 日韩欧美黄色影院| 成人免费毛片片v| 午夜成人免费电影| 国产人伦精品一区二区| 欧美视频在线不卡| 久久91精品国产91久久小草| 亚洲精品视频在线观看网站| 91精品国产色综合久久不卡电影 | 麻豆国产欧美日韩综合精品二区 | 国产一区中文字幕| 亚洲色图在线视频| 日韩一区二区三区在线视频| www.日韩大片| 久久 天天综合| 亚洲综合在线视频| 久久久久青草大香线综合精品| 欧美性大战久久久| 国产不卡视频在线播放| 日一区二区三区| 日韩理论电影院| 久久久九九九九| 欧美日本高清视频在线观看| 成人app在线观看| 激情五月播播久久久精品| 亚洲成人av一区| 亚洲精品v日韩精品| 亚洲国产成人在线| 欧美成人精精品一区二区频|