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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? weekquery.cpp

?? 銷(xiāo)售分析,JUSCO,日月周查詢(xún),待完善.
?? CPP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):

void __fastcall Tweekqu::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="  查詢(xún)時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString()+"  庫(kù)存為本店庫(kù)存";;

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

void __fastcall Tweekqu::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=" 查詢(xún)時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString()+"  庫(kù)存為本店庫(kù)存";;


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

void __fastcall Tweekqu::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)+"  查詢(xún)時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString();

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



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

void __fastcall Tweekqu::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="查詢(xún)時(shí)間從"+DateTimePicker1->Date.DateString()+"至"+DateTimePicker2->Date.DateString()+"  庫(kù)存為本店庫(kù)存";
 flag=2;
}
//---------------------------------------------------------------------------



void __fastcall Tweekqu::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)+"銷(xiāo)售數(shù)量:"+IntToStr(qtotal)+" 銷(xiāo)售客數(shù)為"+IntToStr(stotal)+" 銷(xiāo)售金額:"+FormatFloat("0.0",ctotal);
}
}
//---------------------------------------------------------------------------





?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品自拍三区| 国产自产高清不卡| 日韩欧美黄色影院| 成人福利视频网站| 日韩成人午夜电影| 中文字幕一区三区| 亚洲国产精品久久人人爱| 99久久伊人久久99| 日韩精品五月天| 亚洲欧洲日韩在线| 久久蜜桃香蕉精品一区二区三区| 久久国产人妖系列| 亚洲激情网站免费观看| 26uuu另类欧美| 欧美人狂配大交3d怪物一区| 成人一道本在线| 久久国产生活片100| 亚洲电影视频在线| 51久久夜色精品国产麻豆| 偷偷要91色婷婷| 亚洲欧洲三级电影| 欧美午夜一区二区三区 | 欧美日韩日日夜夜| 粉嫩av一区二区三区在线播放| 久久久久国产精品人| 777午夜精品免费视频| 久久99国产乱子伦精品免费| 亚洲国产成人91porn| 欧美一区二区三区免费| 在线观看av一区| 91在线视频在线| 成人免费观看av| 国产传媒日韩欧美成人| 国产麻豆成人精品| 韩日欧美一区二区三区| 美日韩一区二区| 蜜桃视频在线观看一区| 午夜欧美视频在线观看| 亚洲成a人在线观看| 欧美哺乳videos| 91精品国产91综合久久蜜臀| 欧美天天综合网| 精品在线你懂的| 久久国产三级精品| 精品无码三级在线观看视频| 成人免费一区二区三区视频| 国产精品全国免费观看高清| 欧美日韩大陆在线| 欧美日韩精品欧美日韩精品| 欧美中文字幕亚洲一区二区va在线| 日韩精彩视频在线观看| 婷婷一区二区三区| 日本美女视频一区二区| 国产精品私房写真福利视频| 久久久久综合网| 国产日韩av一区二区| 国产精品美女久久福利网站| 亚洲欧洲av在线| 日韩丝袜美女视频| 26uuu久久综合| 国产精品三级在线观看| 亚洲人成7777| 午夜亚洲福利老司机| 日韩制服丝袜av| 亚洲免费观看高清完整版在线观看| 日韩一级黄色片| 日韩一区二区三区视频在线| 日韩亚洲欧美成人一区| 久久久91精品国产一区二区精品| 欧美精品一二三| 久久欧美一区二区| 亚洲视频免费观看| 中日韩av电影| 亚洲va天堂va国产va久| 国产伦精品一区二区三区免费| 麻豆免费看一区二区三区| 国产制服丝袜一区| 精品伊人久久久久7777人| 成人黄色综合网站| 国产.精品.日韩.另类.中文.在线.播放| 丝袜国产日韩另类美女| 蜜桃av噜噜一区| 免费视频一区二区| 成人午夜av电影| 国产成人综合网| 91成人在线免费观看| 日韩一区二区电影| 中文字幕日韩av资源站| 欧美人动与zoxxxx乱| 国产色91在线| 一区二区三区国产精品| 毛片av一区二区| 国产一区91精品张津瑜| 99久久精品国产精品久久| 欧美久久久久久久久久| 国产亚洲一区二区三区在线观看| 亚洲精品一区二区精华| 中文字幕一区二区三区蜜月| 精品伦理精品一区| 亚洲欧美激情插| 奇米色一区二区三区四区| 国产精品 欧美精品| 色噜噜狠狠色综合中国| 欧美中文字幕亚洲一区二区va在线| caoporm超碰国产精品| www.一区二区| 91精品国产免费| 国产精品毛片a∨一区二区三区| 欧美国产一区视频在线观看| 一区二区三区91| 国产精品一区二区黑丝| 欧美日本在线播放| 国产精品麻豆99久久久久久| 日日摸夜夜添夜夜添亚洲女人| 亚洲美女精品一区| 精品美女在线播放| 国产亚洲精品bt天堂精选| 亚洲一区二区三区视频在线| 国产一区二区三区在线观看免费视频 | 蜜桃视频在线观看一区| 丝袜美腿成人在线| 99久久精品国产毛片| 精品国产伦一区二区三区观看体验| 日韩三级免费观看| 一区二区三区中文在线| 国产成人免费av在线| 欧美剧情片在线观看| 欧美日韩在线直播| 国产精品免费人成网站| 精品午夜久久福利影院| 欧美日韩大陆在线| 91精品国产综合久久小美女| 亚洲男人天堂av| 国产伦精一区二区三区| 全国精品久久少妇| 国产成人综合网站| 日韩欧美一二三区| 亚洲一区二区欧美日韩| 午夜精品免费在线观看| 一本久久精品一区二区| 国产日韩精品一区二区三区在线| 亚洲人123区| 午夜在线成人av| 久久99国产精品麻豆| 成人精品gif动图一区| 国v精品久久久网| 精品少妇一区二区三区视频免付费 | 亚洲精品视频自拍| 成人免费视频视频在线观看免费| 久久av中文字幕片| 欧美岛国在线观看| 日韩黄色在线观看| 8x8x8国产精品| 亚洲国产一区视频| 色婷婷综合久久久中文一区二区 | 国产午夜一区二区三区| 国产福利一区二区| 久久婷婷国产综合精品青草| 精品一区二区在线观看| xnxx国产精品| 国内精品国产成人国产三级粉色| 日本韩国一区二区三区视频| 亚洲欧美日韩国产中文在线| av不卡在线播放| 亚洲欧美日本在线| 欧美影院午夜播放| 亚洲成人一区在线| 91亚洲精品一区二区乱码| 欧美日本韩国一区| 成人欧美一区二区三区| 色婷婷激情久久| 一区二区三区色| 欧美中文字幕亚洲一区二区va在线| 精品国产露脸精彩对白| 国产在线观看免费一区| 精品成人一区二区三区四区| 视频一区在线视频| 日韩欧美国产一区二区在线播放| 亚洲人吸女人奶水| 欧美亚洲国产一区二区三区| 久久综合中文字幕| 99精品偷自拍| 亚洲视频免费观看| 2023国产一二三区日本精品2022| 亚洲一区二区欧美激情| 欧美老女人在线| 国产美女在线观看一区| 亚洲视频一区在线| 91美女片黄在线| 国产麻豆精品theporn| 亚洲丝袜精品丝袜在线| 欧美日韩国产综合久久 | hitomi一区二区三区精品| 欧美精品一区二区三区四区| av在线这里只有精品| 亚洲国产成人av| 国产片一区二区| 欧美三日本三级三级在线播放| 国产精品理伦片| 91精品国产综合久久久久|