本文整理汇总了C#中DataService.ExecuteNoneQuery方法的典型用法代码示例。如果您正苦于以下问题:C# DataService.ExecuteNoneQuery方法的具体用法?C# DataService.ExecuteNoneQuery怎么用?C# DataService.ExecuteNoneQuery使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataService
的用法示例。
在下文中一共展示了DataService.ExecuteNoneQuery方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: XoaPhieuThu
public int XoaPhieuThu(int SoPT)
{
SqlCommand cmd = new SqlCommand("dbo.Delete_PhieuThu");
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@SoPT", SoPT));
DataService dS = new DataService();
return dS.ExecuteNoneQuery(cmd);
}
示例2: XacNhanPhieuChi
public int XacNhanPhieuChi(int SoPC)
{
SqlCommand cmd = new SqlCommand("dbo.XacNhan_PhieuChi");
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@SoPC", SoPC));
DataService dS = new DataService();
return dS.ExecuteNoneQuery(cmd);
}
示例3: CapNhatPhieuThu
public int CapNhatPhieuThu(int SoPT, String maKH, DateTime ngayLap, DateTime ngayThu, int MaKT, Int64 SoTienThu, String ghiChu, Boolean tinhTrang)
{
SqlCommand cmd = new SqlCommand("dbo.Update_PhieuThu");
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@SoPT", SoPT));
cmd.Parameters.Add(new SqlParameter("@MaKH", maKH));
cmd.Parameters.Add(new SqlParameter("@NgayLap", ngayLap));
cmd.Parameters.Add(new SqlParameter("@NgayThu", ngayThu));
cmd.Parameters.Add(new SqlParameter("@MaKT", MaKT));
cmd.Parameters.Add(new SqlParameter("@SoTienThu", SoTienThu));
cmd.Parameters.Add(new SqlParameter("@GhiChu", ghiChu));
cmd.Parameters.Add(new SqlParameter("@TinhTrang", tinhTrang));
DataService dS = new DataService();
return dS.ExecuteNoneQuery(cmd);
}
示例4: CapNhatPhieuChi
public int CapNhatPhieuChi(int SoPC, String MaNV, DateTime ngayLap, DateTime ngayChi, int MaKC, Int64 SoTienChi, String ghiChu, Boolean tinhTrang)
{
SqlCommand cmd = new SqlCommand("dbo.Update_PhieuChi");
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@SoPC", SoPC));
cmd.Parameters.Add(new SqlParameter("@MaNV", MaNV));
cmd.Parameters.Add(new SqlParameter("@NgayLap", ngayLap));
cmd.Parameters.Add(new SqlParameter("@NgayChi", ngayChi));
cmd.Parameters.Add(new SqlParameter("@MaKC", MaKC));
cmd.Parameters.Add(new SqlParameter("@SoTienChi", SoTienChi));
cmd.Parameters.Add(new SqlParameter("@GhiChu", ghiChu));
cmd.Parameters.Add(new SqlParameter("@TinhTrang", tinhTrang));
DataService dS = new DataService();
return dS.ExecuteNoneQuery(cmd);
}
示例5: LuuPhieuThu
public int LuuPhieuThu(String maKH, DateTime ngayLap, DateTime ngayThu, int MaKT, Int64 SoTienThu, String ghiChu, Boolean tinhTrang)
{
SqlCommand cmd = new SqlCommand("dbo.Insert_PhieuThu");
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@MaKH", maKH));
cmd.Parameters.Add(new SqlParameter("@NgayLap", ngayLap));
cmd.Parameters.Add(new SqlParameter("@NgayThu", ngayThu));
cmd.Parameters.Add(new SqlParameter("@MaKT", MaKT));
cmd.Parameters.Add(new SqlParameter("@SoTienThu", SoTienThu));
cmd.Parameters.Add(new SqlParameter("@GhiChu", ghiChu));
cmd.Parameters.Add(new SqlParameter("@TinhTrang", tinhTrang));
SqlParameter returnValue = new SqlParameter("@SoPT", SqlDbType.Int);
returnValue.Direction = ParameterDirection.Output;
cmd.Parameters.Add(returnValue);
DataService dS = new DataService();
dS.ExecuteNoneQuery(cmd);
return Convert.ToInt32(cmd.Parameters["@SoPT"].Value.ToString());
}