private void defCoordSearchPatient( int cur_x = 0, int cur_y = 0, int lbls_x = 0, int lble_x = 0, int lbl_y = 0, int vals_x = 0, int vale_x = 0, int val_y = 0, ElmScrns a = ElmScrns.NotFound, bool b = false, UseWhat c = UseWhat.Field, string strText = "" ) { Elements.Add( new uc_maptxtcaretinfo( PrimeMainMenu.SearchPatient, new System.Drawing.Point(cur_x, cur_y), new uc_formpartsinfo(strText, new System.Drawing.Point(lbls_x, lbl_y), new System.Drawing.Point(lble_x, lbl_y) ), new uc_formpartsinfo("-val-", new System.Drawing.Point(vals_x, val_y), new System.Drawing.Point(vale_x, val_y) ), a, b, c )); }
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 )); }
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 )); }
public uc_maptxtcaretinfo( PrimeMainMenu r1, System.Drawing.Point r2, uc_formpartsinfo r3, uc_formpartsinfo r4, ElmScrns r5, System.Boolean r6, UseWhat r7 ) { inMenu = r1; curPos = r2; frmfield = r3; frmvalue = r4; seqScrn = r5; hasValue = r6; useThis = r7; }
private void defCoordPatientEnc( bool left = true, 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 = "" ) { x_coord = (xcd != 0) ? xcd : ((left) ? 22 : 61); lftColStart = (lcol != 0) ? lcol : 0; lftColEnd = x_coord; if (left) { y_coord++; } y_coord = (ycd != -1) ? ycd : y_coord; valwidth = x_coord + width; Elements.Add( new uc_maptxtcaretinfo( PrimeMainMenu.PatientEnc, new System.Drawing.Point(x_coord, 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(x_coord, y_coord), new System.Drawing.Point(valwidth, y_coord) ), es, withVal, uw )); }
private void defCoordPatientEnc( bool left = true, 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 = "" ) { x_coord = (xcd != 0) ? xcd : ((left) ? 22 : 61); lftColStart = (lcol != 0) ? lcol : 0; lftColEnd = x_coord; if (left) y_coord++; y_coord = (ycd != -1) ? ycd : y_coord; valwidth = x_coord + width; Elements.Add( new uc_maptxtcaretinfo( PrimeMainMenu.PatientEnc, new System.Drawing.Point(x_coord, 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(x_coord, y_coord), new System.Drawing.Point(valwidth, y_coord) ), es, withVal, uw )); }
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 )); }