示例#1
0
        void Link4_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "Project Wise Receivable";

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);

            if (grdFlatView.RowCount > 0)
            {
                sHeader = "Project Name: " + m_sProjectName + " As On " + string.Format(Convert.ToDateTime(dxDate.EditValue).ToShortDateString()) + "";
            }
            else
            {
                sHeader = "Project Name: ";
            }

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 40, 800, 60), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 9, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#2
0
 void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
 {
     DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);
     brick              = e.Graph.DrawString("Cancel Register", Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
     brick.Font         = new Font("Arial", 11, FontStyle.Bold);
     brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
 }
示例#3
0
        void Link5_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader  = null;
            string sHeader1 = null;

            DevExpress.XtraPrinting.TextBrick brick  = default(DevExpress.XtraPrinting.TextBrick);
            DevExpress.XtraPrinting.TextBrick brick1 = default(DevExpress.XtraPrinting.TextBrick);

            sHeader  = "Payment Info" + " - " + m_sFlatNo + " (" + m_sBuyerName + ")";
            sHeader1 = m_sCCName + " - " + m_sFlatType + " - " + m_sBlockName + " - " + m_sLevelName;

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);

            brick1              = e.Graph.DrawString(sHeader1, Color.Navy, new RectangleF(0, 40, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick1.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick1.StringFormat = new BrickStringFormat(StringAlignment.Near);

            //string sHeader = null;
            //DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            //sHeader = "Payment Info-" + m_sBuyerName;

            //brick = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            //brick.Font = new Font("Arial", 11, FontStyle.Bold);
            //brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#4
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader  = null;
            string sHeader1 = null;

            DevExpress.XtraPrinting.TextBrick brick  = default(DevExpress.XtraPrinting.TextBrick);
            DevExpress.XtraPrinting.TextBrick brick1 = default(DevExpress.XtraPrinting.TextBrick);

            if (m_sType == "F")
            {
                sHeader = "Payment Info For Fiscal Year " + sFiscalYear + "" + " - " + m_sFlatNo;
            }
            else
            {
                sHeader = "Payment Info " + " - " + m_sCCName + "(" + m_sFlatNo + ")";
            }

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);

            brick1              = e.Graph.DrawString(sHeader1, Color.Navy, new RectangleF(0, 40, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick1.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick1.StringFormat = new BrickStringFormat(StringAlignment.Near);
        }
示例#5
0
        void Link3_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            if (grdViewAbs.FocusedRowHandle < 0 && grdViewProj.FocusedRowHandle < 0 && grdViewUnit.FocusedRowHandle < 0)
            {
                return;
            }

            string sBrokerName = grdViewAbs.GetFocusedRowCellValue("BrokerName").ToString();
            string sCCName     = grdViewProj.GetFocusedRowCellValue("CostCentreName").ToString();
            string sHeader     = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            if (grdViewUnit.RowCount > 0)
            {
                sHeader = "Buyerwise Payable -" + sBrokerName + "(" + sCCName + ")";
            }
            else
            {
                sHeader = "Buyerwise Payable";
            }
            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#6
0
        void Link1_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "Cost Sheet For " + m_sCCName;

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#7
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "Demand Letter";

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 60), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 15, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Center);
        }
示例#8
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "Next Call Date Report from " + string.Format(Convert.ToDateTime(deFrom.EditValue).ToString("dd/MM/yyyy")) + " to " + deTo.EditValue.ToString();

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#9
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "Lead Register - From " + fromDate.ToString("dd-MMM-yyyy") + " To " + toDate.ToString("dd-MMM-yyyy");

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#10
0
        void Link2_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "SERVICE TAX CALCULATION FOR " + m_sCCName.ToUpper() + "" + " FOR THE MONTH OF " + Convert.ToDateTime(DateTime.Today).ToString("MMMM-yyyy").ToUpper();

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#11
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "CBPD PRICE DETAILS FOR " + m_sFlatTypeName;

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 15, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);

            //if (advBandViewReport.RowCount > 0 || advBandViewReport.RowCount > 0) { sHeader = "Project Name: " + m_sCCName + ""; }
            //else sHeader = "Project Name: ";

            //brick = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 40, 800, 60), DevExpress.XtraPrinting.BorderSide.None);
            //brick.Font = new Font("Arial", 9, FontStyle.Bold);
            //brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#12
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            if (m_sMode == "I")
            {
                sHeader = "Interest Calculation -" + m_sBuyerName + "( " + m_sFlatNo + " )  As On  " + Convert.ToDateTime(dEAsOnDate.EditValue).ToString("dd-MM-yyy");
            }
            else
            {
                sHeader = "Statement Of Account-" + m_sBuyerName + "( " + m_sFlatNo + " )  As On  " + Convert.ToDateTime(dEAsOnDate.EditValue).ToString("dd-MM-yyy");
            }

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#13
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);
            sHeader = "Complaint Register From " + String.Format("{0:dd-MMM-yyyy}", CommFun.IsNullCheck(dtpFrmDate.EditValue, CommFun.datatypes.VarTypeDate)) + " To " + String.Format("{0:dd-MMM-yyyy}", CommFun.IsNullCheck(dtpToDate.EditValue, CommFun.datatypes.VarTypeDate)) + "";

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
            if (DGvTransView.FilterPanelText.ToString() != "")
            {
                sHeader = "(" + DGvTransView.FilterPanelText.ToString() + ")";
                DevExpress.XtraPrinting.TextBrick brick1 = default(DevExpress.XtraPrinting.TextBrick);

                brick1              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 40, 600, 60), DevExpress.XtraPrinting.BorderSide.None);
                brick1.Font         = new Font("Arial", 9, FontStyle.Bold);
                brick1.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
            }
        }
示例#14
0
        void Link3_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "Competitor Analysis";

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);

            if (Convert.ToInt32(barEditItem1.EditValue) > 0)
            {
                sHeader = "(" + cboCostCentre.GetDisplayText(Convert.ToInt32(barEditItem1.EditValue)).ToString() + ")";
                DevExpress.XtraPrinting.TextBrick brick1 = default(DevExpress.XtraPrinting.TextBrick);

                brick1              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 40, 800, 60), DevExpress.XtraPrinting.BorderSide.None);
                brick1.Font         = new Font("Arial", 9, FontStyle.Bold);
                brick1.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
            }
        }
示例#15
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            if (m_sType == "Loan")
            {
                sHeader = "Loan Statistics";
            }
            else
            {
                if (Convert.ToInt32(cboProject.EditValue) > 0)
                {
                    sHeader = "Sales TimeLine for " + proj.GetDisplayText(cboProject.EditValue).ToString();
                }
            }

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
        }
示例#16
0
        void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e)
        {
            string sHeader = null;

            DevExpress.XtraPrinting.TextBrick brick = default(DevExpress.XtraPrinting.TextBrick);

            sHeader = "Check List ";

            brick              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 20, 600, 40), DevExpress.XtraPrinting.BorderSide.None);
            brick.Font         = new Font("Arial", 11, FontStyle.Bold);
            brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);


            if (cboTypeName.EditValue.ToString() != "None")
            {
                sHeader = "(" + repositoryItemComboBox1.GetDisplayText(cboTypeName.EditValue).ToString() + ")";
                DevExpress.XtraPrinting.TextBrick brick1 = default(DevExpress.XtraPrinting.TextBrick);

                brick1              = e.Graph.DrawString(sHeader, Color.Navy, new RectangleF(0, 40, 800, 60), DevExpress.XtraPrinting.BorderSide.None);
                brick1.Font         = new Font("Arial", 9, FontStyle.Bold);
                brick1.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near);
            }
        }