InsertButton_1

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

ButtonInsertJob#includeapdefap.hvoidOnClick(char*lpszPictureName,char*lpszObjectName,char*lpszPropertyName){if(uaUtilityEnumRecords(JobData,NULL,NULL,InsertJobCB,NULL))printf(InsertO.K.\r\n);elseprintf(Insertfailed!\r\n);}FunctionInsertJobCB#includeapdefap.hBOOLInsertJobCB(UAHARCHIVE*phArchive,void*pUserData){BOOLrc=TRUE;//Returncodechar*szProductName=GetTagCharWait(ProductName);//readnameofproductlonglPartsToProd=(long)GetTagWord(BlanksToProduce);//readnumberofpartsif(!uaArchiveSetFieldValueString(*phArchive,1,szProductName)||//writeproductnametoarchive!uaArchiveSetFieldValueLong(*phArchive,2,lPartsToProd))//writenumberofpartstoarchive{printf(InsertJobCB:erroronwritingtorecord\r\n);rc=FALSE;}else{if(!uaArchiveInsert(*phArchive))//insertnewlineinarchive{printf(InsertJobCB:erroronupdatingarchive\r\n);rc=FALSE;}}returnrc;}

1 / 1
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功