注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Bioinformatics home

 
 
 

日志

 
 

GridView 套 GridView 2  

2009-01-09 17:54:06|  分类: 编程 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

<%@ Page Language="c#" CodeFile="ProjectStart.aspx.cs" AutoEventWireup="false" Inherits="_Project_ProjectStart" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>项目启动管理</title>
   

    <script language="javascript" src="../js/CommFunc.js"></script>

    <script language="javascript" src="../js/Calendar.js"></script>

    <script language="javascript" src="../js/CheckDataFunction.js"></script>

    <script language="javascript">
  function JumpDept()
  {
  var retValue;
  retValue =fnOpenModWinM("../js/modalWin.htm?page=../Customer/CustSearch.aspx","BillOfSellEdit2");
  if(retValue!=null)
  {
  var ary=retValue.split(",");
  document.all.tbcust.value=ary[1];
  //document.all.CustomerAE1_CutSector.value=ary[0];
  }
  }

    </script>

</head>
<body ms_positioning="GridLayout" topmargin="0" leftmargin="0">
    <form id="Form1" method="post" runat="server">
    <table cellspacing="2" cellpadding="3" width="100%" align="center" border="0">
        <tr>
            <td background="..\images\in.gif" height="34" colspan="2">
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td width="30">
                            <img height="34" src="..\images\left.gif" width="27">
                        </td>
                        <td>
                            <span class="STYLE1">&nbsp;
                                <asp:Label ID="Label1" runat="server">项目</asp:Label>管理 -&gt; 项目启动管理 </span>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="bottom" height="60" colspan="2">
                <table height="60" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="StyleTD">
                            &nbsp;客户名称:
                            <asp:TextBox ID="tbcust" runat="server" Width="70px"></asp:TextBox><img style="cursor: hand"
                                onclick="JumpDept()" src="../Images/IconSearch.gif" name="AreaSubmit2">
                            合同编号:
                            <asp:TextBox ID="tbContCoding" runat="server" Width="60px"></asp:TextBox>
                            时间段:
                            <asp:DropDownList ID="ddlDate" runat="server">
                                <asp:ListItem Value="1">起始段</asp:ListItem>
                                <asp:ListItem Value="2">结束段</asp:ListItem>
                            </asp:DropDownList>
                            <cc1:kCalendar ID="dpStartDate" runat="server"></cc1:kCalendar>
                            至
                            <cc1:kCalendar ID="dpEndDate" runat="server"></cc1:kCalendar>
                        </td>
                        <td>
                            <asp:ImageButton ID="Imagebutton1" runat="server" ImageUrl="../Images/btnQuery.GIF">
                            </asp:ImageButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                    DataSourceID="SqlDataSource1" AllowPaging="True" AllowSorting="True"
                    Width="1496px"   DataKeyNames="_XM项目表ID"
                    onrowdatabound="GridView1_RowDataBound"                   
                    onrowupdating="GridView1_RowUpdating1" onrowcommand="GridView1_RowCommand"
                    onrowediting="GridView1_RowEditing">
                    <Columns>  
                   
                      <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkItem" runat="server" />
                            </ItemTemplate>                         
                        </asp:TemplateField>
                     <asp:BoundField DataField="_XM项目表ID" Visible="false" />
                        <asp:BoundField DataField="CuCustomerID"  Visible="false" /> 
                            
                  
                       
                       
                 
                       
                        <asp:BoundField DataField="cuFullName" HeaderText="客户"
                            SortExpression="cuFullName" ReadOnly="true"  />
                           
                           <asp:BoundField DataField="EmpName" HeaderText="销售"
                            SortExpression="EmpName"   ReadOnly="true" />                             
                        <asp:BoundField DataField="reEmpName" HeaderText="项目负责人"
                            SortExpression="reEmpName"  ReadOnly="true" />
                        <asp:BoundField DataField="_T套餐名" HeaderText="套餐" SortExpression="_T套餐名"  ReadOnly="true" />
                        <asp:BoundField DataField="_Con合同号" HeaderText="合同号"
                            SortExpression="_Con合同号"  ReadOnly="true" />
                        <asp:BoundField DataField="_XM合同项目号" HeaderText="合同项目号"
                            SortExpression="_XM合同项目号" ReadOnly="true"  />
                        <asp:BoundField DataField="_Con合同确定日期" HeaderText="合同确定日期"
                            SortExpression="_Con合同确定日期" DataFormatString="{0:d}" ReadOnly="true"  />
                        <asp:BoundField DataField="_Con合同期限日期" HeaderText="合同期限日期"
                            SortExpression="_Con合同期限日期"  DataFormatString="{0:d}" ReadOnly="true" />
                     
            <asp:TemplateField HeaderText="客户提供原材料">
                       <ItemTemplate>                       
                         <asp:GridView ID="GridView2" rules="no" runat="server" AutoGenerateColumns="False"  SkinID="nocess"  Width="100%"
                    ShowHeader="false" 
                   DataKeyNames="_客户提供原材料ID"
                    onrowupdating="GridView2_RowUpdating"
                   onrowcommand="GridView2_RowCommand"
                    onrowediting="GridView2_RowEditing"
                      >
                         <Columns>                                                
                                <asp:BoundField DataField="_客户提供原材料ID"  Visible="false" ReadOnly="true"     /> 
                                                       
                            <asp:BoundField DataField="_原材料名称"  ReadOnly="true"  />
                           
                             <asp:TemplateField >
                                    <ItemTemplate>                                      
                                                                       
                                        <asp:DropDownList ID="_原材料状态" runat="server"
                                            SelectedValue='<%#Bind("_Y原材料状态")%>' AppendDataBoundItems="true">                                       
                                                <asp:ListItem   Value="" Text="选择"></asp:ListItem>
                                                <asp:ListItem   Value="1" Text="未到"></asp:ListItem>
                                                <asp:ListItem   Value="2" Text="到货未QC"></asp:ListItem>                                           
                                                <asp:ListItem   Value="3" Text="到货已QC"></asp:ListItem>                                           
                                                <asp:ListItem  Value="4" Text="到货但QC未通过"></asp:ListItem>                              
                                                
                                                                              
                                        </asp:DropDownList>                                    
                                  
                                    </ItemTemplate>
                                </asp:TemplateField>  
                           
                       <asp:TemplateField   ShowHeader="False">                      
                                     <ItemTemplate>
                                   
                                        <asp:LinkButton ID="LinkButton1" CommandArgument='<%#Container.DataItemIndex  %>' CommandName="Edit1"
                                            OnClientClick="return confirm('确认要更改状态吗?')" runat="server">更新</asp:LinkButton>
                                    </ItemTemplate>
                        </asp:TemplateField> 
                         <asp:BoundField DataField="_项目号"   ReadOnly="true" Visible="false"  />
                          </Columns>
                    </asp:GridView>
                      </ItemTemplate>
                      </asp:TemplateField>
                           
                         <asp:BoundField DataField="_XM原材料数量"  HeaderText="材料数量"
                            SortExpression="_XM原材料数量"   ReadOnly="true"  />                    
                       
                           
                        <asp:BoundField DataField="_Con合同状态" HeaderText="合同状态"
                            SortExpression="_Con合同状态"  ReadOnly="true" />
                        <asp:BoundField DataField="_XM项目预付款" HeaderText="_XM项目预付款"
                            SortExpression="_XM项目预付款"  ReadOnly="true" />
                        <asp:BoundField DataField="_Xm预付款状态" HeaderText="预付款状态"
                            SortExpression="_Xm预付款状态"  ReadOnly="true" />
                                       
                           
                           
                               <asp:TemplateField HeaderText="项目状态">
                                    <ItemTemplate>                                      
                                        <asp:Label ID="Label2" runat="server" Text='<%#Erp.PageTool._ProjectState(Eval("_XM项目状态").ToString()) %>'></asp:Label>                                   
                                    </ItemTemplate>
                                   
                                       <EditItemTemplate>                                      
                                        <asp:DropDownList ID="_状态" runat="server"
                                            SelectedValue='<%#Bind("_XM项目状态")%>' AppendDataBoundItems="true">
                                       
                                                <asp:ListItem   Value="" Text="选择"></asp:ListItem>
                                                <asp:ListItem   Value="0" Text="需求分配中"></asp:ListItem>
                                                <asp:ListItem   Value="1" Text="计划执行中"></asp:ListItem>                                           
                                                <asp:ListItem   Value="2" Text="等待客户确认技术路线"></asp:ListItem>                                           
                                                <asp:ListItem  Value="3" Text="项目取消"></asp:ListItem>                                           
                                                <asp:ListItem  Value="4" Text="确认转至销售制定合同中"></asp:ListItem>
                                                <asp:ListItem   Value="5" Text="等待客户确认商务合同"></asp:ListItem>
                                                <asp:ListItem   Value="6" Text="合同归档"></asp:ListItem>
                                                <asp:ListItem   Value="7" Text="项目起始"></asp:ListItem> 
                                                <asp:ListItem   Value="8" Text="客户暂停项目"></asp:ListItem>
                                                <asp:ListItem   Value="9" Text="项目完成"></asp:ListItem> 
                                                <asp:ListItem   Value="10" Text="项目失败"></asp:ListItem> 
                                                                              
                                        </asp:DropDownList>                                    
                                    </EditItemTemplate>
                                </asp:TemplateField>      
                           
                           
                           
                           

                         <asp:BoundField DataField="_XM项目ID" HeaderText="项目号"
                            SortExpression="_XM项目ID"  ReadOnly="true" />
                           
                           
                        <asp:BoundField DataField="_XM项目起始日" HeaderText="项目起始日"
                            SortExpression="_XM项目起始日" DataFormatString="{0:d}"  ReadOnly="true" />
                           
                           
                              <asp:TemplateField HeaderText="操作" ShowHeader="False">
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                 Text="更新"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                Text="取消"></asp:LinkButton>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                                Text="更改项目状态" OnClientClick="return confirm('确认更改项目状态吗?');"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>


                       
                    </Columns>
                </asp:GridView>
            </td>
         
        </tr>
        <tr>
       
       
        <td>
            原材料类型:
     <asp:DropDownList  id="MaterialType" runat="server">
         <asp:ListItem Value="多肽">多肽</asp:ListItem>
         <asp:ListItem Value="蛋白">蛋白</asp:ListItem>
         <asp:ListItem Value="质粒">质粒</asp:ListItem>
         <asp:ListItem Value="其他">其他</asp:ListItem>
            </asp:DropDownList>
       
        原材料名称:<asp:TextBox ID="MaterialName" runat="server"></asp:TextBox>
        &nbsp;&nbsp;
        备注:<asp:TextBox ID="MaterialMemo" runat="server" Height="23px" Width="207px"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="添加" Height="23px"
                onclick="Button1_Click" Width="92px" />
        <br>
           
       
       
       
        </td>
        </tr>
    </table>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ybConnectionString %>"
       SelectCommand="SELECT CuCustomerID, cuFullName,_XM原材料数量,EmpName, reEmpName, _T套餐名, _Con合同号, _XM合同项目号, _Con合同确定日期, _Con合同期限日期, _Con合同状态, _Xm项目预付款, _Xm预付款状态, _XM项目状态, _XM项目ID, _XM项目起始日, _XM项目表ID FROM _X_ProNeedCuSaRe"
        UpdateCommand="update "></asp:SqlDataSource>
   
    &nbsp;

      </form>
</body>
</html>

  评论这张
 
阅读(476)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017