示例#1
0
 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 = "";
     }
 }
示例#2
0
    private void DataBindPurchaseStock()
    {
        System.Collections.Generic.List <string> purchasePlanStock = this.GetPurchasePlanStock();
        DataTable tableByPurchaseCodes = this.purchaseStock.GetTableByPurchaseCodes(purchasePlanStock.ToArray());

        GridViewUtility.DataBind(this.gvwPurchaseStock, tableByPurchaseCodes);
    }
示例#3
0
    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>());
    }
示例#4
0
    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);
    }
示例#5
0
 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 = "";
     }
 }
示例#7
0
 private void DataBindStorage(DataTable dataSource)
 {
     GridViewUtility.DataBind(this.gvwStorage, dataSource);
 }
示例#8
0
 private void DataBindStorage(DataTable table)
 {
     GridViewUtility.DataBind(this.gvwStorage, table);
 }
示例#9
0
 private void DataBindPurchase(DataTable dataSource)
 {
     GridViewUtility.DataBind(this.gvwPurchase, dataSource);
 }
示例#10
0
 private void DataBindPurchase()
 {
     System.Collections.Generic.List <PurchaseModel> purchses = this.GetPurchses();
     GridViewUtility.DataBind <PurchaseModel>(this.gvwPurchase, purchses);
 }
示例#11
0
 private void DataBindPurchaseplan(System.Collections.Generic.List <SmPurchaseplanModel> purchaseplanModels)
 {
     GridViewUtility.DataBind <SmPurchaseplanModel>(this.gvwPurchaseplan, purchaseplanModels);
 }
示例#12
0
    private void DataBindPurchaseplanStock()
    {
        DataTable resourceByPurchasePcodes = this.purchaseplanStock.GetResourceByPurchasePcodes(this.GetPurchasePlanStockList().ToArray());

        GridViewUtility.DataBind(this.gvwPurchaseplanStock, resourceByPurchasePcodes);
    }
示例#13
0
 private void DataBindPurchaseplanStock(DataTable table)
 {
     GridViewUtility.DataBind(this.gvwPurchaseplanStock, table);
 }
示例#14
0
    protected void setDataSource(string procode)
    {
        DataTable tableWantPlan = this.wantPlan.getTableWantPlan(procode);

        GridViewUtility.DataBind(this.gvSm_Wantplan, tableWantPlan);
    }