Thursday, December 13, 2007

o f f i c e

Current time : 08:50pm

Current location : Office

Current mood : Discouraged

What's bothering me :

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) {

decimal Qty = 0, Carcass = 0, Total = 0, Disc = 0, TotDisc = 0;
if (xrLabel34.Text != "")
Qty = System.Convert.ToDecimal(xrLabel34.Text);
if (xrLabel34.Text == "")Qty = 1;if (xrLabel36.Text != "")
Carcass = System.Convert.ToDecimal(xrLabel36.Text);
Total = Qty * Carcass;
GTotal = GTotal + Total;
xrLabel35.Text = Total.ToString();
if (xrLabel35.Text == "0")xrLabel35.Text = "";
else xrLabel35.Text = Total.ToString();
if (xrLabel2.Text != "")
Disc = System.Convert.ToDecimal(xrLabel2.Text);
if (Disc > 0 && Disc <>
{
TotDisc = ((Disc/100)* GTotal);
xrLabel2.Text = "Discount " + Disc + "%";
xrLabel35.Text = TotDisc.ToString();
}
}
.

..

...


Somebody save me.


1 comment:

Grace Koh said...

It's 10:44pm now. I hope you have left the office.