예제 #1
0
        private void PCSAdd_Click(object sender, EventArgs e)
        {
            Exception ex                = null;
            mUCs      p_mucs            = mUCs.s_mUCs;
            spCashUpdateTableAdapter ta = new spCashUpdateTableAdapter();
            Guid    catid               = Guid.Empty;
            Decimal cash                = 0.0M;

            try
            {
                cash = Convert.ToDecimal(PCAamount.Text);
            }
            catch (Exception exc)
            {
                ex = exc;
            }
            if (cAcc != null)
            {
                sitedb.spCashUpdateDataTable dt = ta.GetData(DateTime.Now, cAcc.accId, catid, cash, "Ca");
            }
            p_mucs.m_ucLoggedIn.Display();
        }
예제 #2
0
        private void PCSspend_Click(object sender, EventArgs e)
        {
            Exception ex                = null;
            mUCs      p_mucs            = mUCs.s_mUCs;
            spCashUpdateTableAdapter ta = new spCashUpdateTableAdapter();
            DataRowView drv             = (DataRowView)PCScombo.SelectedItem;
            Guid        catid           = Guid.Parse(drv.Row["pccId"].ToString());
            //Guid catid = Guid.Parse("1AE2822A-1EC5-4E29-9670-56101BED344C");
            Decimal cash = 0.0M;

            try
            {
                cash = Convert.ToDecimal(PCSamount.Text);
            }
            catch (Exception exc)
            {
                ex = exc;
            }
            if (cAcc != null)
            {
                sitedb.spCashUpdateDataTable dt = ta.GetData(DateTime.Now, cAcc.accId, catid, cash, "Cs");
            }
            p_mucs.m_ucLoggedIn.Display();
        }