• Add columns and Update columns for datatable


    //Detail Table
      public static void AddColumns(ref DataTable table)
      {
       table.Columns.Add("BusinessType",typeof(string));
       table.Columns.Add("BusinessUnit",typeof(string));
       table.Columns.Add("SourceCode",typeof(string));
       table.Columns.Add("UserName",typeof(string));
       table.Columns.Add("SONO",typeof(string));
       table.Columns.Add("CustomerCode_Market",typeof(string));
       table.Columns.Add("Customer_Plantid",typeof(string));
       table.Columns.Add("InvoiceNo",typeof(string));
       table.Columns.Add("OCNO_PLNo",typeof(string));
       table.Columns.Add("ItemNo",typeof(string));   
       table.Columns.Add("PCS",typeof(string));
       table.Columns.Add("CTNS",typeof(string));
       table.Columns.Add("CBM",typeof(string));
       table.Columns.Add("KGS",typeof(string));
       table.Columns.Add("ClosingDate",typeof(string));
       table.Columns.Add("JobNO",typeof(string));
       table.Columns.Add("DestinationID",typeof(string));
       table.Columns.Add("Status",typeof(string));
       

      }

      public static void updColumns(ref DataTable table)
      {
       table.Columns.Add("BusinessType",typeof(string));
       table.Columns.Add("BusinessUnit",typeof(string));
       table.Columns.Add("SourceCode",typeof(string));
       table.Columns.Add("UserName",typeof(string));
       table.Columns.Add("SONO",typeof(string));
       table.Columns.Add("CustomerCode_Market",typeof(string));
       table.Columns.Add("Customer_Plantid",typeof(string));
       table.Columns.Add("InvoiceNo",typeof(string));
       table.Columns.Add("OCNO_PLNo",typeof(string));
       table.Columns.Add("ItemNo",typeof(string));   
       table.Columns.Add("PCS",typeof(string));
       table.Columns.Add("CTNS",typeof(string));
       table.Columns.Add("CBM",typeof(string));
       table.Columns.Add("KGS",typeof(string));
       table.Columns.Add("ClosingDate",typeof(string));
       table.Columns.Add("JobNO",typeof(string));
       table.Columns.Add("DestinationID",typeof(string));
       table.Columns.Add("FID",typeof(string));
       table.Columns.Add("Status",typeof(string));

      }

  • 相关阅读:
    代码点与代码单元
    IIS最大并发连接数
    PhoneGap:JS跨域请求
    字符串长度
    android学习笔记:adb更换端口后成功启动
    java学习笔记:eclipse的workspace和working set
    java学习笔记:Eclipse打开现有项目
    java学习笔记:文件名区分大小写
    mysql学习笔记:存储过程
    mySql学习笔记:比sql server书写要简单
  • 原文地址:https://www.cnblogs.com/zhangchenliang/p/1793379.html
Copyright © 2020-2023  润新知