Beispiel #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            String sTempHeader = txtHeader.Text.Trim();

            String sTempBody = txtMessage.Text.Trim();

            String sTempFooter = txtFooter.Text.Trim();

            CPrintStyle oPrint = new CPrintStyle();

            oPrint.Header = sTempHeader;

            oPrint.Body = sTempBody;

            oPrint.Footer = sTempFooter;

            CCommonConstants oConstant = ConfigManager.GetConfig <CCommonConstants>();

            oPrint.StyleID = m_styleID;// oConstant.PrintStyleID;

            CUserManager oManager = new CUserManager();

            CResult oResult = oManager.UpdatePrintStyle(oPrint);

            if (oResult.IsSuccess)
            {
                lblSaveStatus.Text = " Receipt style is updated successfully.";

                lblSaveStatus.Visible = true;
            }
            else
            {
                lblSaveStatus.Text = " Could not update receipt style. Please try again.";

                lblSaveStatus.Visible = true;
            }
        }