医药CRM系统开发

自已做医药CRM系统有四年了,终于可以算个产品了,努力市场化,今年重种将医药营销的理念加入CRM
posts - 233, comments - 201, trackbacks - 2, articles - 0

2012年5月19日

/****** 对象:  UserDefinedFunction [dbo].[HZ2PY]    脚本日期: 05/02/2012 18:23:38 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
drop function getpy
go
--汉字转换拼音函数
create Function [dbo].[getpy](     @cString nVarChar (200)) Returns nVarChar(100)
AS
Begin
    Declare @nFor    Int      --字符串循环用
    Declare @nPYFor  Int      --拼音串循环用
    Declare @cPYString  VarChar(100)     --拼音串
    Declare @cCurChar VarChar(2)         --当前字符 
    Declare @vReturn VarChar (100)      ----将返回的结果
    Set @cPYString = '吖八嚓咑妸发旮铪讥讥咔垃呣拿讴趴七呥仨他哇哇哇夕丫匝咗'
    Set @vReturn = '' 
    Set @nFor = 0 
    While @nFor < Len(@cString)  
    Begin  
        Set @nFor = @nFor + 1  
        Set @cCurChar = Substring(@cString,@nFor,1)  
        Set @nPYFor = 0  
        While @nPYFor < len(@cPYString)     
        Begin     
            Set @nPYFor = @nPYFor + 1 
            If @cCurChar < Substring(@cPYString,@nPYFor,1)  
                Begin        
                    Set @vReturn = Rtrim(@vReturn) + (Case When @nPYFor <> 1 Then Char(63 + @nPYFor) Else @cCurChar End)  
                    Break       
                End    
            Else    
                Begin  
                    Continue
                End    
        End   
    End
    Return @vReturn
END

posted @ 2012-05-19 14:35 hhq80 阅读(2) 评论(0) 编辑

2011年11月17日

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Web;
using System.Net;
using Sanzond;
using System.Text.RegularExpressions;
using mshtml;

namespace HttpPostGet
{
    public partial class jond : Form
    {
        public jond()
        {
            InitializeComponent();
        }

        private void btnDisplay_Click(object sender, EventArgs e)
        {
            Cmd.CreateDirectory("c:\\xj");
            string url;
            url = txtURL.Text;
            lbPage.Text = "0";
            if (url.Length > 0)
            {
                webBrowserPreview.Navigate(url);
                //等待加载完毕
                //while (webBrowserPreview.ReadyState < WebBrowserReadyState.Complete) Application.DoEvents();
            }
            else
            {
                MessageBox.Show("请输入网址!");
            }
        }


        private void jond_Load(object sender, EventArgs e)
        {

        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            txtURL.Text = "http://www.sanzond.com/tools";
            webBrowserPreview.Navigate("http://www.sanzond.com/tools");
        }


        private void webBrowserPreview_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            //listBox1.Items.Add(webBrowserPreview.ReadyState);

            while (webBrowserPreview.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }  


            //if (webBrowser1.ReadyState < WebBrowserReadyState.Complete || webBrowser1.Url.ToString() == LastUrl) return;
            //LastUrl = webBrowser1.Url.ToString();

            if (webBrowserPreview.ReadyState == WebBrowserReadyState.Complete)
            {
                HtmlElement link = webBrowserPreview.Document.GetElementById("pager");

               link.SetAttribute("selectedindex", (Convert.ToInt32(link.GetAttribute("selectedindex"))+1).ToString());
               lbPage.Text = link.GetAttribute("selectedindex").ToString();
               link.InvokeMember("onchange");
               HTMLDocument html = (HTMLDocument)webBrowserPreview.Document.DomDocument;
               IHTMLControlElement img = (IHTMLControlElement)webBrowserPreview.Document.Images["Image1"].DomElement;
               IHTMLControlRange range = (IHTMLControlRange)((HTMLBody)html.body).createControlRange();
               range.add(img);
               range.execCommand("Copy", false, null);

               img = null;
               range = null;
               html = null;
             
               if (Clipboard.ContainsImage())
               {
                   this.pictureBox1.Image = Clipboard.GetImage();
                   //if (Clipboard.GetImage().)
                   pictureBox1.Image.Save("c:\\xj\\" +  link.GetAttribute("selectedindex").ToString() + ".jpg");
                   //pictureBox1.
                   lbPage.Text = Convert.ToString(Convert.ToInt32(lbPage.Text) + 1);
                   Clipboard.SetImage(null);
               }
               else
               {
                   MessageBox.Show("执行不成功");
               }

               Clipboard.Clear();

       

            }
        }


    }
}

posted @ 2011-11-17 14:42 hhq80 阅读(38) 评论(0) 编辑

2011年9月7日

PDA中部署webservice程序需安装的环境
PocketBuilder.ARM.CAB 运行环境
pocketSOAP.arm.CAB webservice运行环境
pksoapIF.dll pocketBuilder支持webservice的dll

 

WINDOWS平台开发需要的工具及环境

pocketSOAP

http://www.pocketsoap.com/

 

pocketbulider

pksoapif.dll

参考文件

http://notbig.blog.163.com/blog/static/21316286200841310546432/

 iis部署ws需安装程序

powerbuilder 11的环境安装

 D:\Program Files\Sybase115\PowerBuilder 11.5\DotNET\bin
将当前目录下的文件放至ws的BIN目录
将D:\Program Files\Sybase115\Shared\PowerBuilder\PBDWM115.DLL放入windows目录

posted @ 2011-09-07 19:02 hhq80 阅读(72) 评论(1) 编辑

2011年5月15日

ALTER proc [P_DBBACKUP](@DbName varchar(50))
as
DECLARE @dbPath VARCHAR(200)
select @dbPath='E:\bak\'
select @dbPath=@dbPath+@DbName+'_'+convert(varchar(20),getdate(),112)+replace(convert(varchar(20),getdate(),108),':','')+'.bak'
BACKUP DATABASE @DbName
TO DISK = @dbPath
WITH INIT
,NOUNLOAD
,NAME = N'backup database'
,NOSKIP
,STATS = 10
,NOFORMAT

 

posted @ 2011-05-15 09:50 hhq80 阅读(16) 评论(0) 编辑

2010年9月27日

知识库文章编号: 2261464
语言: All (Global)
平台: i386
位置: (http://hotfixv4.microsoft.com/SQL%20Server%202008%20R2/nosp/2008R2_RTM_SapBI_CU3_2261464_10_50_1734_/10.50.1734.0/free/418819_intl_i386_zip.exe)
密码: +8z[6#s
密码更改日期: 09/28/2010
下一个密码: cNuuB9rv7
-----------------------------------------------------------
知识库文章编号: 2261464
语言: All (Global)
平台: i386
位置: (http://hotfixv4.microsoft.com/SQL%20Server%202008%20R2/nosp/2008R2_RTM_SNAC_CU3_2261464_10_50_1734_x/10.50.1734.0/free/418822_intl_i386_zip.exe)
密码: u0HS*@0
密码更改日期: 09/28/2010
下一个密码: 8j7t!aY3ZG
-----------------------------------------------------------
知识库文章编号: 2121407, 2133566, 2142496, 2225696, 2261464, 2268122, 2269585, 2270925, 2276203, 2277078, 2282505, 2283036, 2283051, 2283072, 2283091, 2283186, 2285517, 2285711, 2285720, 2290377, 2291697, 2292807, 2295244, 2297903, 2315727, 968398, 979212, 980142, 981159, 981811, 981814, 981881, 981888, 982207, 982363, 982376, 983429, 983480, 983500, 983564
语言: All (Global)
平台: i386
位置: (http://hotfixv4.microsoft.com/SQL%20Server%202008%20R2/nosp/SQLServer2008R2_RTM_CU3_2261464_10_50_17/10.50.1734.0/free/418815_intl_i386_zip.exe)
密码: ZV{QRlcLq
密码更改日期: 09/28/2010
下一个密码: y[BpHfp

posted @ 2010-09-27 23:36 hhq80 阅读(298) 评论(1) 编辑

2010年8月15日

摘要: 在win7 64位的系统中,如果已经安装了vs 2008,并且安装路径不在系统盘,如安装vs2008在d盘,那么如果你安装sql server 2008,那么将会出现Upgrade Failed due to the following Error.The error code is :-2147467259.Message:未指定的错误,实际是SQL Server Business Intell...阅读全文

posted @ 2010-08-15 11:03 hhq80 阅读(805) 评论(0) 编辑

2010年8月5日

摘要: 1.主页面 <a href="#" onclick="javascript:addressWindow2('email')">收件人:</a> 增加函数 function addressWindow2(sign) { var url = "../SelectUser.aspx?valobj=存放用户值的控件名&txtobj=存放用户名称的控件名"; var tree...阅读全文

posted @ 2010-08-05 13:16 hhq80 阅读(62) 评论(0) 编辑

2010年7月30日

摘要: 在做医药行业软件七年,在2006遇上个医药全国总代,刚好上我们公司的医药GSP进销存系统,而传统的商业进销存完全不能适应这个企业,自已就完全根据这个企业的实际情况重写了这个系统,直到今天一直运行稳定,呵呵,想想自已的这方面能力还是蛮强的,但带来个问题,软件不出问题,企业也不付维护费。哎,矛盾,好好写程序没钱挣的结果,这些年也没收上一年的维护费,失败,做生意和做程序是完全两回事呀,做生意的永远比做程...阅读全文

posted @ 2010-07-30 17:51 hhq80 阅读(79) 评论(1) 编辑

摘要: USE [soa]GO/****** Object: Table [dbo].[DimDate] Script Date: 07/30/2010 17:18:32 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[DimDate]([DateKey] [int] NOT NULL,[FullDateAlt...阅读全文

posted @ 2010-07-30 17:20 hhq80 阅读(90) 评论(0) 编辑

2010年7月15日

摘要: rdlc中定义导航=Parameters!url.Value & "/orders/ImportCurrentOrderSales.aspx?OrderID="& Fields!ddbh.Value //将第一个框架中的日期转换成从00点开始 ObjectDataSource1.SelectParameters["startddrq"].DefaultValue = StartTi...阅读全文

posted @ 2010-07-15 15:35 hhq80 阅读(88) 评论(0) 编辑