python
import clr;
clr.AddReference('System')
clr.AddReference("System.Core")
clr.AddReference('System.Data')
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.DataEntity')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
clr.AddReference("Newtonsoft.Json")
from Kingdee.BOS import *
from Kingdee.BOS.Core import *
from Kingdee.BOS.Core.DependencyRules import *
from Kingdee.BOS.Core.Bill import *
from Kingdee.BOS.Util import *
from Kingdee.BOS.App.Data import *
from Kingdee.BOS.Orm.DataEntity import *
from Kingdee.BOS.Core.DynamicForm import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from Kingdee.BOS.Core.DynamicForm.PlugIn.Args import *
from Kingdee.BOS.Core.Metadata.FormElement import *
from System import *
from System.Net import *
from System.IO import *
from System.Linq import *
from System.Text import *
from Newtonsoft.Json import *
from Newtonsoft.Json.Linq import *
def BarItemClick(e):
key=e.BarItemKey.ToUpperInvariant()
if(key=="FIRECORD".ToUpperInvariant()):
billObj = this.View.Model.DataObject;
billNo=billObj["BillNo"];
url = 'http://192.168.10.199:20001/Firecord.aspx?FBILLNO='+billNo
this.View.AddAction("ShowWebURL", url);