private void SetupTransactionMessageSubjectDataGridViewColumns() { this.dataGridViewTransactionMessageSubject.AutoGenerateColumns = false; // EbayMessageId this.dataGridViewTransactionMessageSubject.Columns.Add( DgvUtil.createDgvTextBoxColumn("EbayMessageId", @"消息Id", typeof(string), 100, false)); // Sender this.dataGridViewTransactionMessageSubject.Columns.Add( DgvUtil.createDgvTextBoxColumn("Sender", @"发信人", typeof(string), 80, true)); // RecipientUserIdCol this.dataGridViewTransactionMessageSubject.Columns.Add( DgvUtil.createDgvTextBoxColumn("RecipientUserId", @"收信人", typeof(string), 80, true)); // IsRead // IsReplied // ReceiveDate this.dataGridViewTransactionMessageSubject.Columns.Add( DgvUtil.createDgvTextBoxColumn("ReceiveDate", @"时间", typeof(string), 120, true)); // Subject this.dataGridViewTransactionMessageSubject.Columns.Add( DgvUtil.createDgvTextBoxColumn("Subject", @"标题", typeof(string), 450, true)); this.dataGridViewTransactionMessageSubject.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dataGridViewTransactionMessageSubject.MultiSelect = true; this.dataGridViewTransactionMessageSubject.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); this.dataGridViewTransactionMessageSubject.ScrollBars = ScrollBars.Both; }
private void InitItemStatDgvColumns() { this.pagedDgvItem.DgvData.AutoGenerateColumns = false; this.pagedDgvItem.DgvData.AllowUserToAddRows = false; this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemSKU", "商品SKU", typeof(String), 100, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemName", "商品名称", typeof(String), 180, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemStockNum", "当前库存", typeof(String), 80, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemCost", "价格¥", typeof(String), 70, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemWeight", "重量g", typeof(String), 70, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemCustomName", "商品报关名", typeof(String), 150, true)); this.pagedDgvItem.DgvData.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.pagedDgvItem.DgvData.MultiSelect = true; }
// // Setup the datagridview columns. // I hate auto generating columns... // private void SetupTransactionDataGridViewColumns() { this.dataGridViewTransactions.AutoGenerateColumns = false; // OrderId this.dataGridViewTransactions.Columns.Add( DgvUtil.createDgvTextBoxColumn("TransactionId", @"交易ID", typeof(string), 50, true)); // SellerId this.dataGridViewTransactions.Columns.Add( DgvUtil.createDgvTextBoxColumn("SellerName", @"卖家ID", typeof(string), 80, true)); // BuyerId this.dataGridViewTransactions.Columns.Add( DgvUtil.createDgvTextBoxColumn("BuyerId", @"买家ID", typeof(string), 90, true)); // BuyerCountry this.dataGridViewTransactions.Columns.Add( DgvUtil.createDgvTextBoxColumn("BuyerCountry", @"买家国家", typeof(string), 90, true)); // ItemSKU this.dataGridViewTransactions.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemSKU", @"SKU", typeof(string), 50, true)); // ItemTitle this.dataGridViewTransactions.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemTitle", @"物品名称", typeof(string), 350, true)); this.dataGridViewTransactions.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dataGridViewTransactions.MultiSelect = true; this.dataGridViewTransactions.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }
private void SetupStockInNoteDataGridViewColumns() { this.pagedDgvItem.DgvData.AutoGenerateColumns = false; this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("NoteId", @"入库单号", typeof(int), 60, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemSKU", @"商品sku", typeof(String), 80, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemTitle", @"商品标题", typeof(String), 140, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("SourcingNoteId", @"采购单号", typeof(String), 80, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("StockInNum", @"入库数量", typeof(int), 80, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("StockInDate", @"入库时间", typeof(DateTime), 80, true)); this.pagedDgvItem.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("Comment", @"备注", typeof(String), 100, true)); this.pagedDgvItem.DgvData.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.pagedDgvItem.DgvData.MultiSelect = true; this.pagedDgvItem.DgvData.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }
private void InitItemSupplierDgvColumns() { this.dgvItemSuppliers.AutoGenerateColumns = false; this.dgvItemSuppliers.Columns.Add( DgvUtil.createDgvTextBoxColumn("SupplierId", "", typeof(String), 10, false)); this.dgvItemSuppliers.Columns.Add( DgvUtil.createDgvTextBoxColumn("SupplierName", "供应商", typeof(String), 150, true)); this.dgvItemSuppliers.Columns.Add( DgvUtil.createDgvTextBoxColumn("URL", "网址", typeof(String), 200, true)); this.dgvItemSuppliers.Columns.Add( DgvUtil.createDgvTextBoxColumn("Price", "价格", typeof(Double), 60, true)); this.dgvItemSuppliers.Columns.Add( DgvUtil.createDgvTextBoxColumn("ShippingFee", "运费", typeof(Double), 60, true)); this.dgvItemSuppliers.Columns.Add( DgvUtil.createDgvTextBoxColumn("Comment", "备注", typeof(String), 120, true)); //this.dgvItemSuppliers.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dgvItemSuppliers.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }
private void SetupActiveListingDataGridViewColumns() { this.dataGridViewActiveListing.AutoGenerateColumns = false; this.dataGridViewActiveListing.AllowUserToAddRows = false; // ItemID this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemID", "ItemID", typeof(String), 10, false)); // SellerName this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("SellerName", "卖家ID", typeof(String), 70, true)); // GalleryURL this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvImageColumn("Img", "图片", 60, true)); // Title this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("Title", "物品名称", typeof(String), 320, true)); // ListingType this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("ListingType", "上架类型", typeof(String), 80, true)); // Quantity this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("Quantity", "总数", typeof(String), 40, true)); // QuantityAvailable this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("QuantityAvailable", "剩余数", typeof(String), 70, true)); // QuantityBid this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("BidCount", "竞拍数", typeof(String), 70, true)); // StartPrice this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("StartPrice", "起始价", typeof(String), 70, true)); // CurrentPrice this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("CurrentPrice", "当前价", typeof(String), 70, true)); // TimeLeft this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("TimeLeft", "剩余时间", typeof(String), 100, true)); // WatchCount this.dataGridViewActiveListing.Columns.Add( DgvUtil.createDgvTextBoxColumn("WatchCount", "关注度", typeof(String), 70, true)); this.dataGridViewActiveListing.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dataGridViewActiveListing.MultiSelect = true; this.dataGridViewActiveListing.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; }
private void SetupDgvColumns() { this.dgvItems.AutoGenerateColumns = false; this.dgvItems.AllowUserToAddRows = true; this.dgvItems.Columns.Add(DgvUtil.createDgvTextBoxColumn("ItemSKU", "SKU", typeof(String), 120, true)); this.dgvItems.Columns.Add(DgvUtil.createDgvTextBoxColumn("ItemName", "商品名", typeof(String), 300, true)); this.dgvItems.Columns.Add(DgvUtil.createDgvTextBoxColumn("ItemPrice", "价格", typeof(double), 80, true)); this.dgvItems.Columns.Add(DgvUtil.createDgvTextBoxColumn("ItemCount", "数量", typeof(int), 80, true)); }
// Setup the post sale order datagridview columns. private void SetupPostSaleDataGridViewColumns() { this.dataGridViewPostSale.AutoGenerateColumns = false; this.dataGridViewPostSale.AllowUserToAddRows = false; // OrderLineItemId this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("OrderLineItemId", @"orderLineItemId", typeof(string), 10, false)); // SellerId this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("SellerName", @"卖家ID", typeof(string), 90, true)); // BuyerId this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("BuyerId", @"买家ID", typeof(string), 90, true)); // BuyerCountry this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("BuyerCountry", @"买家国家", typeof(string), 90, true)); // ItemSKU this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemSKU", @"SKU", typeof(string), 50, true)); // ItemTitle this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemTitle", @"物品名称", typeof(string), 350, true)); // SaleDate this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("SaleDateCN", @"售出时间", typeof(DateTime), 110, true)); // ShippedDate this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("ShippedDate", @"发货时间", typeof(DateTime), 110, true)); // ShippingService this.dataGridViewPostSale.Columns.Add( DgvUtil.createDgvTextBoxColumn("ShippingService", @"物流方式", typeof(string), 100, true)); this.dataGridViewPostSale.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dataGridViewPostSale.MultiSelect = true; this.dataGridViewPostSale.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }
private void SetupDgvColumns() { this.pagedDgvSourcingNote.DgvData.AutoGenerateColumns = false; this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("SourcingId", @"采购单号", typeof(string), 80, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("SupplierId", @"", typeof(string), 80, false)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("", @"供应商", typeof(string), 100, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemSkuList", @"商品sku", typeof(string), 100, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemNumList", @"数量", typeof(string), 100, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemPriceList", @"价格", typeof(string), 100, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ExtraFee", @"额外费用", typeof(string), 80, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("ShippingFee", @"运费", typeof(string), 60, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("TotalFee", @"总费用", typeof(string), 80, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("Comment", @"备注", typeof(string), 100, true)); this.pagedDgvSourcingNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("SourcingDate", @"日期", typeof(string), 100, true)); this.pagedDgvSourcingNote.DgvData.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.pagedDgvSourcingNote.DgvData.MultiSelect = true; this.pagedDgvSourcingNote.DgvData.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }
private void SetupDeliveryNoteDataGridViewColumns() { this.pagedDgvDeliveryNote.DgvData.AutoGenerateColumns = false; // DeliveryNoteId this.pagedDgvDeliveryNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("DeliveryNoteId", @"发货单号", typeof(string), 100, true)); // DeliveryDate this.pagedDgvDeliveryNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("DeliveryDate", @"发货日期", typeof(DateTime), 100, true)); // DeliveryOrderIds this.pagedDgvDeliveryNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("DeliveryOrderIds", @"发货订单", typeof(string), 100, true)); // DeliveryUser this.pagedDgvDeliveryNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("DeliveryUser", @"发货员", typeof(string), 100, true)); // DeliveryFee this.pagedDgvDeliveryNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("DeliveryFee", @"运费", typeof(double), 70, true)); // DeliveryExtraFee this.pagedDgvDeliveryNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("DeliveryExtraFee", @"其他运费", typeof(double), 100, true)); // DeliveryComment this.pagedDgvDeliveryNote.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("DeliveryComment", @"备注", typeof(string), 140, true)); this.pagedDgvDeliveryNote.DgvData.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.pagedDgvDeliveryNote.DgvData.MultiSelect = true; this.pagedDgvDeliveryNote.DgvData.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }
private void SetupSupplierDataGridViewColumns() { this.pagedDgvSupplier.DgvData.AutoGenerateColumns = false; // SupplierID this.pagedDgvSupplier.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("SupplierID", @"编号", typeof(string), 60, true)); // SupplierName this.pagedDgvSupplier.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("SupplierName", @"名称", typeof(string), 150, true)); // SupplierTel this.pagedDgvSupplier.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("SupplierTel", @"电话", typeof(string), 80, true)); // SupplierLink1 this.pagedDgvSupplier.DgvData.Columns.Add( DgvUtil.createDgvLinkColumn("SupplierLink1", @"网址1", typeof(string), 200, true)); // SupplierLink2 this.pagedDgvSupplier.DgvData.Columns.Add( DgvUtil.createDgvLinkColumn("SupplierLink2", @"网址2", typeof(string), 100, true)); // SupplierLink3 this.pagedDgvSupplier.DgvData.Columns.Add( DgvUtil.createDgvLinkColumn("SupplierLink3", @"网址3", typeof(string), 100, true)); // Comment this.pagedDgvSupplier.DgvData.Columns.Add( DgvUtil.createDgvTextBoxColumn("Comment", @"备注", typeof(string), 120, true)); this.pagedDgvSupplier.DgvData.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.pagedDgvSupplier.DgvData.MultiSelect = true; this.pagedDgvSupplier.DgvData.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }
// // Set up the datagridview columns manually, rather than letting them be generated // by columns defined in data source automatically. // Columns: // 0 - OrderId - invisible (for attaching the order id to a row) // 1 - OrderLineItemId - invisible // 2 - Transaction id. // 3 - SellerName // 4 - BuyerId // 5 - BuyerCountry // 6 - ItemSKU // 7 - ItemTitle // 8 - ItemPrice // 9 - SaleQuantity // 10 - TotalPrice // 11 - SaleDate // 12 - IsSellerLeftFeedback // 13 - IsBuyerLeftFeedback // 14 - ShippingService // 15 - TrackingNo private void SetupOrderDataGridViewColumns() { this.dataGridViewAllOrders.AutoGenerateColumns = false; this.dataGridViewAllOrders.AllowUserToAddRows = false; // this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvImageColumn("", "", 20, true)); // OrderId this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("OrderId", @"交易ID", typeof(string), 10, false)); // OrderLineItemId this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("OrderLineItemId", @"orderLineItemIdID", typeof(string), 10, false)); // Sale record id this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("TransactionId", @"#", typeof(string), 40, true)); // SellerId this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("SellerName", @"卖家", typeof(string), 60, true)); // BuyerId this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("BuyerId", @"买家", typeof(string), 80, true)); // BuyerCountry this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("BuyerCountry", @"买家国家", typeof(string), 80, true)); // ItemSKU this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemSKU", @"SKU", typeof(string), 50, true)); // ItemTitle this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemTitle", @"物品名称", typeof(string), 320, true)); // ItemPrice this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("ItemPrice", @"价格", typeof(double), 40, true)); // SaleQuantity this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("SaleQuantity", @"数量", typeof(int), 40, true)); // TotalPrice this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("TotalPrice", @"总价", typeof(double), 40, true)); // SaleDate this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("SaleDateCN", @"售出时间", typeof(DateTime), 100, true)); // IsSellerLeftFeedback this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvCheckBoxColumn("IsSellerLeftFeedback", @"卖家评", typeof(String), 50, true)); // IsBuyerLeftFeedback this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvCheckBoxColumn("IsBuyerLeftFeedback", @"买家评", typeof(String), 50, true)); // ShippingService this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("ShippingService", @"物流方式", typeof(string), 100, true)); // ShippingTrackingNo this.dataGridViewAllOrders.Columns.Add( DgvUtil.createDgvTextBoxColumn("ShippingTrackingNo", @"跟踪号", typeof(string), 70, true)); this.dataGridViewAllOrders.SelectionMode = DataGridViewSelectionMode.FullRowSelect; this.dataGridViewAllOrders.MultiSelect = true; this.dataGridViewAllOrders.RowPrePaint += new DataGridViewRowPrePaintEventHandler(dgv_RowPrePaint); }