sales orders中文翻譯,sales orders是什么意思,sales orders發(fā)音、用法及例句
- 內(nèi)容導(dǎo)航:
- 1、sales orders
- 2、如何動(dòng)態(tài)加載DXperience Master-Detail的Detail數(shù)據(jù)
1、sales orders
sales orders發(fā)音
英: 美:
sales orders中文意思翻譯
常見釋義:
銷售訂單
sales orders雙語使用場(chǎng)景
1、Others say sales orders and sales are holding up.───其他人表示,銷售訂單和銷售額的增長(zhǎng)勢(shì)頭都保持得不錯(cuò)。
2、the long-term, through telephone calls on local small and medium enterprises, and finally to the sectors of sales orders.───通過長(zhǎng)時(shí)期的電話拜訪本地中小企業(yè),最終使部門產(chǎn)生銷售訂單。
3、Data from sales orders and inventory.───數(shù)據(jù),從銷售訂單和存貨。
4、Assist in following up and handling sales orders, customer inquires, account receivables or other business related issues.───協(xié)助跟進(jìn)處理訂單,客戶查詢,應(yīng)收帳款和其他一切與商務(wù)有關(guān)的事項(xiàng)。
5、Production controllers are responsible for sales orders' review, and rely the result of review to business department.───生管負(fù)責(zé)對(duì)銷售訂單進(jìn)行評(píng)審,并將評(píng)審結(jié)果回復(fù)業(yè)務(wù)。
6、Filing documents for reference including sales orders, approved applications, customer records, signed debtor statements by customers, etc.───歸檔以下文件備查:銷售訂單、獲批準(zhǔn)申請(qǐng)、客戶記錄,客戶簽字的債務(wù)文件等。
7、And is defined as the total number of sales orders and the most recent sales order date in the .───表中被定義為銷售訂單總數(shù)和最近銷售訂單日期。
8、A common example of a drillthrough report might be a Monthly Sales report that contains links to individual sales orders for that month.───舉一個(gè)常見的鉆取報(bào)表的示例:包含指向當(dāng)月各個(gè)銷售訂單的鏈接的MonthlySales報(bào)表。
9、They include sales orders, patient records, and scientific data.───這些文檔包括銷售訂單、病人記錄和科學(xué)數(shù)據(jù)。
sales orders相似詞語短語
1、placing orders───訂購;下訂單
2、orders special───特殊訂單
3、sales───n.銷售(sale的復(fù)數(shù));銷售額;adj.銷售的,售貨的;有關(guān)銷售的;n.(Sales)人名;(意、西、葡)薩萊斯;(法)薩勒;(英)塞爾斯
4、place orders───訂購;下訂單
5、coffeehouse orders───咖啡館訂單
6、give orders───發(fā)號(hào)施令;授命;下令;發(fā)出命令;下命令
7、standing orders───制造費(fèi)用單;長(zhǎng)期適用的議事規(guī)程;現(xiàn)行命令;n.委托書,現(xiàn)行命令( standing order的名詞復(fù)數(shù) ); 議事程序
8、make orders───下訂單(makeanorder的復(fù)數(shù)形式)
9、export orders───出口定單
2、如何動(dòng)態(tài)加載DXperience Master-Detail的Detail數(shù)據(jù)
實(shí)現(xiàn)過程說明如下:
1、程序開始時(shí)只加載主表的數(shù)據(jù),明細(xì)表內(nèi)容不加載;
2、如果選擇了新的主表對(duì)象,根據(jù)新主表對(duì)象ID,動(dòng)態(tài)從數(shù)據(jù)庫中加載相關(guān)明細(xì)表的數(shù)據(jù),并合并到數(shù)據(jù)源的明細(xì)表中,同時(shí)把該主表的ID在List中緩存(以避免重復(fù)加載);
下面以nwind.mdb數(shù)據(jù)庫中的Orders和Order Details主從表為列說明具體過程。
做到一半發(fā)現(xiàn)MDB數(shù)據(jù)不支持DataSet一些特性,感覺很不爽,臨時(shí)更換為SQL數(shù)據(jù)庫,使用SQL 2005示例數(shù)據(jù)庫AdventureWorksDB,以Sales.SalesOrderHeader和Sales.SalesOrderDetail為例說明具體過程。
DevExpress DXperience教程教程環(huán)境必備:
1、SQL 2005示例數(shù)據(jù)庫AdventureWorksDB下載及安裝,可以下載并安裝SQL 2005 示例數(shù)據(jù)庫 AdventureWorksDB;
2、IDE環(huán)境:VS.Net2008;
3、DXperience組件版本:9.2.6
代碼只用來說明問題,沒有詳細(xì)的錯(cuò)誤處理機(jī)制等。
1、運(yùn)行VS環(huán)境,并建立一個(gè)解決方案;
2、如果您沒有示例數(shù)據(jù)庫,可以到上面的下載地址去下載并安裝;
3、主窗體SmarTestMain中加入一個(gè)GridControl,并建立兩個(gè)視圖,名稱及關(guān)系如下圖所示:
4、向項(xiàng)目中添加一個(gè)DataSet數(shù)據(jù)集DSSalesOrder.xsd,添加一個(gè)到AdventureWorks數(shù)據(jù)庫的連接,如下圖所示:
5、把表SalesOrderHeader和SalesOrderDetail拖到DataSet設(shè)計(jì)器,自動(dòng)建立關(guān)系,重新命名關(guān)系SOHeaderDetail,如下圖所示:
6、修改dataset中表SalesOrderDetail的查詢,在Fill,GetData()上點(diǎn)擊右鍵彈出菜單,選擇Configure,彈出配置窗體,在select語句后面加上查詢條件
1
where [email=SalesOrderID=@SalesOrderId]SalesOrderID=@SalesOrderId[/email]
下一 步;方法名稱修改為
1
FillBySalesOrderId/GetDataFillBySalesOrderId;
下一步結(jié)束。
7、設(shè)置gridControl1的數(shù)據(jù)源并設(shè)置其DataMember=SalesOrderHeader,在grindControl1的Level1上點(diǎn)擊,并選擇菜單Change LevelName,設(shè)置levelname=SOHeaderDetail,注意與數(shù)據(jù)集中定義的關(guān)系是一致的,如下圖所示:
8、運(yùn)行GridControlRunDesigner,選擇明細(xì)表視圖gvOrderDetails,點(diǎn)擊Columns/Retrieve Fields以自動(dòng)生成明細(xì)視圖的列,將兩個(gè)gridViewOptionsView.ColumnAutoWidth=false。
9、接下來的任務(wù)是寫個(gè)簡(jiǎn)單的數(shù)據(jù)訪問類,包括兩個(gè)方法,如下所示:
public static DSSalesOrder getSalesOrderAll()
{
DSSalesOrder dataSet = new DSSalesOrder();
using (SqlConnection con = new SqlConnection(Properties.Settings.Default.AdventureWorksConnectionString))
{
using (DSSalesOrderTableAdapters.SalesOrderHeaderTableAdapter ta = new SmarTest.Template.DSSalesOrderTableAdapters.SalesOrderHeaderTableAdapter { Connection = con })
{
ta.Fill(dataSet.SalesOrderHeader);
}
}
return dataSet;
}
public static DSSalesOrder getSalesOrderDetailByOrderId(int salesOrderId)
{
DSSalesOrder dataSet = new DSSalesOrder();
using (SqlConnection con=new SqlConnection(Properties.Settings.Default.AdventureWorksConnectionString))
{
using (DSSalesOrderTableAdapters.SalesOrderDetailTableAdapter ta = new SmarTest.Template.DSSalesOrderTableAdapters.SalesOrderDetailTableAdapter { Connection = con })
{
ta.FillBySalesOrderId(dataSet.SalesOrderDetail, salesOrderId);
}
}
return dataSet;
}
關(guān)鍵是第二個(gè)方法,不是返回所有明細(xì)數(shù)據(jù),而是根據(jù)主表ID,返回相關(guān)的明細(xì)。
下面的步驟都很關(guān)鍵,一定要注意!
10、設(shè)置主表視圖 gvOrders屬性:
this.gvOrders.OptionsDetail.AllowExpandEmptyDetails = true;(此屬性在整個(gè)項(xiàng)目中起一個(gè)核心的作用,如果不設(shè)置此屬性,即使其它都正確,還是不會(huì)引發(fā)gvOrders_MasterRowGetChildList事件。)
this.gvOrders.OptionsDetail.AllowOnlyOneMasterRowExpanded = true;(可以不設(shè)置)
this.gvOrders.OptionsBehavior.Editable = false;(這里是因?yàn)槭褂昧薘owClick事件,二者有關(guān)系,所以設(shè)置)
12、gvOrders視圖必須響應(yīng)的事件
List mSalesOrderCach = new List();
int mSalesOrderId = -1;
private void gvOrders_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
{
var row = gvOrders.GetDataRow(e.RowHandle) as DSSalesOrder.SalesOrderHeaderRow;
mSalesOrderId = row.SalesOrderID;
gvOrders.ExpandMasterRow(e.RowHandle);//此語句非必須,主要是使新的主表焦點(diǎn)行立即展開明細(xì)表,即使不包括數(shù)據(jù)。否則需要點(diǎn)擊主表的焦點(diǎn)行的“+”展開。
}
private void gvOrders_MasterRowGetChildList(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowGetChildListEventArgs e)
{
if (mSalesOrderCach.Contains(mSalesOrderId)) return;
using (DevExpress.Utils.WaitDialogForm wdf = new DevExpress.Utils.WaitDialogForm("向服務(wù)器請(qǐng)求數(shù)據(jù)..."))
{
var dsSalesOrder = gridControl1.DataSource as DSSalesOrder;
using (DSSalesOrder ds=dbHelper.getSalesOrderDetailByOrderId(mSalesOrderId))
{
if(ds.SalesOrderDetail.Rows.Count>0)
{
mSalesOrderCach.Add(mSalesOrderId);
dsSalesOrder.SalesOrderDetail.Merge(ds.SalesOrderDetail);
}
}
}
}
怎樣才能不顯示子表的 ViewCaption?
設(shè)置主表視圖
1
gvOrders.gvOrders.OptionsDetail.ShowDetailTabs = false;
即可
本站其他內(nèi)容推薦
1、tense narration spade legitimism reactive Calvinism henge alarmingly melodramatic bint
2、unpredictable中文翻譯,unpredictable是什么意思,unpredictable發(fā)音、用法及例句
3、blead中文翻譯,blead是什么意思,blead發(fā)音、用法及例句
4、adhesivebandage(adhesive bandage中文翻譯,adhesive bandage是什么意思,adhesive bandage發(fā)音、用法及例句)
5、burnish中文翻譯,burnish是什么意思,burnish發(fā)音、用法及例句
6、養(yǎng)家糊口的意思,養(yǎng)家糊口成語解釋,養(yǎng)家糊口是什么意思含義寓意
8、公山羊的英文,英語,he-goat是什么意思,he-goat中文翻譯,he-goat怎么讀、發(fā)音、用法及例句
9、darbies是什么意思,darbies中文翻譯,darbies怎么讀、發(fā)音、用法及例句
版權(quán)聲明: 本站僅提供信息存儲(chǔ)空間服務(wù),旨在傳遞更多信息,不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任,不代表本網(wǎng)贊同其觀點(diǎn)和對(duì)其真實(shí)性負(fù)責(zé)。如因作品內(nèi)容、版權(quán)和其它問題需要同本網(wǎng)聯(lián)系的,請(qǐng)發(fā)送郵件至 舉報(bào),一經(jīng)查實(shí),本站將立刻刪除。