haoxr

JS

View Code
 <script type="text/javascript">
        var id;
        $(\'input\').live(\'click\',function(){ 
            id=$(\'input:checked\').val(); 
        });
       function doRebut(){
            //var id=$("input checked").val();
            var url="rebutpage.aspx?id="+id+"&name=project";
            <%=dlgedit.ClientID%>.setSize("500","300");
            <%=dlgedit.ClientID%>.setTitle("项目驳回");
            <%=dlgedit.ClientID%>.show(url);
            
            return false;
            }
        function rebutConfirm() {
            var count = getSelectedCount(document.getElementById(\'form1\'));
            if (count == 0) {
                alert("请选择要驳回的数据!");
                return false;
            }
            370324753
            if (count == 1) {
                doRebut();
                return false;
            }
            else {
                alert("驳回数据只能是一条!");
                return false;
            }
        }

         function closedialog(reload){
            <%=dlgedit.ClientID%>.hide();
            
            if(reload){
                //window.location.href=window.location.href;
                __doPostBack(\'btnsearch\',\'\');
            }
        }
    </script>

 <asp:Button ID="btnok" runat="server" Text="确  认" CssClass="button" Width="70px"
                            OnClientClick="return getCheckConfirm();" OnClick="btnok_Click1"/>
<asp:Button ID="btncancel" runat="server" Text="驳  回" CssClass="button" Width="70px"
                            OnClientClick="return rebutConfirm();"  />

分类:

技术点:

相关文章: