<commit_before><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page import="java.util.*"%>
<%@ page import="edu.wustl.common.beans.NameValueBean"%> 

<%@ page import="edu.wustl.catissuecore.actionForm.ShoppingCartForm"%>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>

<%@ page import="edu.wustl.catissuecore.util.global.AppUtility"%>
<%@ page import="edu.wustl.catissuecore.util.global.Variables"%>
<%@ page import="edu.wustl.catissuecore.actionForm.AdvanceSearchForm"%>

<%@ include file="/pages/content/common/AutocompleterCommon.jsp" %> 
<link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxgrid.css"/>
<link href="css/catissue_suite.css" rel="stylesheet" type="text/css" />
<link href="css/catissue_suite.css" rel="stylesheet" type="text/css" /> 
<script language="JavaScript"  type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxcommon.js"></script>
<script  language="JavaScript" type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
<script src="dhtmlxSuite_v35/dhtmlxCombo/codebase/dhtmlxcombo.js"></script>
<script src="dhtmlxSuite_v35/dhtmlxDataView/codebase/connector/connector.js"></script>

<link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_validation.js">
<script src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_validation.js" type="text/javascript" charset="utf-8"></script>
<script   language="JavaScript" type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
<script  language="JavaScript" type="text/javascript"  src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_srnd.js"></script>
    <script type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_filter.js"></script>
    <script type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn.js"></script>
    <link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn_bricks.css">
    <link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxCombo/codebase/dhtmlxcombo.css">
    <link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<script type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/excells/dhtmlxgrid_excell_combo.js"></script>
<script src="jss/script.js"></script>
<script type="text/javascript" src="jss/tag-popup.js"></script>
<link rel="stylesheet" type="text/css" href="css/advQuery/tag-popup.css" />
<script src="dhtmlxSuite_v35/dhtmlxTreeGrid/codebase/dhtmlxtreegrid.js"></script>  

<style>
.active-column-0 {width:30px}
.active-column-4 {width:150px}
.active-column-6 {width:150px}
</style>
<%
    AdvanceSearchForm form = (AdvanceSearchForm)request.getAttribute("advanceSearchForm");  
    String checkAllPages = (String)session.getAttribute("checkAllPages");
    String pageOf = (String)request.getAttribute(Constants.PAGE_OF);
    String isSpecimenIdPresent = (String)request.getAttribute(Constants.IS_SPECIMENID_PRESENT);
    String isContainerPresent=(String)request.getAttribute(Constants.IS_CONTAINER_PRESENT);
    
    if(isSpecimenIdPresent==null)
     isSpecimenIdPresent = "";
     
    if(isContainerPresent==null)
     isContainerPresent = "";
    
    String isSpecimenArrayPresent = (String)request.getAttribute(Constants.IS_SPECIMENARRAY_PRESENT);
    
    String disabled = "";
    boolean disabledList = false;
    if(isSpecimenArrayPresent!= null && isSpecimenArrayPresent.equals("true"))
    {
        disabled = "DISABLED";
        disabledList = true;
    }
    
    String disabledOrder = "";
    String disabledShipping="";
    
    boolean disabledButton = false;
    if(isSpecimenIdPresent.equals("false"))
    {
        disabled = "DISABLED";
        disabledList = true;
        disabledButton = true;
        disabledOrder = "DISABLED";
        disabledShipping="DISABLED";
    }
    
    if(isContainerPresent.equals("true"))
    {
        disabledButton = false;
        disabledShipping="";
    }
    
    if(disabledOrder=="DISABLED" && disabledShipping=="DISABLED")
    {
        disabledButton = true;
    }

    
