private void btnHistory_Click(object sender, EventArgs e)
        {
            DataRow dr = gridItemView.GetFocusedDataRow();
            if (dr == null)
                return;
            int itemID = Convert.ToInt32(dr["ItemID"]);
            int ManufacturerID = Convert.ToInt32(dr["ManufacturerID"]);
            int AccountID = Convert.ToInt32(lkAccount.EditValue);
            int unitID = Convert.ToInt32(dr["UnitID"]);

            WeightedAverageHistory form = new WeightedAverageHistory(itemID,AccountID,ManufacturerID,unitID);

            form.ShowDialog(this);
        }
コード例 #2
0
        private void btnHistory_Click(object sender, EventArgs e)
        {
            DataRow dr = gridItemView.GetFocusedDataRow();
            if (dr == null)
                return;
            int itemID = Convert.ToInt32(dr["ItemID"]);
            // rs.SupplierID = Convert.ToInt32(dr["SupplierID"]);
            int activityID = Convert.ToInt32(lkAccount.EditValue);
            int unitID = Convert.ToInt32(dr["UnitID"]);

            WeightedAverageHistory form = new WeightedAverageHistory(costElement);

            form.ShowDialog(this);
        }