private void defCoordPatientInfo(
                int lcol = 0,
                int xcd = 0,
                int ycd = -1,
                ElmScrns es = ElmScrns.NotFound,
                int width = 0,
                bool withVal = true,
                UseWhat uw = UseWhat.None,
                string strText = "",
                FormScrnOpt frmscropt = FormScrnOpt.None,
                int vstartx = 0
                )
            {
                x_coord = (xcd != 0) ? xcd : 25;
                int cur_x = x_coord;
                int valstart_x = x_coord;

                lftColStart = (lcol != 0) ? lcol : 1;
                lftColEnd = x_coord;

                if (x_coord == 25)
                    y_coord++;

                y_coord = (ycd != -1) ? ycd : y_coord;

                int lblcoord_y = y_coord;

                valwidth = x_coord + width;

                switch (frmscropt)
                {
                    case FormScrnOpt.Remark2:
                        lblcoord_y = lblcoord_y - 1;
                        break;
                    case FormScrnOpt.InLinewithAnother:
                        valstart_x = valstart_x + vstartx;
                        break;
                    case FormScrnOpt.PhoneWithParen:
                        lftColStart = lftColStart - 1;
                        cur_x = cur_x + 1;
                        break;
                }

                Elements.Add(
                    new uc_maptxtcaretinfo(
                        PrimeMainMenu.PatientInfo,
                        new System.Drawing.Point(cur_x, y_coord),
                        new uc_formpartsinfo(strText,
                            new System.Drawing.Point(lftColStart, lblcoord_y),
                            new System.Drawing.Point(lftColEnd, lblcoord_y)),
                        new uc_formpartsinfo("-val-",
                            new System.Drawing.Point(valstart_x, y_coord),
                            new System.Drawing.Point(valwidth, y_coord)),
                        es,
                        withVal,
                        uw
                    ));
            }
예제 #2
0
            private void defCoordPatientIns(
                int lcol              = 0,
                int xcd               = 0,
                bool lend             = false,
                int ycd               = -1,
                ElmScrns es           = ElmScrns.NotFound,
                int width             = 0,
                bool withVal          = true,
                UseWhat uw            = UseWhat.None,
                string strText        = "",
                FormScrnOpt frmscropt = FormScrnOpt.None
                )
            {
                x_coord     = (xcd != 0) ? xcd : 27;
                lftColStart = (lcol != 0) ? lcol : 1;
                lftColEnd   = (lend == true) ? x_coord : (x_coord - 1);

                if (x_coord == 27)
                {
                    y_coord++;
                }

                y_coord = (ycd != -1) ? ycd : y_coord;

                valwidth = x_coord + width;

                int phonecoord_x = x_coord;

                switch (frmscropt)
                {
                case FormScrnOpt.PhoneWithParen:
                    phonecoord_x++;
                    break;
                }

                Elements.Add(
                    new uc_maptxtcaretinfo(
                        PrimeMainMenu.PatientIns,
                        new System.Drawing.Point(phonecoord_x, y_coord),
                        new uc_formpartsinfo(strText,
                                             new System.Drawing.Point(lftColStart, y_coord),
                                             new System.Drawing.Point(lftColEnd, y_coord)
                                             ),
                        new uc_formpartsinfo("-val-",
                                             new System.Drawing.Point(phonecoord_x, y_coord),
                                             new System.Drawing.Point(valwidth, y_coord)
                                             ),
                        es,
                        withVal,
                        uw
                        ));
            }
            private void defCoordPatientIns(
                int lcol = 0,
                int xcd = 0,
                bool lend = false,
                int ycd = -1,
                ElmScrns es = ElmScrns.NotFound,
                int width = 0,
                bool withVal = true,
                UseWhat uw = UseWhat.None,
                string strText = "",
                FormScrnOpt frmscropt = FormScrnOpt.None
                )
            {
                x_coord = (xcd != 0) ? xcd : 27;
                lftColStart = (lcol != 0) ? lcol : 1;
                lftColEnd = (lend == true) ? x_coord : (x_coord - 1);

                if(x_coord == 27)
                    y_coord++;

                y_coord = (ycd != -1) ? ycd : y_coord;

                valwidth = x_coord + width;

                int phonecoord_x = x_coord;
                switch (frmscropt)
                {
                    case FormScrnOpt.PhoneWithParen:
                        phonecoord_x++;
                        break;
                }

                Elements.Add(
                    new uc_maptxtcaretinfo(
                        PrimeMainMenu.PatientIns,
                        new System.Drawing.Point(phonecoord_x, y_coord),
                        new uc_formpartsinfo(strText,
                            new System.Drawing.Point(lftColStart, y_coord),
                            new System.Drawing.Point(lftColEnd, y_coord)
                        ),
                        new uc_formpartsinfo("-val-",
                            new System.Drawing.Point(phonecoord_x, y_coord),
                            new System.Drawing.Point(valwidth, y_coord)
                        ),
                        es,
                        withVal,
                        uw
                    ));
            }
예제 #4
0
            private void defCoordPatientInfo(
                int lcol              = 0,
                int xcd               = 0,
                int ycd               = -1,
                ElmScrns es           = ElmScrns.NotFound,
                int width             = 0,
                bool withVal          = true,
                UseWhat uw            = UseWhat.None,
                string strText        = "",
                FormScrnOpt frmscropt = FormScrnOpt.None,
                int vstartx           = 0
                )
            {
                x_coord = (xcd != 0) ? xcd : 25;
                int cur_x      = x_coord;
                int valstart_x = x_coord;


                lftColStart = (lcol != 0) ? lcol : 1;
                lftColEnd   = x_coord;

                if (x_coord == 25)
                {
                    y_coord++;
                }

                y_coord = (ycd != -1) ? ycd : y_coord;

                int lblcoord_y = y_coord;

                valwidth = x_coord + width;

                switch (frmscropt)
                {
                case FormScrnOpt.Remark2:
                    lblcoord_y = lblcoord_y - 1;
                    break;

                case FormScrnOpt.InLinewithAnother:
                    valstart_x = valstart_x + vstartx;
                    break;

                case FormScrnOpt.PhoneWithParen:
                    lftColStart = lftColStart - 1;
                    cur_x       = cur_x + 1;
                    break;
                }

                Elements.Add(
                    new uc_maptxtcaretinfo(
                        PrimeMainMenu.PatientInfo,
                        new System.Drawing.Point(cur_x, y_coord),
                        new uc_formpartsinfo(strText,
                                             new System.Drawing.Point(lftColStart, lblcoord_y),
                                             new System.Drawing.Point(lftColEnd, lblcoord_y)),
                        new uc_formpartsinfo("-val-",
                                             new System.Drawing.Point(valstart_x, y_coord),
                                             new System.Drawing.Point(valwidth, y_coord)),
                        es,
                        withVal,
                        uw
                        ));
            }