Exemplo n.º 1
0
        /// <summary>
        /// 销售区域
        /// </summary>
        /// <param name="area">区域名称</param>
        /// <returns></returns>
        public bool GetArea(string area)
        {
            Dal_TS_CUSTFILE dalcust = new Dal_TS_CUSTFILE();
            string          cmd     = "select N_ISGPS from  TS_DIC where C_DETAILNAME='" + area + "'";
            string          isgps   = DbHelperOra.GetSingle(cmd)?.ToString() ?? "0";

            return(isgps == "0" ? false : true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 钢种
        /// </summary>
        /// <param name="matcode">物料编码</param>
        /// <returns></returns>
        public bool GetStlGrd(string matcode)
        {
            Dal_TS_CUSTFILE dalcust = new Dal_TS_CUSTFILE();
            string          cmd     = "select N_ISGPS from  tb_matrl_main where C_MAT_CODE='" + matcode + "'";
            string          isgps   = DbHelperOra.GetSingle(cmd)?.ToString() ?? "0";

            return(isgps == "0" ? false : true);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 客户
        /// </summary>
        /// <param name="custno">客户编码</param>
        /// <returns></returns>
        public bool GetCust(string custno)
        {
            Dal_TS_CUSTFILE dalcust = new Dal_TS_CUSTFILE();
            string          cmd     = "select  N_ISGPS from  TS_CUSTFILE where C_NO='" + custno + "'";
            string          isgps   = DbHelperOra.GetSingle(cmd)?.ToString() ?? "0";

            return(isgps == "0" ? false : true);
        }