You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB
Plaintext

11 months ago
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>ʵ<EFBFBD><EFBFBD>༭.
function DemoTest1()
{
var webUser=new WebUser();
if (webUser.No==null)
{
alert('<27>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>ʧ');
return;
}
//д<><D0B4>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
var en=new Entity("Dict_Student");
en.Name="<22><><EFBFBD><EFBFBD>";
en.Insert(); //<2F><><EFBFBD><EFBFBD><EBB5BD><EFBFBD>ݿ<EFBFBD>.
alert('<27><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD>д<EFBFBD><D0B4>:OID='+en.OID +'<27><><EFBFBD><EFBFBD>:'+en.BillNo );
//<2F><><EFBFBD>²<EFBFBD><C2B2><EFBFBD>.
en.Name='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>';
en.Update(); //<2F><><EFBFBD>µ<EFBFBD><C2B5><EFBFBD><EFBFBD><EFBFBD>.
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>OIDʵ<44><CAB5><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>.
var en=new Entity("Dict_Student",123);
alert('ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:'+en.Title +" ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"+en.BillNo );
//<2F><><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>.
var en=new Entity("Dict_Student","0001");
alert('ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:'+en.Title +" ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"+en.BillNo );
//ɾ<><C9BE>ʵ<EFBFBD><CAB5>.
var en=new Entity("Dict_Student","0001");
var i= en.Delete();
if (i==1)
alert("ѧ<><D1A7>["+en.Title+"]ɾ<><C9BE><EFBFBD>ɹ<EFBFBD>" );
else
alert("ѧ<><D1A7>["+en.Title+"]ɾ<><C9BE>ʧ<EFBFBD><CAA7>" );
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><E0BCAD>ʽ1.
var url=basePath + '/WF/Entity/MyDict.htm?FrmID=Student&OID='+oid;
window.localhost.href=url;
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><EFBFBD><EFBFBD><E0BCAD>ʽ2.
var url=basePath + '/WF/Entity/MyDict.htm?FrmID=Student&BillNo=0001';
window.localhost.href=url;
}