2 zhoukangning zhoukangning 于 2013.07.29 09:36 提问

.net oracal 新手求帮助

新手,请问省略号位置处的代码怎么写。求帮助

private void btnOKCHS_Click_1(object sender, EventArgs e)
{
ServiceClient client = new ServiceClient();
WcfDb.OracleParameter[] oParms =
{
new OracleParameter{ ParameterName=":a0",DbType= WcfDb.DbType.String, Value= txtHZXM .Text },
new OracleParameter{ ParameterName=":a1",DbType= WcfDb.DbType.Date, Value= dateTimePicker1.Value.Date },
new OracleParameter{ ParameterName=":a2",DbType=WcfDb.DbType.String , Value= CheckByRadio(grbCHS) },
new OracleParameter{ ParameterName=":a3",DbType=WcfDb.DbType.String , Value= CheckByRadio(grbGCCHS) },
new OracleParameter{ ParameterName=":a4",DbType= WcfDb.DbType.String, Value= CheckByRadio(grbJKCHS) },
new OracleParameter{ ParameterName=":a5",DbType= WcfDb.DbType.String, Value= CheckByRadio(grbFSJL) },
new OracleParameter{ ParameterName=":a6",DbType= WcfDb.DbType.Decimal, Value=Convert.ToDecimal(txtDCZS.Text)},
new OracleParameter{ ParameterName=":a7",DbType= WcfDb.DbType.Decimal, Value= Convert.ToDecimal(txtDCXS.Text) },
new OracleParameter{ ParameterName=":a8",DbType= WcfDb.DbType.String, Value= cbbJL.Text },
new OracleParameter{ ParameterName=":a9",DbType=WcfDb.DbType.String , Value= CheckByRadio(grbYYPL) },
new OracleParameter{ ParameterName=":a10",DbType=WcfDb.DbType.String , Value= cbbDWSJ.Text },
};
string sqladdCHS = @"INSERT into PD_ERYTHROPOIETIN_USE_RECORD(PATIENT_ID, PRESCRIPT_DATE, CHSZL, GCCHS, JKCHS, GYFS, DCJLGL, DCJL, JLDW, YYCS, DWSJ) VALUES (:a0,:a1,:a2,:a3,:a4,:a5,:a6,:a7,:a8,:a9,:a10)";

        List<WcfDb.OracleParameter> listOrclPara = new List<OracleParameter>();

        。。。。。。。。。。。。。。。。。。。。。。。。。。。。
        //listOrclPara.Add(new OracleParameter { ParameterName = "sqladdCHS", DbType = WcfDb.DbType.String, Value = this.txtQT.Text });
        int effectRowCount = client.ExecuteNonQuery(WcfDb.CommandType.Text, sqladdCHS, listOrclPara.ToArray());
        if (effectRowCount > 0)
        {
            MessageBox.Show("添加成功");
        }
        else
        { 
            MessageBox.Show("添加失败");
        }
        client.Close();
    } 
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!