1. 程式人生 > >FineUI grid列表拓展列

FineUI grid列表拓展列

clas ade dset borde form fin index body orm

<x:Grid runat="server" EnableCollapse="true" OnRowDoubleClick="RowDoubleClick" OnRowDataBound="wxgrid_OnRowDataBound"
                                        BodyStyle="background-color:#F0F9FE;border:1px solid #AAA;padding-bottom:5px"
                                        ID="grid_TJCX" ShowBorder="false" EnableRowDoubleClickEvent="True" ShowHeader="false">
                                        <%-- 註釋ForceFitAllTime="true"--%>
                                        <Columns>
                                            <x:TemplateField HeaderText="行號" Width="90px" TextAlign="Center">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="lblHH" Text=‘<%#Container.DataItemIndex + 1 %>‘></asp:Label>
                                                </ItemTemplate>
                                            </x:TemplateField>
                                            <%--  丁天亮 在1024*768分辨率下面顯示表頭不完整 修改對應的寬度 2014-07-12 V9.6.0--%>
                                            <x:BoundField HeaderText="日期" DataField="YJSYSJ" Width="80px" DataFormatString="{0:yyyy-MM-dd}" />
                                            <x:BoundField HeaderText="使用科室" DataField="KSMC" TextAlign="Center" />
                                            <x:BoundField HeaderText="名稱" DataField="SBMC" Width="100px" TextAlign="Center" />
                                            <x:BoundField HeaderText="規格" DataField="GGXH" Width="70px" TextAlign="Center" />
                                            <x:BoundField HeaderText="批號" DataField="PH" Width="80px" TextAlign="Center" />
                                            <x:BoundField HeaderText="有效期" DataField="YXQ" Width="155px" TextAlign="Center" />
                                            <x:BoundField HeaderText="單位" DataField="DW" Width="50px" />
                                            <x:BoundField HeaderText="生產企業" DataField="SCCJ" Width="70px" />
                                            <x:BoundField HeaderText="供應商" DataField="GYSMC" Width="105px" TextAlign="Center" />
                                            <x:BoundField HeaderText="註冊證件號" DataField="ZCZJH" Width="80px" />
                                            <%--  增加一欄 中標編號 字段 addby 張魁祥 2016-3-22--%>
                                            <x:BoundField HeaderText="中標編號" DataField="WSCGBH" Width="80px" />
                                            <x:BoundField HeaderText="滅菌批號" DataField="MJPH" Width="80px" />
                                            <x:BoundField HeaderText="條碼號" DataField="TMH" Width="120px" />
                                            <x:BoundField HeaderText="住院號" DataField="ZYH" Width="70px" />
                                            <x:BoundField HeaderText="患者姓名" DataField="HZXM" Width="105px" TextAlign="Center" />
                                            <%--  增加一欄 手術名稱 字段 addby 張魁祥 2016-10-21--%>
                                            <x:BoundField HeaderText="手術名稱" DataField="SSMC" Width="105px" TextAlign="Center" />
                                            <%--  增加一欄 主治醫師 字段 addby 張魁祥 2015-12-28--%>
                                            <x:BoundField HeaderText="主治醫師" DataField="ZZYS" Width="105px" TextAlign="Center" />
                                            <x:BoundField HeaderText="單價" DataField="CGDJ" Width="70px" />
                                            <x:BoundField HeaderText="是否手術" DataField="SFSS" Width="70px" />
                                            <x:BoundField HtmlEncode="false" HeaderText="查詢證照信息" DataField="ZJ_Info" Width="120px" />
                                            <x:TemplateField ColumnID="expander" RenderAsRowExpander="true">
                                                <ItemTemplate>
                                                    <fieldset style="">
                                                        <legend>詳細信息</legend>
                                                        <table border="0" cellpadding="1" cellspacing="1" width="780">
                                                            <tr>
                                                                <td>
                                                                    日期:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("YJSYSJ")%>
                                                                </td>
                                                                <td>
                                                                    科室名稱:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("KSMC")%>
                                                                </td>
                                                                <td>
                                                                    設備名稱:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("SBMC")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    規格:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("GGXH")%>
                                                                </td>
                                                                <td>
                                                                    批號:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("PH")%>
                                                                </td>
                                                                <td>
                                                                    有效期:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("YXQ")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    單位:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("DW")%>
                                                                </td>
                                                                <td>
                                                                    生產廠家:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("SCCJ")%>
                                                                </td>
                                                                <td>
                                                                    供應商名稱:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("GYSMC")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    註冊證件號:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("ZCZJH")%>
                                                                </td>
                                                                <td>
                                                                    中標編碼:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("WSCGBH")%>
                                                                </td>
                                                                <td>
                                                                    滅菌編號:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("MJPH")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    條碼號:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("TMH")%>
                                                                </td>
                                                                <td>
                                                                    住院號:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("ZYH")%>
                                                                </td>
                                                                <td>
                                                                    患者名稱:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("HZXM")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    手術名稱:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("SSMC")%>
                                                                </td>
                                                                <td>
                                                                    主治醫師:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("ZZYS")%>
                                                                </td>
                                                                <td>
                                                                    采購單價:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("CGDJ")%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    是否手術:
                                                                </td>
                                                                <td>
                                                                    <%# Eval("SFSS")%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </fieldset>
                                                </ItemTemplate>
                                            </x:TemplateField>
</Columns> </x:Grid>

  

FineUI grid列表拓展列