新增应收报表调用方法,销售码单打印反审核功能优化,辅助属性显示数据排序
3个文件已修改
1个文件已添加
114 ■■■■■ 已修改文件
DAL/基础资料/InterFace基础资料/ClsIF_Property_View.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/仓库管理/Kf_SellOutBill_BarCodeNote.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Controllers/应收管理/YS_ReceiveReportController.cs 106 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/WebAPI.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DAL/»ù´¡×ÊÁÏ/InterFace»ù´¡×ÊÁÏ/ClsIF_Property_View.cs
@@ -21,7 +21,7 @@
            base.MvarItemKey = "h_v_IF_PropertyByMaterID";
            base.SQLName = "Select HItemID,HNumber è¾…助属性代码,HName è¾…助属性 from h_v_IF_PropertyByMaterID ";
            base.SQLWhere = " where HStopflag=0 ";
            base.SQLOrder = " ";
            base.SQLOrder = "  Order by HNumber ";
            //下拉SQL
            base.SQLNameForDown = " Select top 30 HItemID,HNumber è¾…助属性代码,HName è¾…助属性 from h_v_IF_Property ";
            base.SQLOrderForDown = "  Order by HNumber ";
WarM/²Ö¿â¹ÜÀí/Kf_SellOutBill_BarCodeNote.cs
@@ -415,6 +415,11 @@
        #region  //反审核销售出库单
        private void fsh_Click(object sender, EventArgs e)
        {
            if(HInterID==0)
            {
                MessageBox.Show("请先选择对应销售出库单!", "提示");
                return;
            }
            if (BillOld.AbandonCheck(HInterID, ref DBUtility.ClsPub.sExeReturnInfo) == true)
            {
                cmbHBillStatus.Text = "创建";
WebAPI/Controllers/Ó¦ÊÕ¹ÜÀí/YS_ReceiveReportController.cs
New file
@@ -0,0 +1,106 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Pub_Class;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Web.Http;
using WebAPI.Models;
namespace WebAPI.Controllers
{
    //应收报表Controller
    public class YS_ReceiveReportController : ApiController
    {
        public DataSet ds = new DataSet();
        private json objJsonResult = new json();
        SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
        Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
        #region å®¢æˆ·åº”收账款分析报表
        /// <summary>
        /// å®¢æˆ·åº”收账款分析报表
        /// </summary>
        /// <returns></returns>
        [Route("YS_ReceiveReportController/GetYS_CusShouldIncomeReport_Json")]
        [HttpGet]
        public object GetYS_CusShouldIncomeReport_Json(string sWhere)
        {
            try
            {
                ds = oCn.RunProcReturn("exec h_p_YS_CusShouldIncomeReport " + sWhere, "h_p_YS_CusShouldIncomeReport");
                List<object> columnNameList = new List<object>();
                //添加列名
                foreach (DataColumn col in ds.Tables[0].Columns)
                {
                    Type dataType = col.DataType;
                    string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
                    columnNameList.Add(JsonConvert.DeserializeObject(ColmString));  //获取到DataColumn列对象的列名
                }
                objJsonResult.code = "0";
                objJsonResult.count = 1;
                objJsonResult.Message = "成功!";
                objJsonResult.data = ds.Tables[0];
                objJsonResult.list = columnNameList;
                return objJsonResult;
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "查询报表信息失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region å®¢æˆ·åº”收账款明细分析报表
        /// <summary>
        /// å®¢æˆ·åº”收账款明细分析报表
        /// </summary>
        /// <returns></returns>
        [Route("YS_ReceiveReportController/GetYS_CusShouldIncomeEntryReport_Json")]
        [HttpGet]
        public object GetYS_CusShouldIncomeEntryReport_Json(string sWhere)
        {
            try
            {
                ds = oCn.RunProcReturn("exec h_p_YS_CusShouldIncomeEntryReport " + sWhere, "h_p_YS_CusShouldIncomeEntryReport");
                List<object> columnNameList = new List<object>();
                //添加列名
                foreach (DataColumn col in ds.Tables[0].Columns)
                {
                    Type dataType = col.DataType;
                    string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}";
                    columnNameList.Add(JsonConvert.DeserializeObject(ColmString));  //获取到DataColumn列对象的列名
                }
                objJsonResult.code = "0";
                objJsonResult.count = 1;
                objJsonResult.Message = "成功!";
                objJsonResult.data = ds.Tables[0];
                objJsonResult.list = columnNameList;
                return objJsonResult;
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "查询报表信息失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
    }
}
WebAPI/WebAPI.csproj
@@ -594,6 +594,7 @@
    <Compile Include="Controllers\基础资料\基础资料\Gy_RepairBillController.cs" />
    <Compile Include="Controllers\基础资料\基础资料\Gy_RepairCheckBillController.cs" />
    <Compile Include="Controllers\基础资料\工资基础资料\Gy_ProcPriceController.cs" />
    <Compile Include="Controllers\应收管理\YS_ReceiveReportController.cs" />
    <Compile Include="Controllers\条码管理\WEBSController.cs" />
    <Compile Include="Controllers\生产管理\报工台工序\Sc_MaterToSourceStepBillController.cs" />
    <Compile Include="Controllers\生产管理\报工台工序\Sc_MESBeginStepWorkBillController.cs" />