first commit
This commit is contained in:
@@ -0,0 +1,153 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>政务督查</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2902" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>InfoId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>提案ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>true</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<!--要使用上一步定义的自定义参数,要作为XSLT参数使用,务必要在这里声明。如:<xsl:param name="myPara" />.引用该参数:$myPara -->
|
||||
<xsl:output method="xml" />
|
||||
<xsl:param name="InfoId" />
|
||||
<xsl:param name="InfoType" />
|
||||
<xsl:template match="/">
|
||||
<!--请按提示编辑,保持该模板结构的正确性-->
|
||||
<root>
|
||||
<sql>
|
||||
<xsl:if test="$InfoType = 1">
|
||||
SELECT Status FROM PE_GV_Proposal WHERE ProposalId = @InfoId AND IsPublic = 1
|
||||
</xsl:if>
|
||||
<xsl:if test="$InfoType = 0">
|
||||
SELECT Status FROM PE_GV_Suggestion WHERE SuggestionId = @InfoId AND IsPublic = 1
|
||||
</xsl:if>
|
||||
</sql>
|
||||
<sqlpage>
|
||||
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
||||
</sqlpage>
|
||||
<countsql>
|
||||
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
||||
</countsql>
|
||||
</root>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelSqlString>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:param name="InfoId" />
|
||||
<xsl:param name="InfoType" />
|
||||
<xsl:variable name="isAllSupervisionComment" select="pe:IsAllSupervisionComment()"/>
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Status = 7 and $isAllSupervisionComment = 'true'">
|
||||
<script language="javascript" type="text/javascript">
|
||||
function ifReplyContent(obj)
|
||||
{
|
||||
if(document.activeElement.id == obj.id && obj.value == '请在此输入您的评价......')
|
||||
{
|
||||
obj.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
function addProposalEvaluation()
|
||||
{
|
||||
var RCon = document.getElementById("replyContent");
|
||||
if(RCon.value == '' || RCon.value == '请在此输入您的评价......')
|
||||
{
|
||||
alert("请输入您的评价");
|
||||
RCon.focus();
|
||||
return false;
|
||||
}
|
||||
var m_Marks;
|
||||
var reviews = document.getElementsByName("reviewPleased");
|
||||
for (var i = 0; i < reviews.length; i++) {
|
||||
if (reviews[i].checked) {
|
||||
m_Marks = reviews[i].value;
|
||||
}
|
||||
}
|
||||
|
||||
var xtext={type:"addProposalEvaluation",InfoId:<xsl:value-of select="$InfoId" />,InfoType:<xsl:value-of select="$InfoType" />,replyContent:RCon.value,marks:m_Marks};
|
||||
var xmlDoc=jQuery.CreateXmlDoc(xtext);
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
processData: false,
|
||||
url:"{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=GovAjaxHandler",
|
||||
data:xmlDoc,
|
||||
success:function(xmlDoc)
|
||||
{
|
||||
var status = xmlDoc.getElementsByTagName("status")[0].firstChild.data;
|
||||
|
||||
switch (status) {
|
||||
case "ok":
|
||||
alert("添加评价成功");
|
||||
window.location= '{PE.SiteConfig.applicationpath/}User/Government/EvaluationManage.aspx';
|
||||
break;
|
||||
case "err":
|
||||
var msg=xmlDoc.getElementsByTagName("body")[0].firstChild.data;
|
||||
alert(msg);
|
||||
location.reload();
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<dt>
|
||||
<input type="submit" value="代表填写对办理工作及本案答复结果的意见" onclick="javascript:document.getElementById('ddProposalEvaluation').style.display = '';" />
|
||||
</dt>
|
||||
<dd id="ddProposalEvaluation" style="display:none">
|
||||
<table width="100%" cellspacing="1" cellpadding="0" border="0" class="appraisal">
|
||||
<tr>
|
||||
<th colspan="4">
|
||||
<b>满意度调查:</b>
|
||||
<label>
|
||||
<input type="radio" value="1" name="reviewPleased" checked="checked"/>满意 </label>
|
||||
<label>
|
||||
<input type="radio" value="2" name="reviewPleased"/>基本满意 </label>
|
||||
<label>
|
||||
<input type="radio" value="3" name="reviewPleased"/>不满意</label>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdleft" style="width:15%">代表名:</td>
|
||||
<td>
|
||||
<xsl:value-of select="pe:LoginedUserName()"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tdleft">代表对办理工作及本件答复结果的意见</td>
|
||||
<td>
|
||||
<textarea name="replyContent" rows="10" class="inputtext2" onfocus='ifReplyContent(this)' tabindex="4" id="replyContent">请在此输入您的评价......</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="appraisal_login">
|
||||
<input name="" class="inputbutton2" type="button" value="确认提交" onClick="addProposalEvaluation()" />
|
||||
</div>
|
||||
</dd>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>InfoType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>0--建议 1--提案</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user