資源簡介
1、渠道銷售商在把藥品從廠商銷售到醫院時,需要管理大量的數據,這些通常包括藥品從廠商采購數據、藥品銷售到商業公司的數據,以及最后實際在醫院發生業務的數據,這些數據非常繁雜,尤其對于業務量比較大的渠道銷售商來說,采用人工管理經常會導致數據的不及時性、不正確性以及統計過程繁瑣性。通過有效地數據庫管理系統方便快捷地解決這些問題已經顯得非常迫切。
2、通常,渠道銷售商銷售藥品的流程如圖1所示。數據庫管理系統將實現整個業務流程的數字化,通過強大的計算機管理系統來解決人工管理時所出現的問題。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Data;
using?System.Data.SqlClient;
namespace?BLL
{
????public?class?Business
????{
????????public?string?ErrorMessage?=?““;//錯誤信息
????????//添加
????????public?int?Add(
????????out?int?ID
?????????int?DrugsID
?????????int?HospitalsID
?????????int?BoxNumber
?????????double?OutPrice
?????????string?OutTime
?????????int?SubShopsID
?????????string?Maker
?????????string?ExpireDate
?????????string?Remarks
????????)
????????{
????????????int?flag?=?0;
????????????try
????????????{
????????????????DAL.ExecuteProcedure?exec?=?new?DAL.ExecuteProcedure();
????????????????SqlParameter[]?parameters?=?{
new?SqlParameter(“@ID“?SqlDbType.Int32)
new?SqlParameter(“@DrugsID“?DrugsID)
new?SqlParameter(“@HospitalsID“?HospitalsID)
new?SqlParameter(“@BoxNumber“?BoxNumber)
new?SqlParameter(“@OutPrice“?OutPrice)
new?SqlParameter(“@OutTime“?OutTime.Trim())
new?SqlParameter(“@SubShopsID“?SubShopsID)
new?SqlParameter(“@Maker“?Maker.Trim())
new?SqlParameter(“@ExpireDate“?ExpireDate.Trim())
new?SqlParameter(“@Remarks“?Remarks.Trim())
?new?SqlParameter(“@Flag“SqlDbType.Int32)
};
????????????????parameters[0].Direction?=?ParameterDirection.Output;
????????????????parameters[10].Direction?=?ParameterDirection.ReturnValue;
????????????????flag?=?exec.run(“Pr_Business_Add“?parameters);
????????????????if?(flag?==?1)
????????????????{
????????????????????if?(Convert.ToInt32(parameters[10].Value)?==?10)
????????????????????{
????????????????????????ID?=?Convert.ToInt32(parameters[0].Value);
????????????????????}
????????????????????else
????????????????????{
????????????????????????ID?=?0;
????????????????????????flag?=?0;
????????????????????????this.ErrorMessage?=?“添加失敗,已存在同樣的數據!“;
????????????????????}
????????????????}
????????????????else
????????????????{
????????????????????ID?=?0;
????????????????????this.ErrorMessage?=?exec.ErrorMessage;
????????????????}
????????????}
????????????catch?(Exception?e)
????????????{
????????????????ID?=?0;
????????????????this.ErrorMessage?=?e.Message.ToString();
????????????}
????????????return?flag;
????????}
????????//更新
????????public?int?Update(
????????int?ID
?????????int?DrugsID
?????????int?HospitalsID
?????????int?BoxNumber
?????????double?OutPrice
?????????string?OutTime
?????????int?SubShopsID
?????????string?Maker
?????????string?ExpireDate
?????????string?Remarks
????????)
????????{
????????????int?flag?=?0;
????????????try
????????????{
????????????????DAL.ExecuteProcedure?exec?=?new?DAL.ExecuteProcedure();
????????????????SqlParameter[]?parameters?=?{
new?SqlParameter(“@ID“?ID)
new?SqlParameter(“@DrugsID“?DrugsID)
new?SqlParameter(“@HospitalsID“?HospitalsID)
new?SqlParameter(“@BoxNumber“?BoxNumber)
new?SqlParameter(“@OutPrice“?OutPrice)
new?SqlParameter(“@Ou
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????111616??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\bin\Debug\BLL.dll
?????文件?????351744??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\bin\Debug\BLL.pdb
?????文件?????110592??2012-05-30?17:11??醫藥ERP管理系統源碼(NET)\BLL\bin\Debug\CarlosAg.Excelxm
?????文件???????8192??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\bin\Debug\DAL.dll
?????文件??????30208??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\bin\Debug\DAL.pdb
?????文件??????72192??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\bin\Debug\Tools.dll
?????文件?????204288??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\bin\Debug\Tools.pdb
?????文件???????4440??2014-08-21?22:15??醫藥ERP管理系統源碼(NET)\BLL\BLL.csproj
?????文件??????14590??2014-09-16?21:12??醫藥ERP管理系統源碼(NET)\BLL\Business.cs
?????文件??????14257??2014-11-15?09:55??醫藥ERP管理系統源碼(NET)\BLL\BusinessDelevery.cs
?????文件???????7039??2014-08-20?21:38??醫藥ERP管理系統源碼(NET)\BLL\BusinessStaffs.cs
?????文件???????1307??2013-07-30?00:28??醫藥ERP管理系統源碼(NET)\BLL\ConvertData.cs
?????文件????????868??2013-09-21?10:23??醫藥ERP管理系統源碼(NET)\BLL\Databa
?????文件??????12011??2014-03-27?23:50??醫藥ERP管理系統源碼(NET)\BLL\Departments.cs
?????文件??????14895??2014-11-15?09:53??醫藥ERP管理系統源碼(NET)\BLL\Drugs.cs
?????文件???????8399??2013-09-26?23:12??醫藥ERP管理系統源碼(NET)\BLL\Folders.cs
?????文件???????5874??2014-05-09?18:31??醫藥ERP管理系統源碼(NET)\BLL\Functions.cs
?????文件???????8381??2014-07-15?19:31??醫藥ERP管理系統源碼(NET)\BLL\Hospitals.cs
?????文件???????8960??2014-08-05?14:38??醫藥ERP管理系統源碼(NET)\BLL\InStoreCollections.cs
?????文件???????8622??2014-08-05?14:36??醫藥ERP管理系統源碼(NET)\BLL\InStoreInvoice.cs
?????文件??????11072??2014-08-05?14:41??醫藥ERP管理系統源碼(NET)\BLL\InStoreLists.cs
?????文件??????16880??2014-09-16?21:18??醫藥ERP管理系統源碼(NET)\BLL\InStores.cs
?????文件????????383??2013-07-07?16:30??醫藥ERP管理系統源碼(NET)\BLL\Interface_BLL.cs
?????文件???????2177??2013-08-02?00:10??醫藥ERP管理系統源碼(NET)\BLL\LogDB.cs
?????文件???????2649??2013-09-26?23:14??醫藥ERP管理系統源碼(NET)\BLL\MailAttachments.cs
?????文件??????19018??2013-08-26?00:24??醫藥ERP管理系統源碼(NET)\BLL\Mails.cs
?????文件??????13661??2014-03-24?21:30??醫藥ERP管理系統源碼(NET)\BLL\Modules.cs
?????文件???????1688??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
?????文件??????27331??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\obj\Debug\BLL.csprojResolveAssemblyReference.cache
?????文件?????111616??2015-08-12?10:42??醫藥ERP管理系統源碼(NET)\BLL\obj\Debug\BLL.dll
............此處省略1623個文件信息
- 上一篇:問卷調查模擬數據2.rar
- 下一篇:捷宇科技DoccameraOcx控件.exe
評論
共有 條評論