|
public void AlterInvoiceState(int InvoiceID, int State, string Remark)
{
string procName = "dbo.P_Invoice_AlterInvoiceState";
SqlParameter[] prams ={new SqlParameter("@InvoiceID",SqlDbType.Int),
new SqlParameter("@State",SqlDbType.Int),
new SqlParameter("@Remark",SqlDbType.VarChar,500),
new SqlParameter("@Ending", SqlDbType.VarChar, 500)
};
prams[0].Value = InvoiceID;
prams[1].Value = State;
prams[2].Value = Remark;
try
{
SqlServerHelper.RunExecute(procName, prams);
}
catch (Exception)
{
throw;
}
}
BLL
public void AlterInvoiceState(int InvoiceID, int State, string Remark)
{
try
{
DAL.AlterInvoiceState(InvoiceID, State, Remark);
}
catch (Exception)
{
throw;
}
}
CS代码
im.AlterInvoiceState(Convert.ToInt32(Request.QueryString["InvoiceID"]), 0, inv.Ending + this.txtEnding.Text + "审核人:" + ((User)Session["user"]).UserName);
|
|