private void DataBindBalanceStock() { if (this.ViewState["resource"] is DataTable) { DataTable dataTable = this.ViewState["resource"] as DataTable; if (dataTable.Rows.Count > 0) { this.lblTitalPurchase.Text = "采购单"; GridViewUtility.DataBind(this.gvwPurchaseplanStock, dataTable); string[] value = new string[] { dataTable.Compute("SUM(ThisTimeTotal)", string.Empty).ToString(), dataTable.Compute("SUM(AlreadyTotal)", string.Empty).ToString() }; int[] index = new int[] { 9, 11 }; this.AddTotalRow(value, index); return; } this.lblTitalPurchase.Text = ""; } }
private void DataBindPurchaseStock() { System.Collections.Generic.List <string> purchasePlanStock = this.GetPurchasePlanStock(); DataTable tableByPurchaseCodes = this.purchaseStock.GetTableByPurchaseCodes(purchasePlanStock.ToArray()); GridViewUtility.DataBind(this.gvwPurchaseStock, tableByPurchaseCodes); }
private void DataBindPurchase() { System.Collections.Generic.List <PurchaseModel> purchses = this.GetPurchses(); int currentPageIndex = this.AspNetPager1.CurrentPageIndex; this.AspNetPager1.RecordCount = purchses.Count; System.Collections.Generic.IEnumerable <PurchaseModel> source = purchses.Skip(this.AspNetPager1.PageSize * (currentPageIndex - 1)).Take(this.AspNetPager1.PageSize); GridViewUtility.DataBind <PurchaseModel>(this.gvwPurchase, source.ToList <PurchaseModel>()); }
protected void Bind_GVAllocationList() { AllocationBllAction allocationBllAction = new AllocationBllAction(); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(" flowstate!=-3 and flowstate=1 "); stringBuilder.Append(" and isouta=1 and InAllocationPerson='" + base.UserCode + "' "); stringBuilder.Append(" order by intime desc "); DataTable allocationList = allocationBllAction.GetAllocationList(stringBuilder.ToString()); GridViewUtility.DataBind(this.GVAllocationList, allocationList); }
private void DataBindPurchaseplanStock() { if (this.ViewState[Equ_Purchase_EquipmentPurchaseView.resourceDataSourceName] is DataTable) { DataTable dataTable = this.ViewState[Equ_Purchase_EquipmentPurchaseView.resourceDataSourceName] as DataTable; if (dataTable.Rows.Count > 0) { GridViewUtility.DataBind(this.gvwMaterialStock, dataTable); string total = Convert.ToDecimal(dataTable.Compute("SUM(Total)", string.Empty)).ToString("0.000"); GridViewUtility.AddTotalRow(this.gvwMaterialStock, total, 11); return; } this.gvwMaterialStock.DataSource = null; this.gvwMaterialStock.DataBind(); } }
private void DataBindPurchaseplanStock() { if (this.ViewState["resource"] is DataTable) { DataTable dataTable = this.ViewState["resource"] as DataTable; if (dataTable.Rows.Count > 0) { this.lblTitalPurchase.Text = "采购单"; GridViewUtility.DataBind(this.gvwPurchaseplanStock, dataTable); string total = System.Convert.ToDecimal(dataTable.Compute("SUM(Total)", string.Empty)).ToString("0.000"); GridViewUtility.AddTotalRow(this.gvwPurchaseplanStock, total, 8); return; } this.lblTitalPurchase.Text = ""; } }
private void DataBindStorage(DataTable dataSource) { GridViewUtility.DataBind(this.gvwStorage, dataSource); }
private void DataBindStorage(DataTable table) { GridViewUtility.DataBind(this.gvwStorage, table); }
private void DataBindPurchase(DataTable dataSource) { GridViewUtility.DataBind(this.gvwPurchase, dataSource); }
private void DataBindPurchase() { System.Collections.Generic.List <PurchaseModel> purchses = this.GetPurchses(); GridViewUtility.DataBind <PurchaseModel>(this.gvwPurchase, purchses); }
private void DataBindPurchaseplan(System.Collections.Generic.List <SmPurchaseplanModel> purchaseplanModels) { GridViewUtility.DataBind <SmPurchaseplanModel>(this.gvwPurchaseplan, purchaseplanModels); }
private void DataBindPurchaseplanStock() { DataTable resourceByPurchasePcodes = this.purchaseplanStock.GetResourceByPurchasePcodes(this.GetPurchasePlanStockList().ToArray()); GridViewUtility.DataBind(this.gvwPurchaseplanStock, resourceByPurchasePcodes); }
private void DataBindPurchaseplanStock(DataTable table) { GridViewUtility.DataBind(this.gvwPurchaseplanStock, table); }
protected void setDataSource(string procode) { DataTable tableWantPlan = this.wantPlan.getTableWantPlan(procode); GridViewUtility.DataBind(this.gvSm_Wantplan, tableWantPlan); }