当前位置: 首页>>代码示例>>C#>>正文


C# MixERP.Count方法代码示例

本文整理汇总了C#中MixERP.Count方法的典型用法代码示例。如果您正苦于以下问题:C# MixERP.Count方法的具体用法?C# MixERP.Count怎么用?C# MixERP.Count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MixERP的用法示例。


在下文中一共展示了MixERP.Count方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ParamsForAttachments

        private List<object> ParamsForAttachments(MixERP.Net.Entities.Core.AttachmentType[] attachments)
        {
            List<object> collection = new List<object>();

            if (attachments != null && attachments.Count() > 0)
            {
                foreach (MixERP.Net.Entities.Core.AttachmentType attachment in attachments)
                {
                    collection.Add(attachment.Comment);
                    collection.Add(attachment.FilePath);
                    collection.Add(attachment.OriginalFileName);
                    collection.Add(attachment.FileExtension);
                    collection.Add(attachment);
                }
            }
            return collection;
        }
开发者ID:abinabrahamanchery,项目名称:mixerp,代码行数:17,代码来源:PostNonGlTransactionProcedure.cs

示例2: ParamsForDetails

        private List<object> ParamsForDetails(MixERP.Net.Entities.Transactions.StockDetailType[] details)
        {
            List<object> collection = new List<object>();

            if (details != null && details.Count() > 0)
            {
                foreach (MixERP.Net.Entities.Transactions.StockDetailType detail in details)
                {
                    collection.Add(detail.StoreId);
                    collection.Add(detail.ItemCode);
                    collection.Add(detail.Quantity);
                    collection.Add(detail.UnitName);
                    collection.Add(detail.Price);
                    collection.Add(detail.Discount);
                    collection.Add(detail.ShippingCharge);
                    collection.Add(detail.TaxForm);
                    collection.Add(detail.Tax);
                    collection.Add(detail);
                }
            }
            return collection;
        }
开发者ID:abinabrahamanchery,项目名称:mixerp,代码行数:22,代码来源:PostNonGlTransactionProcedure.cs

示例3: SqlForAttachments

        private string SqlForAttachments(MixERP.Net.Entities.Core.AttachmentType[] attachments, int offset, int memberCount)
        {
            if (attachments == null)
            {
                return "NULL::core.attachment_type";
            }
            List<string> parameters = new List<string>();
            for (int i = 0; i < attachments.Count(); i++)
            {
                List<string> args = new List<string>();
                for (int j = 0; j < memberCount; j++)
                {
                    args.Add("@" + offset);
                    offset++;
                }

                string parameter = "ROW({0})::core.attachment_type";
                parameter = string.Format(System.Globalization.CultureInfo.InvariantCulture, parameter,
                    string.Join(",", args));
                parameters.Add(parameter);
            }
            return string.Join(",", parameters);
        }
开发者ID:abinabrahamanchery,项目名称:mixerp,代码行数:23,代码来源:PostNonGlTransactionProcedure.cs

示例4: SqlForDetails

        private string SqlForDetails(MixERP.Net.Entities.Transactions.StockDetailType[] details, int offset, int memberCount)
        {
            if (details == null)
            {
                return "NULL::transactions.stock_detail_type";
            }
            List<string> parameters = new List<string>();
            for (int i = 0; i < details.Count(); i++)
            {
                List<string> args = new List<string>();
                for (int j = 0; j < memberCount; j++)
                {
                    args.Add("@" + offset);
                    offset++;
                }

                string parameter = "ROW({0})::transactions.stock_detail_type";
                parameter = string.Format(System.Globalization.CultureInfo.InvariantCulture, parameter,
                    string.Join(",", args));
                parameters.Add(parameter);
            }
            return string.Join(",", parameters);
        }
开发者ID:abinabrahamanchery,项目名称:mixerp,代码行数:23,代码来源:PostNonGlTransactionProcedure.cs

示例5: ParamsForDetails

        private List<object> ParamsForDetails(MixERP.Net.Entities.Transactions.OpeningStockType[] details)
        {
            List<object> collection = new List<object>();

            if (details != null && details.Count() > 0)
            {
                foreach (MixERP.Net.Entities.Transactions.OpeningStockType detail in details)
                {
                    collection.Add(detail.StoreName);
                    collection.Add(detail.ItemCode);
                    collection.Add(detail.Quantity);
                    collection.Add(detail.UnitName);
                    collection.Add(detail.Amount);
                    collection.Add(detail);
                }
            }
            return collection;
        }
开发者ID:pplatek,项目名称:mixerp,代码行数:18,代码来源:PostOpeningInventoryProcedure.cs

示例6: ParamsForDetails

        private List<object> ParamsForDetails(MixERP.Net.Entities.Transactions.PurchaseReorderType[] details)
        {
            List<object> collection = new List<object>();

            if (details != null && details.Count() > 0)
            {
                foreach (MixERP.Net.Entities.Transactions.PurchaseReorderType detail in details)
                {
                    collection.Add(detail.ItemId);
                    collection.Add(detail.SupplierCode);
                    collection.Add(detail.UnitId);
                    collection.Add(detail.Price);
                    collection.Add(detail.TaxCode);
                    collection.Add(detail.OrderQuantity);
                    collection.Add(detail);
                }
            }
            return collection;
        }
开发者ID:abinabrahamanchery,项目名称:mixerp,代码行数:19,代码来源:PostPurhcaseReorderProcedure.cs

示例7: SqlForDetails

        private string SqlForDetails(MixERP.Net.Entities.HRM.WageProcessingDetail[] details, int offset, int memberCount)
        {
            if (details == null)
            {
                return "NULL::hrm.wage_processing_details";
            }
            List<string> parameters = new List<string>();
            for (int i = 0; i < details.Count(); i++)
            {
                List<string> args = new List<string>();
                for (int j = 0; j < memberCount; j++)
                {
                    args.Add("@" + offset);
                    offset++;
                }

                string parameter = "ROW({0})::hrm.wage_processing_details";
                parameter = string.Format(System.Globalization.CultureInfo.InvariantCulture, parameter,
                    string.Join(",", args));
                parameters.Add(parameter);
            }
            return string.Join(",", parameters);
        }
开发者ID:carlosern,项目名称:mixerp,代码行数:23,代码来源:PostWageProcedure.cs

示例8: ParamsForDetails

        private List<object> ParamsForDetails(MixERP.Net.Entities.HRM.WageProcessingDetail[] details)
        {
            List<object> collection = new List<object>();

            if (details != null && details.Count() > 0)
            {
                foreach (MixERP.Net.Entities.HRM.WageProcessingDetail detail in details)
                {
                    collection.Add(detail.WageProcessingDetailId);
                    collection.Add(detail.WageProcessingId);
                    collection.Add(detail.ForDate);
                    collection.Add(detail.HoursWorked);
                    collection.Add(detail.LunchDeductionMinutes);
                    collection.Add(detail.AdjustmentMinutes);
                    collection.Add(detail.PayHours);
                    collection.Add(detail.AuditUserId);
                    collection.Add(detail.AuditTs);
                }
            }
            return collection;
        }
开发者ID:carlosern,项目名称:mixerp,代码行数:21,代码来源:PostWageProcedure.cs


注:本文中的MixERP.Count方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。