![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:datagrid id ="dgdPrintPackingData" runat ="server" Visible ="False" Width ="100%" BorderColor ="#336666" BorderStyle ="Double" BorderWidth ="3px" BackColor ="White" CellPadding ="4" AutoGenerateColumns ="False" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< SelectedItemStyle Font-Bold ="True" ForeColor ="White" ></ SelectedItemStyle >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemStyle Font-Size ="10pt" ForeColor ="#333333" BackColor ="White" ></ ItemStyle >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< HeaderStyle Font-Size ="10pt" Font-Bold ="True" ForeColor ="#004040" BorderColor ="White" BackColor ="White" ></ HeaderStyle >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< FooterStyle ForeColor ="#333333" BackColor ="White" ></ FooterStyle >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< Columns >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateColumn HeaderText ="Select" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< HeaderTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< FONT face ="宋体" > All
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox id ="ckbSelectAll" OnCheckedChanged ="cbkAllEdit_CheckedChanged" runat ="server" ></ asp:CheckBox ></ FONT >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ HeaderTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< FONT face ="宋体" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:CheckBox id ="ckbSelect" runat ="server" ></ asp:CheckBox ></ FONT >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:EditCommandColumn ButtonType ="LinkButton" UpdateText ="更新" HeaderText ="编辑" CancelText ="取消" EditText ="<img runat="server" id="imgEidt" src="../../images/edit.gif" border="0"/>" ></ asp:EditCommandColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn Visible ="False" DataField ="id" ReadOnly ="True" HeaderText ="编号" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn Visible ="False" DataField ="org" ReadOnly ="True" HeaderText ="Org" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn Visible ="False" DataField ="packing_seq" ReadOnly ="True" HeaderText ="Packing Seq" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="ship_to" ReadOnly ="True" HeaderText ="Ship To" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="shipping_seq" ReadOnly ="True" HeaderText ="Seq" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="freight_term" ReadOnly ="True" HeaderText ="Freight" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="customer_name" ReadOnly ="True" HeaderText ="Customer Name" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="last_update_date" ReadOnly ="True" HeaderText ="Time" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="last_update_by" ReadOnly ="True" HeaderText ="User" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="part_no" ReadOnly ="True" HeaderText ="Part NO." ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="qty" ReadOnly ="True" HeaderText ="Qty" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:BoundColumn DataField ="grade" ReadOnly ="True" HeaderText ="Grade" ></ asp:BoundColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateColumn HeaderText ="Pallet Qty" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< FONT face ="宋体" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Label id ="lblPalletQty" runat ="server" Text ='<%# DataBinder.Eval(Container, "DataItem.pallet_qty") % > '>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:Label >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox Visible ="False" id ="txtPalletQty" runat ="server" Text ='<%# DataBinder.Eval(Container, "DataItem.pallet_qty") % > '>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ FONT >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateColumn HeaderText ="L*W*H" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< FONT face ="宋体" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Label id ="lblLwh" runat ="server" Text ='<%# DataBinder.Eval(Container, "DataItem.lwh") % > '>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:Label >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox Visible ="False" id ="txtLwh" Text ='<%# DataBinder.Eval(Container, "DataItem.lwh") % > ' runat="server">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ FONT >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateColumn HeaderText ="Weight" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< FONT face ="宋体" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Label id ="lblWeight" Text ='<%# DataBinder.Eval(Container, "DataItem.weight") % > ' runat="server">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:Label >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox Visible ="False" id ="txtWeight" Text ='<%# DataBinder.Eval(Container, "DataItem.weight") % > ' runat="server">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ FONT >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TemplateColumn HeaderText ="Spl Pack Remark" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< FONT face ="宋体" >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:Label id ="lblRemark" Text ='<%# DataBinder.Eval(Container, "DataItem.remark") % > ' runat="server">
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:Label >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< asp:TextBox Visible ="False" id ="txtRemark" runat ="server" Text ='<%# DataBinder.Eval(Container, "DataItem.remark") % > '>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TextBox >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ FONT >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ ItemTemplate >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:TemplateColumn >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ Columns >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
< PagerStyle Font-Size ="10pt" HorizontalAlign ="Center" ForeColor ="White" BackColor ="#336666"
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
Mode ="NumericPages" ></ PagerStyle >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</ asp:datagrid >
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
BindData() #region BindData()
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
private void BindData(string strOrg,string strBU,string dtScheduleDate)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(this.validate())
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(strOrg.Length==0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ShowMessage.alertMessage("必须选择ERP Org",this.Page);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
return;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(strBU.Length==0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
ShowMessage.alertMessage("必须选择BU",this.Page);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
return;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
定义#region 定义
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//vss表数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
DataTable vssdt=new DataTable();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//新表
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
DataTable myDataTable=new DataTable();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//vpcc表数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
DataTable vpcdt=new DataTable();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//vwmp表数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
DataTable vwmdt=new DataTable();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
vssdt=vssh.objects.user.WH_Operation.Get_MainTainPackingInformation_vss_Data(strOrg,strBU,dtScheduleDate,oraConn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
#endregion
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
增加列#region 增加列
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
DataColumn myDataColumn;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//编号
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn= new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "id";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Org
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn= new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "org";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Ship_To
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "ship_to";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//SEQ
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "shipping_seq";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Freight
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "freight_term";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Customer Name
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "customer_name";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Part NO
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "part_no";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Grade
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "grade";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Packing_Seq
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.Int64");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "packing_seq";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Qty
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.Int32");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "qty";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Pallet Qty
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "pallet_qty";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//LWH
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "lwh";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Weight
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "weight";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//Remark
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "remark";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//LastUpdateBy
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "last_update_by";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//LastUpdateDate
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn = new DataColumn();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.DataType = System.Type.GetType("System.String");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataColumn.ColumnName = "last_update_date";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Columns.Add(myDataColumn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
#endregion
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
增加行#region 增加行
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.Data.DataRow dr;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(int i=0;i<vssdt.Rows.Count;i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
string a=vssdt.Rows[i]["packing_seq"].ToString();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//有packing_seq
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(vssdt.Rows[i]["packing_seq"]!=DBNull.Value && vssdt.Rows[i]["packing_seq"].ToString().Length!=0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
vwmdt=vssh.objects.user.WH_Operation.Get_MainTainPackingInformation_vwmp_Data(long.Parse(vssdt.Rows[i]["packing_seq"].ToString()),oraConn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(int j=0;j<vwmdt.Rows.Count;j++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr=myDataTable.NewRow();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["id"]=vssdt.Rows[i]["plan_id"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["org"]=vssdt.Rows[i]["org"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["ship_to"]=vssdt.Rows[i]["ship_to"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["shipping_seq"]=vssdt.Rows[i]["shipping_seq"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["freight_term"]=vssdt.Rows[i]["freight_term"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["customer_name"]=vssdt.Rows[i]["customer_name"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["part_no"]=vssdt.Rows[i]["part_no"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["grade"]=vssdt.Rows[i]["grade"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["packing_seq"]=vssdt.Rows[i]["packing_seq"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["qty"]=vssdt.Rows[i]["qty"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["pallet_qty"]=vwmdt.Rows[j]["pallet_qty"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["lwh"]=vwmdt.Rows[j]["lwh"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["weight"]=vwmdt.Rows[j]["weight"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["remark"]=vwmdt.Rows[j]["remark"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_by"]=vwmdt.Rows[j]["last_upeate_by"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_date"]=vwmdt.Rows[j]["last_update_date"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Rows.Add(dr);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//没有packing_seq,sum(qty)大于0
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else if(vssdt.Rows[i]["qty"]!=DBNull.Value && int.Parse(vssdt.Rows[i]["qty"].ToString())>0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr=myDataTable.NewRow();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["id"]=vssdt.Rows[i]["plan_id"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["org"]=vssdt.Rows[i]["org"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["ship_to"]=vssdt.Rows[i]["ship_to"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["shipping_seq"]=vssdt.Rows[i]["shipping_seq"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["freight_term"]=vssdt.Rows[i]["freight_term"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["customer_name"]=vssdt.Rows[i]["customer_name"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["part_no"]=vssdt.Rows[i]["part_no"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["grade"]=vssdt.Rows[i]["grade"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["packing_seq"]=vssdt.Rows[i]["packing_seq"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["qty"]=vssdt.Rows[i]["qty"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
vpcdt=vssh.objects.user.WH_Operation.Get_MainTainPackingInformation_vpcc_Data(vssdt.Rows[i]["org"].ToString(),vssdt.Rows[i]["part_no"].ToString(),vssdt.Rows[i]["freight_term"].ToString(),oraConn);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//vpcc表是否有数据
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(vpcdt.Rows.Count>0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
int qtysum=int.Parse(vssdt.Rows[i]["qty"].ToString());
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
int qtycon=int.Parse(vpcdt.Rows[0]["pallet_panel_qty"].ToString());
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
int qtym=qtysum%qtycon;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
int qtyz=qtysum/qtycon;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(qtym ==0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["pallet_qty"]=qtyz.ToString()+"*"+vpcdt.Rows[0]["pallet_panel_qty"].ToString();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["lwh"]=vpcdt.Rows[0]["lwh"].ToString();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["weight"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["remark"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_by"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_date"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Rows.Add(dr);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["pallet_qty"]="1*"+qtym.ToString();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["lwh"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["weight"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["remark"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_by"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_date"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Rows.Add(dr);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["pallet_qty"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["lwh"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["weight"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["remark"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_by"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_date"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Rows.Add(dr);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
//没有packing_seq,sum(qty)为0
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr=myDataTable.NewRow();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["id"]=vssdt.Rows[i]["plan_id"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["org"]=vssdt.Rows[i]["org"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["ship_to"]=vssdt.Rows[i]["ship_to"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["shipping_seq"]=vssdt.Rows[i]["shipping_seq"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["freight_term"]=vssdt.Rows[i]["freight_term"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["customer_name"]=vssdt.Rows[i]["customer_name"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["part_no"]=vssdt.Rows[i]["part_no"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["grade"]=vssdt.Rows[i]["grade"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["packing_seq"]=vssdt.Rows[i]["packing_seq"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["qty"]=vssdt.Rows[i]["qty"];
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["pallet_qty"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["lwh"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["weight"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["remark"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_by"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
dr["last_update_date"]="";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
myDataTable.Rows.Add(dr);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
int fd=myDataTable.Rows.Count;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
#endregion
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
DataGird 显示#region DataGird 显示
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(myDataTable.Rows.Count!=0)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.pnlPringPacking.Visible=true;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.dgdPrintPackingData.Visible=true;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.lblnodata.Visible=false;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.dgdPrintPackingData.DataSource=myDataTable;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.dgdPrintPackingData.DataBind();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
else
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.dgdPrintPackingData.Visible=false;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.lblnodata.Visible=true;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(int i=1;i<dgdPrintPackingData.Items.Count;i++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
if(this.dgdPrintPackingData.Items[i].Cells[2].Text.Trim()==this.dgdPrintPackingData.Items[i-1].Cells[2].Text.Trim())
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
for(int j=0;j<14;j++)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.dgdPrintPackingData.Items[i-1].Cells[j].RowSpan=2;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.dgdPrintPackingData.Items[i].Cells[j].Visible=false;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
this.dgdPrintPackingData.Columns[2].Visible=false;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
#endregion
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
#endregion