|
|
|
|
//<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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function TestFrmAPI() {
|
|
|
|
|
|
|
|
|
|
var frmID = "Frm_ChuKuDan";
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD>¼<EFBFBD>¼. <20><><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>oid <20><><EFBFBD>͵<EFBFBD><CDB5><EFBFBD><EFBFBD><EFBFBD>.
|
|
|
|
|
var oid = CCForm_CreateBlankOID(frmID);
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
var url = CCFrom_FrmViewUrl(frmID, oid); //<2F><><EFBFBD><EFBFBD>url.
|
|
|
|
|
window.open(url); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>url.
|
|
|
|
|
|
|
|
|
|
//ɾ<><C9BE>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>¼.
|
|
|
|
|
CCFrom_DeleteFrmEntityByOID(frmID, oid);
|
|
|
|
|
|
|
|
|
|
}
|