當前位置: 首頁>>代碼示例>>C#>>正文


C# ADODB.Recordset.update方法代碼示例

本文整理匯總了C#中ADODB.Recordset.update方法的典型用法代碼示例。如果您正苦於以下問題:C# ADODB.Recordset.update方法的具體用法?C# ADODB.Recordset.update怎麽用?C# ADODB.Recordset.update使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ADODB.Recordset的用法示例。


在下文中一共展示了ADODB.Recordset.update方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: printTransactionA4


//.........這裏部分代碼省略.........
            //rsNew("transactionItem_quantity").DefinedSize = rsNew("transactionItem_price").DefinedSize
            //rsNew2("transactionItem_quantity").Attributes = rsNew("transactionItem_price").Attributes
            //rsNew2("transactionItem_quantity").NumericScale = rsNew("transactionItem_price").NumericScale
            //rsNew2("transactionItem_quantity").Precision = rsNew("transactionItem_price").Precision

            foreach (lineItem lineitem_Renamed_loopVariable in lTransaction.lineItems) {
                lineitem_Renamed = lineitem_Renamed_loopVariable;
                rsNew.AddNew();
                if (lineitem_Renamed.revoke) {
                } else {
                    rsNew.Fields("transactionItem_build").Value = lineitem_Renamed.build;
                    rsNew.Fields("transactionItem_code").Value = lineitem_Renamed.code;
                    rsNew.Fields("transactionItem_depositType").Value = lineitem_Renamed.depositType;
                    rsNew.Fields("transactionItem_id").Value = lineitem_Renamed.id;
                    rsNew.Fields("transactionItem_lineNo").Value = lineitem_Renamed.lineNo;
                    rsNew.Fields("transactionItem_name").Value = lineitem_Renamed.name;
                    rsNew.Fields("transactionItem_originalPrice").Value = lineitem_Renamed.originalPrice;
                    rsNew.Fields("transactionItem_price").Value = lineitem_Renamed.price;
                    rsNew.Fields("transactionItem_quantity").Value = lineitem_Renamed.quantity;
                    rsNew.Fields("transactionItem_receiptName").Value = Strings.LTrim(Strings.Mid(lineitem_Renamed.receiptName, Strings.InStr(1, lineitem_Renamed.receiptName, "x") + 1, Strings.Len(lineitem_Renamed.receiptName)));
                    //lineitem.receiptName
                    rsNew.Fields("transactionItem_reversal").Value = lineitem_Renamed.reversal;
                    rsNew.Fields("transactionItem_revoke").Value = lineitem_Renamed.revoke;
                    rsNew.Fields("transactionItem_set").Value = lineitem_Renamed.setBuild;
                    rsNew.Fields("transactionItem_shrink").Value = lineitem_Renamed.shrink;
                    rsNew.Fields("transactionItem_type").Value = lineitem_Renamed.transactionType;
                    rsNew.Fields("transactionItem_vat").Value = lineitem_Renamed.vat;

                    if (lineitem_Renamed.vat > 0)
                        lnVat = lnVat + ((lineitem_Renamed.quantity * lineitem_Renamed.price) - ((lineitem_Renamed.quantity * lineitem_Renamed.price) / (1 + (lineitem_Renamed.vat / 100))));
                    QuoteTotal = QuoteTotal + (lineitem_Renamed.quantity * lineitem_Renamed.price);
                    //If gParameters.A4Exclusive = True Then TCurrency = TCurrency + ((lineitem.quantity * lineitem.price) / (1 + (lineitem.vat) / 100))
                    //TCurrency = 0 'TCurrency + ((lineitem.quantity * lineitem.price) / (1 + (lineitem.vat) / 100))
                    rsNew.update();
                }
            }

            //rsNew.MoveFirst
            //vValue = rsNew("transactionItem_quantity")
            vValue = "";
            lRetVal = modUtilities.RegOpenKeyEx(modUtilities.HKEY_LOCAL_MACHINE, "Software\\4POS\\pos", 0, modUtilities.KEY_QUERY_VALUE, ref hkey);
            lRetVal = modUtilities.QueryValueEx(hkey, "A4Items", ref vValue);
            modUtilities.RegCloseKey(hkey);
            if (string.IsNullOrEmpty(vValue))
                vValue = "0";
            if (vValue == "1") {
                rsNew.Sort = "transactionItem_receiptName";
            } else if (vValue == "0") {
            }

            Report.Database.Tables(1).SetDataSource(rsNew);
            //Report.Database.Tables(2).SetDataSource rsNew, 3
            Report.SetParameterValue("txtCompanyName", lTransaction.companyName);
            Report.SetParameterValue("txtCompanyDetails1", lTransaction.heading1);

            if (!string.IsNullOrEmpty(lTransaction.heading2)) {
                Report.SetParameterValue("txtCompanyDetails2", lTransaction.heading2);
                if (!string.IsNullOrEmpty(lTransaction.heading3)) {
                    Report.SetParameterValue("txtCompanyDetails3", lTransaction.heading3);

                    //If gParameters.tr_PrintInvoice = False Then
                    if (!string.IsNullOrEmpty(lTransaction.taxNumber)) {
                        Report.SetParameterValue("txtCompanyDetails4", "TAX NO :" + lTransaction.taxNumber);
                    }
                    //End If
                } else {
開發者ID:nodoid,項目名稱:PointOfSale,代碼行數:67,代碼來源:frmCustomerAllocPayment.cs


注:本文中的ADODB.Recordset.update方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。