|
@@ -14,6 +14,7 @@
|
|
import com.jtgh.yjpt.common.util.Utils;
|
|
import com.jtgh.yjpt.common.util.Utils;
|
|
import com.jtgh.yjpt.model.jyr.JyrModel;
|
|
import com.jtgh.yjpt.model.jyr.JyrModel;
|
|
import com.jtgh.yjpt.vo.jyr.JyrVo;
|
|
import com.jtgh.yjpt.vo.jyr.JyrVo;
|
|
|
|
+ import com.jtgh.yjpt.select.YesNoSelect;
|
|
|
|
|
|
import mx.collections.ArrayCollection;
|
|
import mx.collections.ArrayCollection;
|
|
import mx.events.FlexEvent;
|
|
import mx.events.FlexEvent;
|
|
@@ -24,12 +25,19 @@
|
|
public var vo:JyrVo = new JyrVo();
|
|
public var vo:JyrVo = new JyrVo();
|
|
public var initParam:Array;
|
|
public var initParam:Array;
|
|
[Bindable]
|
|
[Bindable]
|
|
- public var screenWidth:Number;
|
|
|
|
|
|
+ public var screenWidth:Number;
|
|
/**
|
|
/**
|
|
* 页面初始化
|
|
* 页面初始化
|
|
*/
|
|
*/
|
|
protected function init(event:FlexEvent):void
|
|
protected function init(event:FlexEvent):void
|
|
{
|
|
{
|
|
|
|
+ //是否隐藏可编辑按钮
|
|
|
|
+ var disableEdit:Boolean = false;
|
|
|
|
+ disableEdit = (Global.JyrDisbleEdit==YesNoSelect.NO);
|
|
|
|
+
|
|
|
|
+ edit.visible = disableEdit;
|
|
|
|
+ edit.includeInLayout = disableEdit;
|
|
|
|
+
|
|
jyrview.model.parentView=this;
|
|
jyrview.model.parentView=this;
|
|
editView.thisModel.parentView=this;
|
|
editView.thisModel.parentView=this;
|
|
screenWidth=this.width;
|
|
screenWidth=this.width;
|
|
@@ -84,7 +92,7 @@
|
|
]]>
|
|
]]>
|
|
</fx:Script>
|
|
</fx:Script>
|
|
<s:HGroup width="100%" height="40" gap="10" horizontalAlign="left" verticalAlign="middle">
|
|
<s:HGroup width="100%" height="40" gap="10" horizontalAlign="left" verticalAlign="middle">
|
|
- <button:IconButton id="edit" type="edit" visible="{Global.BUTTON_STATUS}" includeInLayout="{Global.BUTTON_STATUS}" toolTip="{resourceManager.getString('common','btn.edit')}" click="edit_clickHandler(event)"/>
|
|
|
|
|
|
+ <button:IconButton id="edit" type="edit" toolTip="{resourceManager.getString('common','btn.edit')}" click="edit_clickHandler(event)"/>
|
|
<button:IconButton id="print" type="print" toolTip="{resourceManager.getString('common','btn.print')}" click="printView(event)"/>
|
|
<button:IconButton id="print" type="print" toolTip="{resourceManager.getString('common','btn.print')}" click="printView(event)"/>
|
|
</s:HGroup>
|
|
</s:HGroup>
|
|
<s:HGroup width="100%" gap="0" horizontalAlign="left" verticalAlign="middle">
|
|
<s:HGroup width="100%" gap="0" horizontalAlign="left" verticalAlign="middle">
|