SqlCommand cmd = new SqlCommand("select (select isnull(sum(totalquantity),0) from c_inv_transaction where item_id =" + str + " and lot_No ='" + text + "' and transactionType = 'IN') - (select isnull(sum(totalquantity),0) from c_inv_transaction where item_id =" + str + " and lot_No ='" + text + "' and transactionType = 'OUT') as aa");
this.label4.Text = (string)cmd.ExecuteScalar();
HUX布斯
BIG阳
相关分类