コード例 #1
0
ファイル: ProjectRule.cs プロジェクト: ishui/rms2
        public static string GetSupplierName(string supplierCode)
        {
            string text2;

            try
            {
                string text = "";
                if (supplierCode == "")
                {
                    return(text);
                }
                EntityData supplierByCode = ProjectDAO.GetSupplierByCode(supplierCode);
                if (supplierByCode.HasRecord())
                {
                    text = supplierByCode.GetString("SupplierName");
                }
                supplierByCode.Dispose();
                text2 = text;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(text2);
        }