%>
<head>
<script language="javascript">
function deleteList()
{
    var flag = confirm("Are you sure you want to delete the selected item(s)?");
                if(flag)
                {
                    request = newXMLHTTPReq();          
                    var actionURL;
                    var handlerFunction = getReadyStateHandler(request,onResponseSet,true); 
                    request.onreadystatechange = handlerFunction;   

                    actionURL = "specListId="+ document.getElementById('tagName').value;
                    var url = "CatissueCommonAjaxAction.do?type=deleteSpecimenList";
                    <!-- Open connection to servlet -->
                    request.open("POST",url,true);  
                    request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");   
                    request.send(actionURL);
                }
    }

    function onResponseSet(response) 
    {
        document.forms[0].action="ViewSpecimenList.do?operation=view";
        document.forms[0].submit();
    }
function reloadGrid(obj)
{
//alert(obj.value);

    mygrid.clearAll(); 
    mygrid.loadXML("LoadGridServlet?reqParam="+obj.value);  
}
function updateHiddenFields()
    {
        var isCreateRequestShipment = document.forms[0].chkName[3].checked || document.forms[0].chkName[4].checked;
               var isChecked = "false";
        var checkedRows = mygrid.getCheckedRows(0);
//alert(checkedRows);
        if(checkedRows.length > 0)
        {
            isChecked = "true";
            var cb = checkedRows.split(",");
    //      alert("cb.size()   "+cb.size());
            rowCount = mygrid.getRowsNum();
            var specIds="";
            for(i=0;i<cb.size();i++)
            {
            //alert(cb[i]+"   cb[i]");
                
                                if(isCreateRequestShipment == true)
                               {
                                 var cl = mygrid.cells(cb[i],10).getValue();  
                   }
                               else
                               {
                                  var cl = mygrid.cells(cb[i],9).getValue();
                               } 
                               //alert(specIds);
                if(specIds.length >0)
                specIds = specIds+","+cl;
                
                else
                specIds = cl;
                
            }
            document.forms[0].orderedString.value=specIds;
        }<commit_msg>OPSMN-1504: Specimen Identifier gets autopopulated on shipment page instead of label<commit_after><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page import="java.util.*"%>
<%@ page import="edu.wustl.common.beans.NameValueBean"%> 

<%@ page import="edu.wustl.catissuecore.actionForm.ShoppingCartForm"%>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>

<%@ page import="edu.wustl.catissuecore.util.global.AppUtility"%>
<%@ page import="edu.wustl.catissuecore.util.global.Variables"%>
<%@ page import="edu.wustl.catissuecore.actionForm.AdvanceSearchForm"%>

<%@ include file="/pages/content/common/AutocompleterCommon.jsp" %> 
<link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxgrid.css"/>
<link href="css/catissue_suite.css" rel="stylesheet" type="text/css" />
<link href="css/catissue_suite.css" rel="stylesheet" type="text/css" /> 
<script language="JavaScript"  type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxcommon.js"></script>
<script  language="JavaScript" type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
<script src="dhtmlxSuite_v35/dhtmlxCombo/codebase/dhtmlxcombo.js"></script>
<script src="dhtmlxSuite_v35/dhtmlxDataView/codebase/connector/connector.js"></script>

<link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_validation.js">
<script src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_validation.js" type="text/javascript" charset="utf-8"></script>
<script   language="JavaScript" type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>
<script  language="JavaScript" type="text/javascript"  src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_srnd.js"></script>
    <script type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_filter.js"></script>
    <script type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn.js"></script>
    <link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/ext/dhtmlxgrid_pgn_bricks.css">
    <link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxCombo/codebase/dhtmlxcombo.css">
    <link rel="STYLESHEET" type="text/css" href="dhtmlxSuite_v35/dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<script type="text/javascript" src="dhtmlxSuite_v35/dhtmlxGrid/codebase/excells/dhtmlxgrid_excell_combo.js"></script>
<script src="jss/script.js"></script>
<script type="text/javascript" src="jss/tag-popup.js"></script>
<link rel="stylesheet" type="text/css" href="css/advQuery/tag-popup.css" />
<script src="dhtmlxSuite_v35/dhtmlxTreeGrid/codebase/dhtmlxtreegrid.js"></script>  

<style>
.active-column-0 {width:30px}
.active-column-4 {width:150px}
.active-column-6 {width:150px}
</style>
<%
    AdvanceSearchForm form = (AdvanceSearchForm)request.getAttribute("advanceSearchForm");  
    String checkAllPages = (String)session.getAttribute("checkAllPages");
    String pageOf = (String)request.getAttribute(Constants.PAGE_OF);
    String isSpecimenIdPresent = (String)request.getAttribute(Constants.IS_SPECIMENID_PRESENT);
    String isContainerPresent=(String)request.getAttribute(Constants.IS_CONTAINER_PRESENT);
    
    if(isSpecimenIdPresent==null)
     isSpecimenIdPresent = "";
     
    if(isContainerPresent==null)
     isContainerPresent = "";
    
    String isSpecimenArrayPresent = (String)request.getAttribute(Constants.IS_SPECIMENARRAY_PRESENT);
    
    String disabled = "";
    boolean disabledList = false;
    if(isSpecimenArrayPresent!= null && isSpecimenArrayPresent.equals("true"))
    {
        disabled = "DISABLED";
        disabledList = true;
    }
    
    String disabledOrder = "";
    String disabledShipping="";
    
    boolean disabledButton = false;
    if(isSpecimenIdPresent.equals("false"))
    {
        disabled = "DISABLED";
        disabledList = true;
        disabledButton = true;
        disabledOrder = "DISABLED";
        disabledShipping="DISABLED";
    }
    
    if(isContainerPresent.equals("true"))
    {
        disabledButton = false;
        disabledShipping="";
    }
    
    if(disabledOrder=="DISABLED" && disabledShipping=="DISABLED")
    {
        disabledButton = true;
    }

    
%>
<head>
<script language="javascript">
function deleteList()
{
    var flag = confirm("Are you sure you want to delete the selected item(s)?");
                if(flag)
                {
                    request = newXMLHTTPReq();          
                    var actionURL;
                    var handlerFunction = getReadyStateHandler(request,onResponseSet,true); 
                    request.onreadystatechange = handlerFunction;   

                    actionURL = "specListId="+ document.getElementById('tagName').value;
                    var url = "CatissueCommonAjaxAction.do?type=deleteSpecimenList";
                    <!-- Open connection to servlet -->
                    request.open("POST",url,true);  
                    request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");   
                    request.send(actionURL);
                }
    }

    function onResponseSet(response) 
    {
        document.forms[0].action="ViewSpecimenList.do?operation=view";
        document.forms[0].submit();
    }
function reloadGrid(obj)
{
//alert(obj.value);

    mygrid.clearAll(); 
    mygrid.loadXML("LoadGridServlet?reqParam="+obj.value);  
}
function updateHiddenFields()
    {
        var isCreateRequestShipment = document.forms[0].chkName[4].checked || document.forms[0].chkName[5].checked || document.forms[0].chkName[3].checked;
               var isChecked = "false";
        var checkedRows = mygrid.getCheckedRows(0);
//alert(checkedRows);

        if(checkedRows.length > 0)
        {
            isChecked = "true";
            var cb = checkedRows.split(",");
    //      alert("cb.size()   "+cb.size());
            rowCount = mygrid.getRowsNum();
            var specIds="";
            for(i=0;i<cb.size();i++)
            {
            //alert(cb[i]+"   cb[i]");
                
                                if(isCreateRequestShipment == true)
                               {
                                 var cl = mygrid.cells(cb[i],10).getValue();  
                   }
                               else
                               {
                                  var cl = mygrid.cells(cb[i],9).getValue();
                               } 
                               //alert(specIds);
                if(specIds.length >0)
                specIds = specIds+","+cl;
                
                else
                specIds = cl;
                
            }
            document.forms[0].orderedString.value=specIds;
        }
{'fraction_non_alphanumeric': 0.14114832535885166, 'fraction_numerical': 0.008844425112367696, 'mean_word_length': 2.8924943566591423, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5904726', 'n_tokens_mistral': 4449, 'n_tokens_neox': 4320, 'n_words': 531}