예제 #1
0
        public static string GetCcodesDisplayName(_Pccode pccode, string ActualValue)
        {
            string strDisplay = string.Empty;

            strDisplay = facade.GetCcodesDisplayName(pccode, ActualValue);
            return(strDisplay);
        }
 public string GetCcodesDisplayName(_Pccode Pccode, string ActualValue)
 {
     string strDispName = string.Empty;
     StringBuilder strSqlWhere = new StringBuilder();
     strSqlWhere.Append(" SELECT * FROM [ILIMS_BasicData].[dbo].[c_codes] ");
     strSqlWhere.Append(" WHERE 1=1 ");
     DataSet ds = new DataSet();
     if (!string.IsNullOrWhiteSpace(Pccode.ToString()))
     {
         strSqlWhere.AppendFormat(" AND pccode='{0}' ", Enum.Parse(typeof(_Pccode), Pccode.ToString()).GetHashCode());
     }
     strSqlWhere.AppendFormat(" AND ccode='{0}'", ActualValue);
     ds = DBHelper.ExecuteDataSet(strSqlWhere.ToString());
     if (ds != null && ds.Tables.Count > 0)
     {
         foreach (DataRow row in ds.Tables[0].Rows)
         {
             if (row["cname"] != DBNull.Value)
             {
                 strDispName = row["cname"].ToString();
             }
         }
     }
     return strDispName;
 }
예제 #3
0
        public string GetCcodesDisplayName(_Pccode Pccode, string ActualValue)
        {
            string        strDispName = string.Empty;
            StringBuilder strSqlWhere = new StringBuilder();

            strSqlWhere.Append(" SELECT * FROM [ILIMS_BasicData].[dbo].[c_codes] ");
            strSqlWhere.Append(" WHERE 1=1 ");
            DataSet ds = new DataSet();

            if (!string.IsNullOrWhiteSpace(Pccode.ToString()))
            {
                strSqlWhere.AppendFormat(" AND pccode='{0}' ", Enum.Parse(typeof(_Pccode), Pccode.ToString()).GetHashCode());
            }
            strSqlWhere.AppendFormat(" AND ccode='{0}'", ActualValue);
            ds = DBHelper.ExecuteDataSet(strSqlWhere.ToString());
            if (ds != null && ds.Tables.Count > 0)
            {
                foreach (DataRow row in ds.Tables[0].Rows)
                {
                    if (row["cname"] != DBNull.Value)
                    {
                        strDispName = row["cname"].ToString();
                    }
                }
            }
            return(strDispName);
        }
 public string GetCcodesDisplayName(_Pccode pccode, string ActualValue)
 {
     return this.LogicDal.GetCcodesDisplayName(pccode, ActualValue);
 }
예제 #5
0
 public static string GetCcodesDisplayName(_Pccode pccode, string ActualValue)
 {
     string strDisplay = string.Empty;
     strDisplay = facade.GetCcodesDisplayName(pccode, ActualValue);
     return strDisplay;
 }
예제 #6
0
 public string GetCcodesDisplayName(_Pccode pccode, string ActualValue)
 {
     return(this.LogicDal.GetCcodesDisplayName(pccode, ActualValue));
 }