|
楼主 |
发表于 2013-3-6 10:02:40
|
显示全部楼层
admin 发表于 2013-3-4 17:53
你说的双击不能执行,有没有什么提示啊,还是双击 后什么都不出来,我需要看看你的错误提示,如果什么也没有 ...
就是什么错误提示也不显示,点了没反应! 以下是Load事件
private void frmMain_Load(object sender, EventArgs e)
{
////////////////////////////////////////////////////////////////////////////////////////
string path = cnfiguraserver + " /" + "User:" + cnfigurausername + " " + cnfigurapwd;
if (os.connectState(path))
{
}
else
{
//MessageBox.Show("请检查图片路径是否配置正确或服务器是否正确连接!!", "友情提醒", MessageBoxButtons.OK, MessageBoxIcon.Information);
//return;
}
////////////////////////////////////////////////////////////////////////////////////////
this.labelfirstpage.Enabled = false;
labeluppage.Enabled = false;
//总页数
//getcount();
labelsearchcount.Visible = true;//总条数
label17.Visible = true;
label18.Visible = true;
label16.Visible = true;
label15.Visible = true;
labelTotalCount.Visible = true;
labelendpage.Visible = true;
labeluppage.Visible = true;
labelfirstpage.Visible = true;
labelnextpage.Visible = true;
labelIndexNum.Visible = true;
label20.Visible = true;
//显示的页数
labelIndexNum.Text = pagenum.ToString();
//鼠标句柄
//this.MouseWheel += new MouseEventHandler(pb_mouswheel);
labeltishiinfo.Visible = false;
pbListPictor.Size = new Size(376, 373);
this.dgvMain.AutoGenerateColumns = false;
this.dtpStraTime.Value = Convert.ToDateTime("1998/01/23");
this.dtpEndTime.Value = DateTime.Now;
string[] strs = System.Environment.GetCommandLineArgs();
string ts = strs[0];
if (strs.Length > 1)
{
txtName.Text = strs[1];
}
string names = this.txtName.Text.Trim();
string txtnjbianhao = this.txtEndoscope.Text.Trim();//内镜编号
string id = this.txtID.Text.Trim();//唯一编号
string adminmissionNumbert = this.txtAdmissionNumber.Text.Trim();
string telNumber = this.txtBLNumber.Text.Trim();
string BLNumber = this.txtBLNumber.Text.Trim();
string equipment = this.txtEquipment.Text.Trim();
string division = this.txtDivision.Text.Trim();
string inspectDoctor = this.txtInspectDoctor.Text.Trim();//检查医生
string reviewDoctor = this.txtReviewDoctor.Text.Trim();//送检医生
string miaoshu = this.txtcontents.Text.Trim();
string jieguo = this.txtjianchajieguo.Text.Trim();
string memo = this.txtSee.Text.Trim();//内镜所见
DateTime start = this.dtpStraTime.Value;
DateTime end = this.dtpEndTime.Value;
//stxtName.Text = "唐安呈";
//根据参数查找数据
//List<Patients> listpatss = parservice.GetPathByName(txtName.Text.ToString().Trim());
// List<Patients> listpatss = parservice.GetPathByName(pagenum, pagesize, txtName.Text.ToString().Trim());
|
|