Exemple #1
0
        protected override void PushFormData()
        {
            ClsServiceActivity lcActivity = (ClsServiceActivity)_LcActivity;

            lcActivity.ServiceBrief = richTextBoxServiceBrief.Text;
            lcActivity.ActivityCost = numericUpDownCharge.Value;
            base.PushFormData();
        }
Exemple #2
0
        protected override void UpdateFormData()
        {
            base.UpdateFormData();
            ClsServiceActivity lcActivity = (ClsServiceActivity)_LcActivity;

            if (string.IsNullOrWhiteSpace(lcActivity.ActivityName))
            {
                richTextBoxServiceBrief.Text = string.Empty;
            }
            else
            {
                richTextBoxServiceBrief.Text = lcActivity.ServiceBrief;
            }
            numericUpDownCharge.Value = Convert.ToDecimal(_LcActivity.ActivityCost);
        }