Forum: สอบถามปัญหา Notes ทางด้านพัฒนาโปรแกรม (Note Client) |
Tags1: IBM Lotus Domino/Notes| Created on Jun 11, 2008, 2:26 PM by dinsor2b/9Notes|Topic Responses: 9 |
&action=openDocument&documentId=DBE |
REM {Set Running no.};
year := @Right(@Text((@Year(Date)));2);
DocNoList := @Text(@DbLookup("":"Nocache";"":"";"ByRunNo";year;2));
run := @TextToNumber(@Subset(DocNoList;-1)) + 1;
nextrun := @If(@IsError(run);1;run);
T_No := @Right(@Text(10000+(nextrun));4);
@If(@Trim(DocNo) = "";@SetField("DocNo"; year +"-" +T_No);"");
@Command([ViewRefreshFields]);
@SetField("DateSign";@Today);
มันหมายความว่าอย่างไรอะค่ะ อยากเข้าใจกระบวนการอะค่ะ ไม่อยากท่องจำอะค่ะ ช่วยหน่อนนะค่ะ |
|