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


C# SI.SAPInterfaceSearchModel类代码示例

本文整理汇总了C#中com.Sconit.Web.Models.SearchModels.SI.SAPInterfaceSearchModel的典型用法代码示例。如果您正苦于以下问题:C# SAPInterfaceSearchModel类的具体用法?C# SAPInterfaceSearchModel怎么用?C# SAPInterfaceSearchModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SAPInterfaceSearchModel类属于com.Sconit.Web.Models.SearchModels.SI命名空间,在下文中一共展示了SAPInterfaceSearchModel类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: _AjaxSupplierBatchNoList

 public ActionResult _AjaxSupplierBatchNoList(GridCommand command, SAPInterfaceSearchModel searchModel)
 {
     searchModel.Status = "10";
     SearchStatementModel searchStatementModel = this.PrepareSAPSupplierSearchStatement(command, searchModel);
     GridModel<SAPSupplier> gridModel = GetAjaxPageData<SAPSupplier>(searchStatementModel, command);
     return PartialView(gridModel);
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:7,代码来源:SAPInterfaceController.cs

示例2: _AjaxList

 public ActionResult _AjaxList(GridCommand command, SAPInterfaceSearchModel searchModel)
 {
     if (!string.IsNullOrWhiteSpace(searchModel.successMessage))
     {
         SaveSuccessMessage(searchModel.successMessage);
     }
     if (!string.IsNullOrWhiteSpace(searchModel.errorMessage))
     {
         SaveSuccessMessage(searchModel.errorMessage);
     }
     this.GetCommand(ref command, searchModel);
     SearchStatementModel searchStatementModel = this.PrepareSearchStatement(command, searchModel);
     GridModel<SAPTransferLog> gridModel = GetAjaxPageData<SAPTransferLog>(searchStatementModel, command);
     return PartialView(gridModel);
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:15,代码来源:SAPInterfaceController.cs

示例3: PrepareSearchStatement

        private SearchStatementModel PrepareSearchStatement(GridCommand command, SAPInterfaceSearchModel searchModel)
        {
            string whereStatement = " where 1=1 ";

            IList<object> param = new List<object>();

            if (!string.IsNullOrWhiteSpace(searchModel.MultiInterfaces))
            {
                string interfaceSql = " and s.Interface in( ";
                string[] interfaceArr = searchModel.MultiInterfaces.Split(',');
                for (int st = 0; st < interfaceArr.Length; st++)
                {
                    interfaceSql += "'" + interfaceArr[st] + "',";
                }
                whereStatement += interfaceSql.Substring(0, interfaceSql.Length - 1) + ")";
            }
            if (searchModel.Status != "0" && searchModel.Status != "10")
            {
                HqlStatementHelper.AddEqStatement("Status", Convert.ToInt32(searchModel.Status), "s", ref whereStatement, param);
            }
            HqlStatementHelper.AddEqStatement("BatchNo", searchModel.BatchNo, "s", ref whereStatement, param);


            if (searchModel.TransStartDate != null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddBetweenStatement("TransDate", searchModel.TransStartDate, searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate != null & searchModel.TransEndDate == null)
            {
                HqlStatementHelper.AddGeStatement("TransDate", searchModel.TransStartDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate == null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddLeStatement("TransDate", searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            if (command.SortDescriptors.Count > 0)
            {
                if (command.SortDescriptors[0].Member == "StatusDesc")
                {
                    command.SortDescriptors[0].Member = "Status";
                }
            }
            string sortingStatement="";
            if (command.SortDescriptors.Count == 0)
            {
                sortingStatement = " order by TransDate desc";
            }
            else
            {
                sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors);
            }
            SearchStatementModel searchStatementModel = new SearchStatementModel();
            searchStatementModel.SelectCountStatement = selectCountStatement;
            searchStatementModel.SelectStatement = selectStatement;
            searchStatementModel.WhereStatement = whereStatement;
            searchStatementModel.SortingStatement = sortingStatement;
            searchStatementModel.Parameters = param.ToArray<object>();

            return searchStatementModel;
        }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:60,代码来源:SAPInterfaceController.cs

示例4: ExportSAPSTMES0001XLS

 public void ExportSAPSTMES0001XLS(SAPInterfaceSearchModel searchModel)
 {
     int value = System.Convert.ToInt32(base.systemMgr.GetEntityPreferenceValue(EntityPreference.CodeEnum.MaxRowSizeOnPage));
     GridCommand command = new GridCommand();
     command.Page = 1;
     command.PageSize = value;
     SearchStatementModel searchStatementModel = this.PrepareSAPSTMES0001SearchStatement(command, searchModel);
     GridModel<SAPSTMES0001> gridModel = GetAjaxPageData<SAPSTMES0001>(searchStatementModel, command);
     ExportToXLS<SAPSTMES0001>("SAPSTMES0001.XLS", gridModel.Data.ToList());
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:10,代码来源:SAPInterfaceController.cs

示例5: SITransferLogList

 public ActionResult SITransferLogList(GridCommand command, SAPInterfaceSearchModel searchModel)
 {
     SearchCacheModel searchCacheModel = this.ProcessSearchModel(command, searchModel);
     if (searchCacheModel.isBack == true)
     {
         ViewBag.Page = searchCacheModel.Command.Page == 0 ? 1 : searchCacheModel.Command.Page;
     }
     ViewBag.PageSize = base.ProcessPageSize(command.PageSize);
     return View();
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:10,代码来源:SAPInterfaceController.cs

示例6: _AjaxSAPSTMES0001List

 public ActionResult _AjaxSAPSTMES0001List(GridCommand command, SAPInterfaceSearchModel searchModel)
 {
     this.GetCommand(ref command, searchModel);
     SearchStatementModel searchStatementModel = this.PrepareSAPSTMES0001SearchStatement(command, searchModel);
     GridModel<SAPSTMES0001> gridModel = GetAjaxPageData<SAPSTMES0001>(searchStatementModel, command);
     return PartialView(gridModel);
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:7,代码来源:SAPInterfaceController.cs

示例7: PrepareSAPSTMES0001SearchStatement

        private SearchStatementModel PrepareSAPSTMES0001SearchStatement(GridCommand command, SAPInterfaceSearchModel searchModel)
        {
            string whereStatement = string.Empty;

            IList<object> param = new List<object>();

            if (searchModel.Status != "0" && searchModel.Status != "10")
            {
                HqlStatementHelper.AddEqStatement("Status", Convert.ToInt32(searchModel.Status), "s", ref whereStatement, param);
            }
            HqlStatementHelper.AddEqStatement("UniqueCode", searchModel.BatchNo, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("ZMESKO", searchModel.ZMESKO, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("MATNR1", searchModel.MATNR1, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("LGORT", searchModel.LGORT, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("UMLGO", searchModel.UMLGO, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("BWARTWA", searchModel.BWARTWA, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("MATNR_TH", searchModel.MATNR_TH, "s", ref whereStatement, param);

            string timeFieldsStr = "ZCSRQSJ";
            if (searchModel.TimeType == "1")
            {
                timeFieldsStr = "BUDAT";
            }
            if (searchModel.TransStartDate != null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddBetweenStatement(timeFieldsStr, searchModel.TransStartDate, searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate != null & searchModel.TransEndDate == null)
            {
                HqlStatementHelper.AddGeStatement(timeFieldsStr, searchModel.TransStartDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate == null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddLeStatement(timeFieldsStr, searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            if (command.SortDescriptors.Count > 0)
            {
                if (command.SortDescriptors[0].Member == "StatusDesc")
                {
                    command.SortDescriptors[0].Member = "Status";
                }
            }
            string sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors);

            SearchStatementModel searchStatementModel = new SearchStatementModel();
            searchStatementModel.SelectCountStatement = selectSAPSTMES0001CountStatement;
            searchStatementModel.SelectStatement = selectSAPSTMES0001statement;
            searchStatementModel.WhereStatement = whereStatement;
            searchStatementModel.SortingStatement = sortingStatement;
            searchStatementModel.Parameters = param.ToArray<object>();

            return searchStatementModel;
        }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:53,代码来源:SAPInterfaceController.cs

示例8: PrepareSAPMMMES0002SearchStatement

        private SearchStatementModel PrepareSAPMMMES0002SearchStatement(GridCommand command, SAPInterfaceSearchModel searchModel)
        {
            string whereStatement = string.Empty;

            IList<object> param = new List<object>();

            if (searchModel.Status != "0" && searchModel.Status != "10")
            {
                HqlStatementHelper.AddEqStatement("Status", Convert.ToInt32(searchModel.Status), "s", ref whereStatement, param);
            }
            HqlStatementHelper.AddEqStatement("UniqueCode", searchModel.BatchNo, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("ZMESPO", searchModel.ZMESPO, "s", ref whereStatement, param);


            if (searchModel.TransStartDate != null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddBetweenStatement("ZCSRQSJ", searchModel.TransStartDate, searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate != null & searchModel.TransEndDate == null)
            {
                HqlStatementHelper.AddGeStatement("ZCSRQSJ", searchModel.TransStartDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate == null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddLeStatement("ZCSRQSJ", searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            if (command.SortDescriptors.Count > 0)
            {
                if (command.SortDescriptors[0].Member == "StatusDesc")
                {
                    command.SortDescriptors[0].Member = "Status";
                }
            }
            string sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors);

            SearchStatementModel searchStatementModel = new SearchStatementModel();
            searchStatementModel.SelectCountStatement = selectSAPMMMES0002CountStatement;
            searchStatementModel.SelectStatement = selectSAPMMMES0002statement;
            searchStatementModel.WhereStatement = whereStatement;
            searchStatementModel.SortingStatement = sortingStatement;
            searchStatementModel.Parameters = param.ToArray<object>();

            return searchStatementModel;
        }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:44,代码来源:SAPInterfaceController.cs

示例9: ExportSAPPPMES0004XLS

 public void ExportSAPPPMES0004XLS(SAPInterfaceSearchModel searchModel)
 {
     int value = System.Convert.ToInt32(base.systemMgr.GetEntityPreferenceValue(EntityPreference.CodeEnum.MaxRowSizeOnPage));
     GridCommand command = new GridCommand();
     command.Page = 1;
     command.PageSize = value;
     SearchStatementModel searchStatementModel = this.PrepareSAPPPMES0004SearchStatement(command, searchModel);
     GridModel<SAPPPMES0004> gridModel = GetAjaxPageData<SAPPPMES0004>(searchStatementModel, command);
     foreach (var sAPPPMES0004 in gridModel.Data)
     {
         sAPPPMES0004.FilterId = sAPPPMES0004.ZComnum.Replace("RF", "").TrimStart('0');
     }
     ExportToXLS<SAPPPMES0004>("SAPPPMES0004.XLS", gridModel.Data.ToList());
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:14,代码来源:SAPInterfaceController.cs

示例10: _AjaxSAPPPMES0004List

 public ActionResult _AjaxSAPPPMES0004List(GridCommand command, SAPInterfaceSearchModel searchModel)
 {
     this.GetCommand(ref command, searchModel);
     SearchStatementModel searchStatementModel = this.PrepareSAPPPMES0004SearchStatement(command, searchModel);
     GridModel<SAPPPMES0004> gridModel = GetAjaxPageData<SAPPPMES0004>(searchStatementModel, command);
     foreach (var sAPPPMES0004 in gridModel.Data)
     {
         sAPPPMES0004.FilterId = sAPPPMES0004.ZComnum.Replace("RF", "").TrimStart('0');
     }
     return PartialView(gridModel);
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:11,代码来源:SAPInterfaceController.cs

示例11: _AjaxSAPPPMES0003List

 public ActionResult _AjaxSAPPPMES0003List(GridCommand command, SAPInterfaceSearchModel searchModel)
 {
     this.GetCommand(ref command, searchModel);
     SearchStatementModel searchStatementModel = this.PrepareSAPPPMES0003SearchStatement(command, searchModel);
     GridModel<SAPPPMES0003> gridModel = GetAjaxPageData<SAPPPMES0003>(searchStatementModel, command);
     foreach (var sAPPPMES0003 in gridModel.Data)
     {
         sAPPPMES0003.ScrapId = sAPPPMES0003.MTSNR.Replace("OF", "").TrimStart('0');
     }
     return PartialView(gridModel);
 }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:11,代码来源:SAPInterfaceController.cs

示例12: PrepareSAPPPMES0001SearchStatement

        private SearchStatementModel PrepareSAPPPMES0001SearchStatement(GridCommand command, SAPInterfaceSearchModel searchModel)
        {
            string whereStatement = string.Empty;

            IList<object> param = new List<object>();

            if (searchModel.Status != "0" && searchModel.Status != "10")
            {
                HqlStatementHelper.AddEqStatement("Status", Convert.ToInt32(searchModel.Status), "s", ref whereStatement, param);
            }

            HqlStatementHelper.AddEqStatement("UniqueCode", searchModel.BatchNo, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("ZMESSC", searchModel.ZMESSC, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("MATNR_H", searchModel.MATNR_H, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("MATNR_I", searchModel.MATNR_I, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("LGORT_H", searchModel.LGORT_H, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("LGORT_I", searchModel.LGORT_I, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("BWART_H", searchModel.BWART_H, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("BWART_I", searchModel.BWART_I, "s", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("MTSNR", searchModel.MTSNR, "s", ref whereStatement, param);

            string timeFieldsStr = "ZCSRQSJ";
            if (searchModel.TimeType == "1")
            {
                timeFieldsStr = "BUDAT";
            }
            if (searchModel.TransStartDate != null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddBetweenStatement(timeFieldsStr, searchModel.TransStartDate, searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate != null & searchModel.TransEndDate == null)
            {
                HqlStatementHelper.AddGeStatement(timeFieldsStr, searchModel.TransStartDate, "s", ref whereStatement, param);
            }
            else if (searchModel.TransStartDate == null & searchModel.TransEndDate != null)
            {
                HqlStatementHelper.AddLeStatement(timeFieldsStr, searchModel.TransEndDate, "s", ref whereStatement, param);
            }
            if (command.SortDescriptors.Count > 0)
            {
                if (command.SortDescriptors[0].Member == "StatusDesc")
                {
                    command.SortDescriptors[0].Member = "Status";
                }
            }
            if (!string.IsNullOrWhiteSpace(searchModel.MultiInterfaces))
            {

                string interfaceSql = " and s.OrderType in( ";
                if (string.IsNullOrWhiteSpace(whereStatement))
                {
                    interfaceSql = " where s.OrderType in( ";
                }
                string[] interfaceArr = searchModel.MultiInterfaces.Split(',');
                for (int st = 0; st < interfaceArr.Length; st++)
                {
                    interfaceSql += "'" + interfaceArr[st] + "',";
                }
                whereStatement += interfaceSql.Substring(0, interfaceSql.Length - 1) + ")";
            }
            string sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors);

            SearchStatementModel searchStatementModel = new SearchStatementModel();
            searchStatementModel.SelectCountStatement = selectSAPPPMES0001CountStatement;
            searchStatementModel.SelectStatement = selectSAPPPMES0001statement;
            searchStatementModel.WhereStatement = whereStatement;
            searchStatementModel.SortingStatement = sortingStatement;
            searchStatementModel.Parameters = param.ToArray<object>();

            return searchStatementModel;
        }
开发者ID:zhsh1241,项目名称:Sconit5_Shenya,代码行数:71,代码来源:SAPInterfaceController.cs


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