<%@ Page Title="" Language="C#" MasterPageFile="~/helpdesk/Pc.master" AutoEventWireup="true" CodeBehind="Pc_AddEditSoftware.aspx.cs" Inherits="helpdesk.helpdesk.Pc_AddEditSoftware" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">


        


    <div>
    
     
          




<div id=sm>添加或者修改软件</div>


  <div   class=content >
 
 <asp:Panel runat="server" ID="pnl_detail">


      
      <table class="table table-hover">
        <tbody>
           
           <tr >     
     
          <th width="15%"  >  软件名称  </th>
       
          <td width="35%">
              <asp:TextBox ID="txt_softwarename" runat="server"  CssClass="form-control" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txt_softwarename" runat="server" ErrorMessage="必须输入软件名称" Display="Dynamic"></asp:RequiredFieldValidator>  
           
          </td>
        
          
          
          
              
                
         <th  width="15%">软件供应商</th>
          <td width="35%"> 
             
               <asp:TextBox ID="txt_manufacturer"  CssClass="form-control"  runat="server"  ></asp:TextBox>
               
             </td>
             </tr>
           
            
          
          
          
      <tr>     
              
              
          <th >软件序列号</th>
          <td >
                <asp:TextBox ID="txt_serialno"  CssClass="form-control"  runat="server"></asp:TextBox>
           </td>
           
             
         <th   >软件类别  （ <a target="_blank" href="pcparam.aspx?types=softtype"><i class="glyphicon glyphicon-plus"></i></a> ）
         
         </th>
          <td > 
              <asp:DropDownList ID="ddl_types"  CssClass="form-control"  runat="server">
             
              </asp:DropDownList>
             
            </td>
            
           
     
          </tr>
          
          
          
           
            
       
           
           
          
               

          


              <tr>      
         <th >所属组织:</th>
          <td > 
             
              <asp:TextBox ID="txt_belongto" runat="server"  CssClass="form-control"    ></asp:TextBox>
              
            </td>
            
     
          <th >使用部门</th>
          <td  >
                <asp:TextBox ID="txt_dept" runat="server"  CssClass="form-control"    ></asp:TextBox>
          
           </td>
          </tr>












            <tr>
                 <td colspan="4"  style="border:0px; background-color:#e0e0e0; height:10px;" ></td>


            </tr>




               <tr>      
         <th >软件版本:</th>
          <td > 
             
              <asp:TextBox ID="txt_version" runat="server"  CssClass="form-control"    ></asp:TextBox>
              
            </td>
            
     
          <th >限制用户数</th>
          <td  >
                <asp:TextBox ID="txt_limitedusers" runat="server"  CssClass="form-control"    ></asp:TextBox>
          
           </td>
          </tr>



                <tr >     
                
         <th >购买时间:</th>
          <td > 
             
              <asp:TextBox ID="dt_buydate" runat="server"  CssClass="form-control"  onClick="laydate()"  ></asp:TextBox>
              
            </td>
            
     
          <th >技术支持到期日</th>
          <td  >
                <asp:TextBox ID="dt_expiredate" runat="server"  CssClass="form-control"  onClick="laydate()"    ></asp:TextBox>
          
           </td>
          </tr>
          
           


      

                
         <tr>      
         <th >技术联系人:</th>
          <td > 
             
              <asp:TextBox ID="txt_contactname" runat="server"  CssClass="form-control"    ></asp:TextBox>
              
            </td>
            
     
          <th >技术联系电话</th>
          <td  >
                <asp:TextBox ID="txt_contacttel" runat="server"  CssClass="form-control"    ></asp:TextBox>
          
           </td>
          </tr>



            
         <tr>      
         <th >软件价格:</th>
          <td > 
             
              <asp:TextBox ID="txt_price" runat="server"  CssClass="form-control"    ></asp:TextBox>
              
            </td>
            
     
          <th >编程语言
              （ <a target="_blank" href="pcparam.aspx?types=lng"><i class="glyphicon glyphicon-plus"></i></a> ）

          </th>
          <td  >
              <asp:CheckBoxList runat="server" ID="cbl_lng" Width="99%" RepeatDirection="Horizontal"  RepeatColumns="5">
                  
                  
              </asp:CheckBoxList>
          
           </td>
          </tr>










                 
         <tr>      
         <th >支持操作系统:

             （ <a target="_blank" href="pcparam.aspx?types=os"><i class="glyphicon glyphicon-plus"></i></a> ）
         </th>
          <td > 
             
              <asp:CheckBoxList runat="server" ID="cbl_os" Width="99%"  RepeatColumns="4" RepeatDirection="Horizontal">
                   
                 
                  
              </asp:CheckBoxList>
              
            </td>
            
     
          <th >数据库 （ <a target="_blank" href="pcparam.aspx?types=db"><i class="glyphicon glyphicon-plus"></i></a> ）</th>
          <td  >
              <asp:CheckBoxList runat="server" ID="cbl_db" Width="99%"  RepeatDirection="Horizontal" RepeatColumns="4">
                 
              
                  
              </asp:CheckBoxList>
          
           </td>
          </tr>








 
          
          <tr>

              <th>备注<br />

                <span style="color:gray">  可填写软件运行环境<br />合同说明，官网等信息

                    </span>
              </th>

              <td colspan="3">

  <asp:TextBox runat="server" Width="90%" CssClass="form-control" Height="60px" TextMode="MultiLine" ID="txt_notes"></asp:TextBox>
      

              </td>

          </tr>
        
          
</tbody>
</table>
        
        </asp:Panel> 
           
        <div style="width:90%; text-align:center">

            
                        <asp:Button ID="btn_add" runat="server" class="btn btn-flat btn-sm btn-primary" OnClick="softadd_Click"   Text="添加软件" />
           
               
                   
                      <asp:Button ID="btn_update" runat="server" class="btn btn-flat btn-sm btn-primary "  onclick="updated_Click" Text="更新" />
                         <asp:Button ID="btn_del" runat="server"
                              OnClientClick="return confirm('确定删除吗？'); "
                             
                              class="btn btn-flat btn-sm  btn-danger"  onclick="del_Click" Text="删除" />
          
            <a href="Pc_ListSoft.aspx"  class="btn btn-flat btn-sm  btn-success">返回</a>
        </div>  


    </div>


    </div>

</asp:Content>
